Summary
How to resolve the message "An error has occurred in the script on this Page" when opening Sage 50 Accounting.
Cause
- The latest Service Release wasn’t installed
- ActiveX controls blocked in Internet settings
- Not installed in the Program Files (x86) directory on a 64-bit computer
- Invalid program path files
- Damaged or incomplete installation
- User Account Control (UAC) settings
Resolution
1. Install the latest Service Release
- Open Sage 50—U.S. Edition.
- Select Services, Check for Updates, and then select Check Now.
- Select Download.
- Close Sage.
- Service Release will now install.
- Verify you get no errors when opening Sage.
2. Turn off Sage Advisor settings
- Open Sage 50.
- Select Help, Sage Advisor, Settings.
- Uncheck all the boxes and click OK.
- Close Sage for the changes to take effect.
- Open Sage.
- Open a screen from the Maintain menu and verify you no longer get an error.
3. Make sure Sage 50 installed to the right directory
- If you have a 64-bit computer, follow the below steps.
- Use this Windows FAQ to see if you have a 32-bit or 64-bit system
- If you have a 32-bit computer, skip to the next section
- Check the current program path.
EXAMPLE: PROGRAMPATH=C:\PROGRA~2\Sage\PEACHT~1\
- If your program path doesn’t look similar to the sample above, uninstall Sage 50.
- Reinstall the program, being careful to select the Program Files (x86) directory for the program files.
4. Repair Sage 50
- Close Sage.
- Browse to the program path.
- Rename the PTToday folder to OLDPTToday.
- Rename the ProductServices folder to OLDProductServices.
- Run Repair on Sage 50.
- Disable any antivirus and reinstall the latest Service Release.
- Verify Sage 50 opens without error.
6. Disable User Account Control (UAC)
- Disable User Account Control (UAC).
- Verify you no longer receive the error and that you can pay multiple employees.
7. Rename UserPref.dat
If you’re also seeing the error "Assertion Failed: System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {22743F12-6056-4120-A3FE-98200361EF91} failed due to the following error: 80131040." after going through the Script Error, refer to Error: "Assertion Failed, Abort, Retry, Ignore" when opening.
Need more help?