This is a bug. 36455, There is no fix but, There are 2 possible workarounds for this issue:
Workaround 1:
1. In the Microsoft Dynamics SL main screen, select Administration->Select Customization Level.
2. In the Select Customization Level (91.260.00) screen, select the level of the customization being loaded - e.g. All Users. Check the Exclude Event Code box. Close the Select Customization Level screen.
3. Load the screen containing the errant VBA code. Select Customize Mode from the dropdown menu. Then select the Visual Basic Editor from the dropdown menu, or press F7. The Visual Basic Editor will load.
4. For each Update method defined in the customization, change the method signatures to include a ByVal qualifier as follows:
Private Sub Update1_OnCancel(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnDelete(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnFinish(ByVal Level As Integer, ByVal Updated As Integer, retval As Integer)
Private Sub Update1_OnInsert(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnUpdate(ByVal Level As Integer, ByVal InsertFlg As Integer, retval As Integer)
5. Select Debug from the Menu bar and select Compile Project... There should be no errors returned.
6. Select File->Save Project... or select the Save button. Select Customize->Customize Mode to close the VBA editor and exit customization mode. Close the application.
Note that steps 2 - 6 must be repeated for each customization level that contains code for one or more Update events.
Workaround 2:
1. Select Administration->Export Customizations (91.500.00).
2. Select the box for the screen and customization level containing the errant VBA code.
3. Enter a path for the exported file in the Export File: box, and check the Export VBA as Source box at the bottom of the screen. Press Begin Processing.
4. Open the exported customization file with a text editor, such as Note pad.
5. For each Update method defined in the customization, change the method signatures to include a ByVal qualifier as follows:
Private Sub Update1_OnCancel(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnDelete(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnFinish(ByVal Level As Integer, ByVal Updated As Integer, retval As Integer)
Private Sub Update1_OnInsert(ByVal Level As Integer, retval As Integer)
Private Sub Update1_OnUpdate(ByVal Level As Integer, ByVal InsertFlg As Integer, retval As Integer)
6. Save the customization file.
7. Selct Administration->Import Customizations (91.510.00). Select the Browse button, and open the modified customization file. Select Begin Processing.
8. The customization should import correctly.