Skip to main content

Notifications

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 150
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.
 
 
 
 
  • GS-17051342-0 Profile Picture
    150 on at
    Attempted to Divide by Zero Error
    The issue was a bug in the Microsoft update.
     
     
    Did another update and the issue was gone.
  • GS-17051342-0 Profile Picture
    150 on at
    Attempted to Divide by Zero Error
    I confirmed that this is happening to all employees. I singled out each employee in the batch and continued to get that error.
  • CU23050236-0 Profile Picture
    on at
    Attempted to Divide by Zero Error
    I have the same problems !
     
  • kerr Profile Picture
    21 on at
    Attempted to Divide by Zero Error
    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. 
  • Verified answer
    Mohana Yadav Profile Picture
    60,234 Super User 2025 Season 1 on at
    Attempted to Divide by Zero Error
    It looks like an error in standard code based on the below screenshot. Please create a MS support case.
  • Suggested answer
    Jun Wang Profile Picture
    7,761 Super User 2025 Season 1 on at
    Attempted to Divide by Zero Error
    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.
  • kerr Profile Picture
    21 on at
    Attempted to Divide by Zero Error
    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.
  • Matteo Fiocco Profile Picture
    177 on at
    Attempted to Divide by Zero Error
    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/

  • GS-17051342-0 Profile Picture
    150 on at
    Attempted to Divide by Zero Error
    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. 
  • Suggested answer
    YUN ZHU Profile Picture
    84,318 Super User 2025 Season 1 on at
    Attempted to Divide by Zero Error
    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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans