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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

"Divide by zero error encountered" produced when settling lines with 0.00 in accounting currency

(0) ShareShare
ReportReport
Posted on by 2
When attempting to settle marked transaction lines in the Ledger settlements page, a "Divide by zero error encountered" error message is displayed when the transaction currency value is 0.00 for all lines. There is a total debit balance for the accounting currency and reporting currency in this instance. The transactions I am attempting to settle are within the same main account, and within the same currency, but across different financial dimension values.
 
The "Enable post currency realized gains/losses for ledger settlements" parameter is enabled in General ledger parameters. The parameter is described as "adjust[ing] the determination of full settlement based on transaction currency, except in cases where marked transactions have differing transaction currencies, in which case accounting currency values are used."
 
Expectation by our users is therefore that open 0.00 lines can be settled together (within the same main account/currency), and an automatic FX gain/loss posting is made by the system once settled.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,143 Super User 2025 Season 2 on at
    "Divide by zero error encountered" produced when settling lines with 0.00 in accounting currency
    Hi,
     
    What exact version of Dynamics 365 Finance are you running? There is a fix for 10.0.42, 10.0.43, and 10.0.44 released. You can find more details in LCS Issue search on issue 1022980 - Ledger Settlement throw "Attempted to divided by zero" error.
     
    Most likely by installing the latest available quality update, the issue will be resolved.
  • CU26051443-0 Profile Picture
    2 on at
    "Divide by zero error encountered" produced when settling lines with 0.00 in accounting currency
    Hi Andre,
     
    Thanks for your answer. We are running 10.0.45 (10.0.2345.76). Do you know if this bugfix included in any instances of version 10.0.45?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,167

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 867 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 617 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans