Hello All,
I'm a newbie in the visualcron development, but today I faced with a very interesting problem. We have an access database and into access there are several linked tables and queries which are filtering the data. Also there is a macro which combine all the queries into a some strange logic and when I start the macro from Access everything is working correctly. But when I start the macro from VisualCron I receive the following error:
ExecuteProcess("C:\Program Files (x86)\VisualCron\\TaskOfficeMacrox86.exe" 167)->RunAccessMacro->COMException System.Runtime.InteropServices.COMException (0x800A0C4F): ODBC--connection to '|' failed.
at Microsoft.Office.Interop.Access.DoCmd.RunMacro(Object MacroName, Object RepeatCount, Object RepeatExpression)
at TaskOfficeMacro.OfficeMacro.kT54kK6m5() - maybe Microsoft Office is not installed? This Task requires Microsoft Office being installed.
ExecuteProcess("C:\Program Files (x86)\VisualCron\\TaskOfficeMacrox86.exe" 167)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x800A0C4F): ODBC--connection to '|' failed.
at TaskOfficeMacro.OfficeMacro.kT54kK6m5()
at TaskOfficeMacro.OfficeMacro.AFhXyIkg5UTKR8uKs7()
at TaskOfficeMacro.OfficeMacro.fpJUqcoBG()
at k7XvBKEgpi0yGhnVl8.u6Hlqv0eL9L3Va8MEl.p4siBD3ri(String[] )
Exception in Task: ExecuteProcess("C:\Program Files (x86)\VisualCron\\TaskOfficeMacrox86.exe" 167)->RunAccessMacro->COMException System.Runtime.InteropServices.COMException (0x800A0C4F): ODBC--connection to '|' failed.
at Microsoft.Office.Interop.Access.DoCmd.RunMacro(Object MacroName, Object RepeatCount, Object RepeatExpression)
at TaskOfficeMacro.OfficeMacro.kT54kK6m5() - maybe Microsoft Office is not installed? This Task requires Microsoft Office being installed.
ExecuteProcess("C:\Program Files (x86)\VisualCron\\TaskOfficeMacrox86.exe" 167)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x800A0C4F): ODBC--connection to '|' failed.
at TaskOfficeMacro.OfficeMacro.kT54kK6m5()
at TaskOfficeMacro.OfficeMacro.AFhXyIkg5UTKR8uKs7()
at TaskOfficeMacro.OfficeMacro.fpJUqcoBG()
at k7XvBKEgpi0yGhnVl8.u6Hlqv0eL9L3Va8MEl.p4siBD3ri(String[] )
The office package is installed on the server, so the problem is not coming from the office.
Do you have any ideas why the job failed with ODBC connection? What could be reason and it would be great if you post your ideas how to fix it.
The workaround with SQL Task is not acceptable 🙂
Thanks!