Sage 50 Error 22665: Causes, Symptoms, and Step-by-Step Solutions
Updated On: May 14, 2026 11:21 am
Sage 50 is a highly in-demand accounting solution used by small and medium-sized businesses. It can assist you in managing your finances, payroll, inventory, and reports under the same platform. However, there are instances when technical problems may come in between your work. Error 22665 in Sage 50 is one of the problems that are less frequent, but at the same time, frustrating. This article explains what is Sage 50 Error 22665 means, why it occurs, and how to fix it safely, using proven troubleshooting steps that work in most cases.
User Navigation
- Accounting Professionals & Specialized Experts
- What Is Sage 50 Error 22665?
- Causes of Sage 50 Error 22665
- What to Do Before Fixing Sage 50 Error 22665?
- How to Fix Sage 50 Error 22665: Step-by-Step Solutions
- Method 1: Run Sage Installation or Setup as Administrator
- Method 2: Temporarily Disable Security Software
- Method 3: Check and Fix Pervasive/Actian Installation
- Method 4: Selective Startup (Clean Boot)
- Method 5: Verify You Are Using the Correct Setup Files
- Method 6: Update Windows and Sage 50 before Installing
- Method 7: Add User Permissions for Installation Folder
- How to Prevent Sage 50 Error 22665 in the Future?
- When to Contact Sage Support
- Final Words
- Frequently Asked Questions:
Accounting Professionals & Specialized Experts
Want quick help from accounting software experts? Get in touch with our team members who can install, configure and configure your software for you. Proficient in fixing technical issues, they can help you quickly get back to work whenever you encounter an error in Sage software. Our team is available 24/7 365 days to assist you. To get in touch.
What Is Sage 50 Error 22665?
“Sage 50 Error 22665 occurs when the Actian (Pervasive) database engine fails to install or run properly, preventing Sage 50 from launching.”
Error 22665 is a runtime or installation error that appears when Sage 50 is unable to boot or load its database engine. This is a mistake that is commonly associated directly with the Actian Zen (formerly Pervasive PSQL)- a software that Sage 50 operates behind the scenes to store and access your accounting information. This occurs when the required database engine is either improperly installed or becomes corrupted.
You might see messages like:
- Error 22665: The Pervasive Database installation is not successful.
- Runtime error 22665 Sage 50 has encountered an error and will shut down.
- Or some kind of pop-up with the number 22665 and little explanation.
Causes of Sage 50 Error 22665
Knowing the reasons will assist you in correcting the issue and preventing the occurrence of the same situation in the future. The most common reasons are the following:
- Security Software Interference
In rare cases, antivirus programs, firewall rules, or User Account Control (UAC) block portions of the Sage 50 installation. In this case, Sage is not able to install and configure a database engine adequately and displays the error 22665.
- Conflicting Programs Running
When other applications are running during the installation, in particular, programs that utilize database drivers or system files, it may conflict with the installation of Sage.
- Corrupted Installation Files
In case the file that you have downloaded is not complete or corrupted, then the Pervasive database may not install properly.
- Damaged or Old Pervasive/Actian Installation
In case you already have a Pervasive or Actian engine of an older version and it is damaged or incompatible with your Sage 50 version, that may lead to the creation of Error 22665.
- Insufficient User Permissions
You might not be an administrator on Windows, which means that Sage might not have the right to make changes to system components.
- Missing System Components
The lack of Windows elements or updates, particularly older systems that are not updated frequently, can also be a source of installation problems.
Also Read: Fix Sage 50 the Installation of the Pervasive Database has Failed Error
What to Do Before Fixing Sage 50 Error 22665?
These are the fast preparation steps to follow before you actually make any fixes:
- Back Up Your Sage Data
Provided that Sage 50 still opens, then back up and save a copy of your company data to some safe place (an external drive or cloud storage, etc.). That ensures your info is safe even though there are unfortunate circumstances.
- Close Sage and Related Programs
Before you start repairing, close the background services such as Pervasive PSQL or Sage connection managers completely and also close Sage.
- Restart Your Computer
A basic reboot may also sort out temporary problems that may interfere with installation. This particularly comes in handy before taking more significant strides.
How to Fix Sage 50 Error 22665: Step-by-Step Solutions
Check out these top 7 methods to fix Error 22665 in Sage 50:
Method 1: Run Sage Installation or Setup as Administrator
- Right-click the Sage 50 installation file or shortcut to install.
- Select Run as administrator.
- Repeat the installation/launch process.
This method gives the installer more access to system parts and can unblock installations in many cases.
Method 2: Temporarily Disable Security Software
- Sage may not install the components due to antivirus or firewall software.
- Open your antivirus program.
- Temporarily shut down real-time scanning.
- You should also temporarily switch off your firewall (Windows Defender or third-party).
- Try the install again.
- When installing security software, be sure to switch it back on.
Note: Don’t leave your device unprotected. Only turn off the security while installing.
Method 3: Check and Fix Pervasive/Actian Installation
It is among the surest methods to fix the Error 22665 since the issue is directly associated with the database engine.
Step A: Uninstall Old Pervasive/Actian Engine
- Access Control Panel- Programs- Programs and Features.
- Search for entries such as Actian PSQL, Pervasive PSQL, etc.+
- Uninstall them completely.
- Restart your computer.
Step B: Clean Up Leftover Files
- Press Windows + R, and the Run box will be launched.
- Put C:\ProgramData and press Enter.
- Locate folders named “Pervasive Software” or “Actian” and remove them in case they are left over.
- Some other places to examine include C:\Program Files\Common Files and C:\Program Files (x86)\Common Files, to see the folders of the Actian or Pervasive and delete them.
- Caution: Do not try to delete your whole Program Files; just the Actian/Pervasive folders.
Step C: Reinstall Pervasive/Actian via Sage Installer
- Find the Sage setup folder (usually called as PeachtreeInstaller20xx).
- Find the PervasiveMin folder there.
- Find the Pervasive installation file (usually Setup.exe).
- Right click and select Run as administrator.
- Follow the instructions and install the database engine.
- Restart your computer and then launch Sage 50 to verify that the issue is resolved.
Also Read: Fix Sage 50 Cannot be Started When Pervasive PSQL is not Running
Method 4: Selective Startup (Clean Boot)
Installations can be blocked by Windows startup programs.
- Press the Windows key and R simultaneously, and then in the Run box, type msconfig and press Enter.
- In the Services tab, check the Hide all Microsoft services box.
- Click Disable all.
- Navigate to the Startup tab and launch the Task Manager.
- Disable all startup items.
- Restart your computer.
- Try installing Sage again.
- After that, set your startup settings back to normal.
Method 5: Verify You Are Using the Correct Setup Files
Error 22665 sometimes occurs when installing it in the wrong or damaged place.
- Ensure that you are installing Sage 50 in the correct folder or official source- not that of another computer.
- In case you have downloaded the installation files, then you should delete them and do the download once more on the official support site of Sage and then proceed to install.
Method 6: Update Windows and Sage 50 before Installing
A problematic installation may be due to old system files.
- Go to settings/Update and Security/Windows update.
- Download and install all the updates.
- Restart your computer.
- Try installing Sage 50 again.
Method 7: Add User Permissions for Installation Folder
If Windows permissions are the reason why the install is prevented, this might be a solution:
- Go to the folder of the Sage 50 installation (or where it will be installed).
- Look for any leftover Actian or Pervasive folders, and choose Properties.
- Go to the Security tab.
- Click Edit and give full control to your user account (or temporarily to the everyone group).
- Apply changes and try again.
How to Prevent Sage 50 Error 22665 in the Future?
These are some of the best practices that minimize the possibility of observing this error in the future:
- Always install Sage 50 as Administrator.
- Have an updated operating system.
- Always make a backup of your data before any installation or update.
- Do not run several heavy programs when installing Sage.
- Make sure your antivirus is currently updated, but make sure to switch it off temporarily when installing.
Also Read: How to Create Sage 50 Backup?
When to Contact Sage Support
After following all the steps mentioned above and still seeing the Error 22665, it is time to reach Sage Support. It is capable of running more in-depth diagnostics on your installation and setup. Be ready with:
- Your Sage 50 version number
- The specific message of the error and at what point.
- In a single-user or multi-user environment.
Sage support may be able to guide you through specific fixes or even provide you with tools that directly troubleshoot your setup.
Also Read: Sage 50 Not Responding
Final Words
Such an Error 22665 is irritating, yet it does not imply that the information is lost, and Sage 50 is not going to be operated forever. It primarily indicates that there is a failure to install or execute the Pervasive/Actian database engine on which Sage 50 is operated. With the above methods, you can often correct the error independently by taking the steps that are most basic and then more complex to realize and correct the error. In case of a hiccup, Sage Support will assist you in completing the job.
Frequently Asked Questions:
Does reinstalling Actian fix Error 22665?
Yes, reinstalling Actian (Pervasive PSQL) often resolves Sage 50 Error 22665, as the issue is usually caused by a corrupted or incomplete database engine installation. Uninstall the existing Actian components, restart your system, and reinstall the correct version from the Sage 50 setup files.
What is the method to restore a backup that would rectify Error 22665?
To restore a backup that would rectify, navigate to File, then Restore, and select an uncorrupted backup. Save this to a new folder and verify functionality to prevent further data loss.
How can I correct the Sage 50 Error 22665 in a networked system?
You can correct this error in a networked system by ensuring all workstations share a consistent data path and the hosting server is online. Synchronize Sage 50 versions across all systems and verify stable network permissions and connectivity.
Is this error caused by a lack of adequate system resources?
Yes, insufficient RAM, low disk space, or high CPU usage can trigger this fault. Restarting your system and closing background applications helps stabilize resource allocation for database tasks.
