To implement this hotfix, you must have a developer license.
You do not have to have rights to the data stores unless you have to perform data repair.
...
SalesLineArchive.DELETEALL;
// Delete the following line.
DocDimensionArchive.SETRANGE("Table ID",DATABASE::"Sales Header");
DocDimensionArchive.SETRANGE("Document Type","Document Type"); DocDimensionArchive.SETRANGE("Document No.","No.");
DocDimensionArchive.SETRANGE("Doc. No. Occurrence","Doc. No. Occurrence"); DocDimensionArchive.SETRANGE("Version No.","Version No.");
DocDimensionArchive.DELETEALL;
// Delete the following line.
DocDimensionArchive.SETRANGE("Table ID",DATABASE::"Sales Line");
DocDimensionArchive.DELETEALL;
...
...
SalesLineArchive.DELETEALL;
// Add the following line.
DocDimensionArchive.SETRANGE("Table ID",DATABASE::"Sales Header Archive");
// End of the added line.
DocDimensionArchive.SETRANGE("Document Type","Document Type"); DocDimensionArchive.SETRANGE("Document No.","No.");
DocDimensionArchive.SETRANGE("Doc. No. Occurrence","Doc. No. Occurrence"); DocDimensionArchive.SETRANGE("Version No.","Version No.");
DocDimensionArchive.DELETEALL;
// Add the following line.
DocDimensionArchive.SETRANGE("Table ID",DATABASE::"Sales Line Archive");
// End of the added line.
DocDimensionArchive.DELETEALL;
...
You must have Microsoft Dynamics NAV 2009 Service Pack 1 installed to apply this hotfix.