Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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.

↑ Back to the top


Symptoms

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.

↑ Back to the top


Cause

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.

↑ Back to the top


Workaround

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:
  1. Click Financial Management, expand Inventory, expand Costing, and then click Post Inventory Costs to G/L.
  2. On the Value Entry tab, create a filter to limit the item numbers, the posting date, or any other criteria.

↑ Back to the top


More Information

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
Notes
  • 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.

↑ Back to the top


Keywords: kbmbspartner, kbmbsinventory, kberrmsg, kbtshoot, kbmbsmigrate, kbprb, kb, kbarchive

↑ Back to the top

Article Info
Article ID : 933984
Revision : 1
Created on : 1/7/2017
Published on : 8/1/2011
Exists online : False
Views : 77