Error message when you run a report or a dataport in Microsoft Dynamics NAV 4.0 or in Microsoft Business Solutions - Navision 3.7: "Operating System Returned the Error (131). An attempt was made to move the file pointer before the beginning of the...
Microsoft Business Solutions-Navision 4.0 and Microsoft Navision 4.0 are now part of Microsoft Dynamics NAV 4.0. All references to Microsoft Business Solutions-Navision or to Microsoft Navision 4.0 relate to Microsoft Dynamics NAV.
When you run a report or a dataport in Microsoft Dynamics NAV 4.0 or in Microsoft Business Solutions - Navision 3.7, you receive the following error message:
Operating System Returned the Error (131). An attempt was made to move the file pointer before the beginning of the file.
This problem occurs if Microsoft Dynamics NAV creates a temporary file that exceeds 2 gigabytes (GB) when you run the report or the dataport. For example, this problem may occur when you run the "Posts Inventory Costs to G/L" batch job.
This problem occurs because Microsoft Dynamics NAV cannot handle temporary files that exceed 2 GB when the report or the dataport inserts data into a temporary table.
To work around this problem, set a filter on the report or on the dataport. This filter can limit the data that is used when you run the report or the dataport. Specifically, this filter can limit the item numbers, the posting date, or any other criteria.
For example, to work around this problem when you run the "Post Inventory Cost to G/L" batch job, follow these steps:
Click Financial Management, expand Inventory, expand Costing, and then click Post Inventory Costs to G/L.
On the Value Entry tab, create a filter to limit the item numbers, the posting date, or any other criteria.
When a report or a dataport inserts data into a temporary table, the maximum size of the temporary files that Microsoft Dynamics NAV can handle is 2 GB. By default, the temporary file is located in the following directory:
C:\Documents and settings\Username\Local settings\Temp
Replace the Username placeholder with the user name that is logged on to the computer.
The name of the temporary file is _TEMP_.xyz in which .xyz is a placeholder for the extension of the temporary file.