web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Attempted to Divide by Zero Error

(1) ShareShare
ReportReport
Posted on by 276
I am trying to post a payment to my employees via the payment journal. I am getting this error that I have never seen before. The payment are for employee T&E reimbursements. I have no idea what is causing this error.
 
 
 
 
I have the same question (1)
  • Suggested answer
    Valentin Castravet Profile Picture
    31,481 Super User 2025 Season 2 on at
    Usually this is a problem caused by a customization. Do you have any customizations for the payment journal or employees?
     
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at
    Hi,
     
    It seems a custom Dev.
     
    Test it in Cronus environment without extension. If you still have error, then report it to Microsoft.
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    95,718 Super User 2025 Season 2 on at
    It could also be a data problem. If this is a standard environment, it is recommended to debug it.
    The reason for this error is very simple. There is division by 0 in the code.
     
     
    Hope this helps as well.
    Thanks.
    ZHU
  • GS-17051342-0 Profile Picture
    276 on at
    We don't have any customizations related to the payment journal. I have forwarded this issue to our Business Central partner. Just started happening after being on BC for 9 months. 
  • Matteo Fiocco Profile Picture
    260 on at
    it's definitely a custom, try getting help from a developer.

    -----------
    Matteo Fiocco - Business Central Architect
    Blog : www.matteofiocco.com
    Linkedin :  https://www.linkedin.com/in/matfioc/

  • kerr Profile Picture
    21 on at
    Hi GS,
     
    I have same issue here, only when "Applies-to Doc. No." is filled. 
     
    Debug goes to the following line, in my case these 2 currency code are both empty (local currency), not sure why it needs to be divided by Original Currency Factor, which is 0.
  • Suggested answer
    Jun Wang Profile Picture
    8,202 Super User 2025 Season 2 on at
    if you have a clean sandbox, try to replicate the issue there to pinpoint to if this is a data issue or caused by extension. 
    also you need to test with other employees if they could be paid with no issue.
  • Verified answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at
    It looks like an error in standard code based on the below screenshot. Please create a MS support case.
  • kerr Profile Picture
    21 on at
    At the end the "Original Currency Factor" is a new field in v24, which default to 1. But for old entries they're 0. According to MS you need to reverse old entries and create new ones. 
  • CU23050236-0 Profile Picture
    on at
    I have the same problems !
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans