Sage 100: The setup routines for the MAS90 4.0 ODBC Driver could not be loaded due to system error code 126
Fix "The setup routines for the MAS90 4.0 ODBC Driver could not be loaded due to system error code 126" and run Sage ODBC without workstation setup. Here's how.
Full error text: "The setup routines for the MAS90 4.0 ODBC Driver ODBC driver could not be loaded due to system error code 126: The specified module could not be found. (C:\Windows\system32\PVXODBC.DLL)."
Where it occurs: You need Excel, Access, or another reporting tool to read Sage data through ODBC, but you do not want the full Sage workstation installed on that PC — a common setup after a server move, when everyone else runs Sage over Remote Desktop. The error shows up when you try to configure an existing MAS 90 DSN or add a new one. A classic trigger: the workstation was installed and then uninstalled, the DSN tested fine, and then failed the first time the PC was rebooted. Registering the driver manually with regsvr32 fails with the same "module could not be found" complaint, even though PVXODBC.DLL is sitting in System32 where the message says it should be.
The fix — supported route first
There is no Sage-supported manual install of the MAS 90 / Sage 100 ODBC driver by copying DLL files. Use an installer:
- Run Workstation Setup on the PC from the Sage server share / installation media. Workstation Setup is what installs and registers the MAS 90 ODBC driver and creates the SOTAMAS90 DSN. A user never has to launch Sage on that PC for Excel or Access to use the DSN.
- For a 64-bit driver on current Sage 100 releases: Sage 100 installs the 32-bit ODBC driver by default. To install the 64-bit driver, run the Sage 100 installation file/media and, under the Productivity Applications menu, choose the 64-bit ODBC driver install.
- Match bitness to the application, not the PC: 32-bit Excel/Access needs the 32-bit driver and a DSN created in the 32-bit ODBC Administrator (
C:\Windows\SysWOW64\odbcad32.exeon 64-bit Windows); 64-bit applications need the 64-bit administrator (C:\Windows\System32\odbcad32.exe). Never copy a 32-bit PVXODBC.DLL intoSystem32on 64-bit Windows — that produces error 193. - Create the DSN by copying the path/logon settings from the working SOTAMAS90 DSN on an existing workstation, test the connection, reboot, and test again.
If you already have error 126 after an uninstall
"The setup routines for the MAS 90 4.0 ODBC Driver could not be loaded due to system error code 126 (C:\Windows\system32\PVXODBC.DLL)" does not usually mean PVXODBC.DLL itself is missing — error 126 means Windows could not load the driver or one of its dependencies. That is also why regsvr32 reports the same failure: it tries to load the DLL, the load fails on the missing companion file, and the error text points at the wrong suspect. After a workstation uninstall-and-reboot, the documented-in-one-case dependency is PVXIO.DLL, which the uninstaller removes on reboot while PVXODBC.DLL remains — which is why the driver still appears in the ODBC driver list and looks installed, yet every attempt to use it fails. The reliable repair is to re-run Workstation Setup (step 1), which restores both files and the registration together.
Legacy manual method — unconfirmed, last resort only
A single MAS 90 4.x user reported, and no second source has confirmed, that a standalone driver can be rebuilt on 32-bit Windows 7 by: copying PVXODBC.DLL and PVXIO.DLL into System32; importing the driver registration under HKLM\SOFTWARE\ODBC\ODBCINST.INI\MAS 90 4.0 ODBC Driver (Driver and Setup both pointing to PVXODBC.DLL) plus the "MAS 90 4.0 ODBC Driver"="Installed" value under ODBC Drivers; and importing the licence values (Serial, Name, Company — your own site's values) under HKLM\SOFTWARE\Sage Software\ProvideX ODBC Driver, without which the driver prompts for licence information at runtime; then configuring the DSN from a known-good configuration and re-testing after a reboot. Treat this as an unsupported legacy workaround for MAS 90 4.0/4.5-era installs only, back up the registry first, and adjust folder/registry locations for 64-bit Windows (SysWOW64 / WOW6432Node). If it fails, Workstation Setup is the answer.
Affected versions
Legacy Sage ERP MAS 90 4.0 and 4.5 era installs (the MAS 90 4.0 ODBC Driver) on Windows 7, 32-bit and 64-bit. The same dependency principle applies to later ProvideX-based Sage 100 ODBC drivers.
If the fix doesn't work
The first two checks below apply to the legacy manual method; the last two apply to any install.
- Confirm both DLLs are really in System32 after a reboot, not just before one.
- Open the DSN's registry entries and confirm the Driver and Setup values point at the exact path where PVXODBC.DLL sits.
- Paste the DSN's data path into Windows Explorer and confirm the PC can reach the Sage server share — a perfect driver still fails against an unreachable path.
- Test with a brand-new DSN rather than a copied one, to rule out a corrupt DSN definition.
Prevention
Keep your Sage installation media or server install share reachable — Workstation Setup is the supported way back from any broken ODBC install. Before any workstation uninstall on a PC that must keep ODBC, also save copies of both DLL files and export the two registry keys described in the legacy method above, and keep that small kit with your install media as a last-resort fallback.
Related help
- ProvideX ODBC Driver Internal Error
- Error 1904: CRTSLV.DLL Failed to Register
- Unable to Process the Lockfile — Crystal Reports
- Printing Reports Slow After Switching from Terminal Server
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.