Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


omaresp
2014-08-05T13:54:25Z
I have setup a job to execute a simple command:

CPYFRMPCD FROMFLR(FOLDER) TOFILE(LIBNAME/FILENAME) FROMDOC(FILE.txt)

This command when ran on AS400 completes successfully.

I had tried this job before and had worked, today it just stays running. Any ideas how to troubleshoot this?
Sponsor
Forum information
Support
2014-08-06T16:59:15Z
Hard to say. It is related to the script. Maybe something about the path to the text file. Please try the full path.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
omaresp
2014-08-06T17:31:34Z
I have tried the command on AS400 and runs successfully. Using full path does not work.
omaresp
2014-08-07T13:55:41Z
Are there any requirements to be able to use this function?
Support
2014-08-07T18:04:35Z
Originally Posted by: omaresp 

I have tried the command on AS400 and runs successfully. Using full path does not work.



We just execute it as is. Have you tried using the same Credential as the user you are logged as.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
omaresp
2014-08-07T21:45:12Z
Originally Posted by: Support 

Originally Posted by: omaresp 

I have tried the command on AS400 and runs successfully. Using full path does not work.



We just execute it as is. Have you tried using the same Credential as the user you are logged as.



Yes I do.

After tinkering with it I now get the following error message:

ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 310)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at JCILGh9fhWLxBVi1mh.ifauw5mGMc0P0xP2ol.NxDnsUCdK(String[] )
Exception in Task: ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 310)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at JCILGh9fhWLxBVi1mh.ifauw5mGMc0P0xP2ol.NxDnsUCdK(String[] )
Support
2014-08-09T18:34:39Z
This error is totally different from the first and it sounds like a missing component. I guess the IBM Client Access or programming toolkit is not installed for the same architecture as VisualCron (64 or 32 bit depending on your system).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
omaresp
2014-08-10T19:31:09Z
I'm using VisualCron 7.1.9 on Windows 2008R2 and IBM Client Access 7.1 64bit
Support
2014-08-13T17:28:14Z
omaresp
2014-08-13T17:41:55Z
Originally Posted by: Support 

Please test this version:

http://www.visualcron.co....aspx?g=posts&t=4259 




Same error:

ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 339)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at vQdQCa0bRosw8B8Nxf.GmBdeO6mA4D83bEX0C.mGWcTDGKK(String[] )
Exception in Task: ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 339)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at vQdQCa0bRosw8B8Nxf.GmBdeO6mA4D83bEX0C.mGWcTDGKK(String[] )

Support
2014-08-13T20:43:29Z
Is this really the full output? Please include all from both Output and Error output.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-08-14T10:45:45Z
Also, could you try to install the 32 bit drivers?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top