"Return Code 2" error when you run depreciation in Fixed Assets in Microsoft Dynamics GP

This article provides a resolution for the issue that you can' run depreciation in Fixed Assets in Microsoft Dynamics GP due to the Return Code 2 error.

Applies to:   Microsoft Dynamics GP
Original KB number:   853283

Symptoms

When you run depreciation in Fixed Assets in Microsoft Dynamics GP, the depreciation of all assets or a single asset is not completed. Additionally, a Return Code 2 error occurs.

Cause

This issue may occur if the Fixed Assets Calendar is damaged or if there are missing days.

Resolution

To resolve this issue, build and then replace the Fixed Assets Calendar. For more information about how to do this, see How to rebuild the Fixed Assets calendar in Microsoft Dynamics GP.