This is an issue with the DLLs files being used in creating the interfaces for specific customers not being registered correctly. This could happen after a new installation or following an upgrade to a later version.
To resolve this, the DLLs files need to be re-registered.
This error usually occurs when DLL files used by Abacus to create an interface file are not being correctly registered on the Windows environment. (The interface could be for Creditors, Debtors or a payment import).
After Abacus has been installed or upgraded to a newer version, it should be run for the first time as an administrator. Running Abacus as an administrator allows any DLL files to be registered in Windows which may not happen when run as a normal user. To do this:
Right click the Abacus shortcut and select the option Run as administrator.
If you do not have permission to do this then ask your own IT support to do this for you.
If you after running Abacus as an administrator, the Error # -2147221231 - Automation error message still occurs, then it may be that the specific DLL file(s) used for the interface needs to be individually unregistered and then re-registered.
This is something your own IT support we need to do. We can advise them the name of the particular DLL file(s) or supply them with a batch file that will help them to do this.
To request this, please raise a new case online and reference the title of this article.
Internal Solution
From a Windows command prompt, the regsvr32 command needs to used to unregister and then re-register the required interface DLL file(s).
For example, Northern Health & Social Care Trust (NHT) use the two files NHTInterface.DLL and NITInterface.DLL for their creditor interfaces. To unregister and then re-register these files the following commands need to be run from a Windows command prompt from the Abacus A4W application files folder location:
%systemroot%\System32\regsvr32 NHTInterface.DLL /u
%systemroot%\System32\regsvr32 NHTInterface.DLL
%systemroot%\System32\regsvr32 NITInterface.DLL /u
%systemroot%\System32\regsvr32 NITInterface.DLL
For another site you would replace the above DLLs with the specific interface DLL file or files used by that site. Development will be able to confirm the name of the interface DLL file(s) for each site.
To make things easier, you could create a batch file that site's own IT support could just copy into the Abacus A4W application files folder and then double-click to run (as an administrator).
In the example above for Northern Health & Social Care Trust (NHT), you could create a batch file say named RegisterInterfaceDLL.bat with the following commands:
@setlocal enableextensions
@cd /d "%~dp0"
regsvr32 NHTInterface.DLL /u
regsvr32 NHTInterface.DLL
regsvr32 NITInterface.DLL /u
regsvr32 NITInterface.DLL
pause
