Skip to content
logo Knowledgebase

Error: "Unhandled exception has occurred in a component in your application"

Created on  | Last modified on 

Summary

How to resolve the error: "Unhandled exception has occurred in a component in your application" when performing different tasks in Sage 50 Accounting.

Resolution

When printing a 2023 RL1 or older in version 2025.2 or higher

  1. Restore a backup containing the RL1 in 2024 or a prior version of Sage 50.
    • If you no longer have older versions of Sage 50 on your computer, contact support
  2. Print the RL1 from that version.

When closing the program

Force close Sage 50
  1. Force the program to close.
  2. Run Sage 50 as an administrator.
  3. Verify that you can now open and close Sage 50 without error.
Disconnect and reconnect cloud backups
  1. If you use automatic cloud backups, go to File, Microsoft 365 Integration, Disconnect.
  2. Replace Token Cache and Exchange.sqlite files.
  3. Open the company file and connect to Microsoft 365.
  4. Verify that you can now close and make cloud backup automatically.

When allocating to projects

  1. Don't click the X button in the project allocation window.
  2. Instead, click OK or Cancel.
  3. With the company file open, find your file location by going to File, Properties.
  4. Use the file location in the database utilities.
  5. Allocate the transaction to a project again.

When exporting reports

  1. Don't click the X button in the project allocation window.
  2. Instead, click OK or Cancel.
  3. With the company file open, find your file location by going to File, Properties.
  4. Use the file location in the database utilities.
  5. Try exporting the report again.
  6. If you're still getting an error, create a new Windows profile.

When printing customized forms

  1. Go to Setup, Reports and Forms.
  2. Select the form.
  3. Click Customize Form to bring up the form designer.
  4. Click File, Save as.
  5. Remove the strange characters in the path of the customized form.
  6. Save the new template with the new name.

 NOTE: Saving the form within a folder that Windows controls (such as C:\Users\) can also cause the error. You can save the SFM file to a folder that is within the SAJ folder so that if you move the data, the forms files go with it.

When opening transactions

The Projects (Job Sites) module appears in the home window
  1. Go to Setup, User Preferences, View.
  2. Add checkmarks to the items referring to the Project (you may have renamed it differently such as Job Site).
  3. Click OK.
The Projects (Job Sites) module doesn't appear in the home window
  1. Go to Setup, Settings, Company, Features.
  2. Select My company uses Projects/Job Sites.
  3. If you don't see the name for My company uses Projects/Job Sites, click the empty checkbox which has no name beside it above Banking.
  4. Click OK.
Adding the project name
  1. Go to Setup, Settings.
  2. Click the + which has no name beside to expand.
  3. Click Names.
  4. Enter text in the Project Title field.
  5. Click OK.

Need more help?

Chat now