How To fix: “Arithmetic operation resulted in an overflow” where files are read on Microsoft Dynamics Business Cental On-Premise –

Scenario:

  1. You want to read the file using File object on Business Central On-Premise.
  2. You want to read the file by each line.

Error:

Solution:

  • Check if you have added TextMode() function for the File object used.

Leave a comment