Automic Workload Automation

 View Only

  • 1.  Powershell script (win job ) stucks in active status

    Posted Sep 18, 2024 09:29 AM

    Hi Team,

    we have an urgent issue, all the Windows jobs having Powershell scripts are not working anymore, even though we can run the script directly in the server PowerShell, it's working perfectly, but when triggering from automic, it's not working anymore. the job gets stuck as active status in AUTOMIC. 

    Thanks,

    Abhishek



  • 2.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 18, 2024 09:50 AM

    Hi Abhishek,

    Just check whether you setup PowerShell as an interpreter for windows jobs to execute powershell scripts.

    Would you mind to share Agent log file?



    ------------------------------
    Regards,

    Eshwar
    ------------------------------



  • 3.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 18, 2024 11:16 AM

    Hi Purneswara,

    we are using PowerShell as an interpreter only.
    Even I have attached the agent's logs for your reference.

     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
     
    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.
     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
     
    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.
     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
     
    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.
     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
     
    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.

     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.

    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.

     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.

    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.

     U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879459' has been removed from the job table.
    20240918/090620.577 - U00029000 Report '143881119' for file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' has been started.
    20240918/090620.645 -           Could not remove file 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT', reason '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.

    20240918/090620.645 - U00029002 Report '143881119' ended abnormally.
    20240918/090620.645 - U00029006 File 'E:\Automic\Agents\Windows\temp\OAMCWDLJ.TXT' cannot be deleted, error code '32', error description: '32 - The process cannot access the file because it is being used by another process. >libcpprnt/src/Path.cpp#sys::Path::remove:449<'.
    20240918/090626.241 - U02000015 Periodical job test started.
    20240918/090635.682 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' is to be started.
    20240918/090635.713 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143879539'.
    20240918/090635.713 - U02001041 The job was started with Process ID = '6972 (0x1b3c)'
    20240918/090635.713 - U02000034 Monitor thread with thread ID '11472' started successfully.
    20240918/090726.259 - U02000015 Periodical job test started.
    20240918/090739.648 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' started.
    20240918/090739.648 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' completed successfully.
    20240918/090826.267 - U02000015 Periodical job test started.
    20240918/090847.465 - U02001020 Cancel job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539'.
    20240918/090847.465 - U02001023 Cancel of job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' was successfully initiated.
    20240918/090847.512 - U02000009 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' ended with return code '102'.
    20240918/090847.512 - U00063046 Thread '11472' ended with return code '102'.
    20240918/090847.555 - U02001026 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143879539' has been removed from the job table.
    20240918/090847.572 - U00029000 Report '143876943' for file 'E:\Automic\Agents\Windows\temp\OAMCWDOL.TXT' has been started.
    20240918/090847.588 - U00029001 Report '143876943' ended normally.
    20240918/090926.453 - U02000015 Periodical job test started.
    20240918/091022.329 - U02000005 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' with RunID '143881130' is to be started.
    20240918/091022.392 - U02000003 Job 'JOBS.WIN.POLARIS.SHAREPOINT.CA.CAAPNOICP' started with RunID '143881130'.
    20240918/091022.392 - U02001041 The job was started with Process ID = '9916 (0x26bc)'
    20240918/091022.392 - U02000034 Monitor thread with thread ID '7400' started successfully.
    20240918/091052.560 - U00011439 Cannot log on as user 'pernod-ricard\SRV.AME.POL-AUT'. Error code: '1326 (The user name or password is incorrect.)', error description: ''.
    20240918/091052.560 - U00050014 Cannot open attachment file 'E:\JDEdwards\E920\PrintQueue\R56CPLAP_CA001_93688_PDF.csv', error code: '1326', error description: 'The user name or password is incorrect.'.
    20240918/091053.830 - U00050007 SMTP server 'pernodricard-com01e.mail.protection.outlook.com' has rejected the E-mail recipient: '501 5.1.3 Invalid address [HK3PEPF0000021D.apcprd03.prod.outlook.com 2024-09-18T13:10:53.714Z 08DCD1983F12AB3B]'
    20240918/091056.578 - U00050001 Cannot send e-mail. \E-mail could not be sent because of an error. See previous messages.
    20240918/091056.578 - U02000082 The Agent routine 'UCEXVAR ' needs '34.155' second(s) for message 'SNDMAIL2', RunID '143877720'.
    20240918/091056.578 - U02000015 Periodical job test started.
    20240918/091129.812 - U02000256 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' started.
    20240918/091129.812 - U02000257 Upload of file 'E:\Automic\Agents\Windows\temp\OAMCWFXQ.TXT' completed successfully.
    20240918/091156.939 - U02000015 Periodical job test started.




  • 4.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 18, 2024 11:57 AM

    For your reference, i am attaching the job log report
    ConvertTo-SecureString : The system cannot find the path specified.
    At E:\Automic\Agents\Windows\temp\JAMCWKGL.TXT.ps1:3 char:78
    + ... ic\Test\scriptsencrypted_passwordpolaris.txt | ConvertTo-SecureString
    +                                                    ~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [ConvertTo-SecureString], CryptographicException
        + FullyQualifiedErrorId : ImportSecureString_InvalidArgument_CryptographicError,Microsoft.PowerShell.Commands.Conv 
       ertToSecureStringCommand
     
    New-Object : Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument 
    "password" is null. Change the value of argument "password" to a non-null value."
    At E:\Automic\Agents\Windows\temp\JAMCWKGL.TXT.ps1:17 char:19
    + ... edentials = New-Object System.Management.Automation.PSCredential($upn ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
     
    Add-PnPStoredCredential : Cannot bind argument to parameter 'Username' because it is null.
    At E:\Automic\Agents\Windows\temp\JAMCWKGL.TXT.ps1:25 char:46
    + ... toredCredential -Name $url -Username $appcredentials.UserName -Passwo ...
    +                                          ~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (:) [Add-PnPStoredCredential], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,PnP.PowerShell.Commands.Base.AddStoredCre 
       dential
     
    WARNING: 
                                                                                                                         
     You are running the legacy version of PnP PowerShell.                                                               
                                                                                                                         
     This version will be archived soon which means that while staying available, no updates or fixes will be released.  
     Consider installing the newer prereleased cross-platform version of PnP PowerShell.                                 
     This version has numerous improvements and many more cmdlets available.                                             
     To install the new version:                                                                                         
                                                                                                                         
     Uninstall-Module -Name SharePointPnPPowerShellOnline -AllVersions -Force                                            
     Install-Module -Name PnP.PowerShell                                                                                 
                                                                                                                         
     Read more about the new cross-platform version of PnP PowerShell at                                                 
                                                                                                                         
     https://pnp.github.io/powershell                                                                                    
                                                                                                                         
     To hide this message set the environment variable PNPLEGACYMESSAGE to "false"                                       
     In PowerShell add $env:PNPLEGACYMESSAGE='false' to your profile. Alternatively use 'Connect-PnPOnline -Url          
     [yoururl] -WarningAction Ignore'                                                                                    
    

    the job is stuck in Active status only 

    Thanks,

    Abhishek




  • 5.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 20, 2024 01:10 AM

    Hi Team,

    Still the jobs stuck in active status, when we try to open the job we are getting the following in the jcl:


    $url="https://pernodricard.sharepoint.com/sites/PRNA-POLARISRoll-Out"
    $password=Get-Content E:\Automic\Test\scriptsencrypted_passwordpolaris.txt | ConvertTo-SecureString

    $upn="SRV.AME.POL-AUT@pernod-ricard.com"

    $appcredentials = New-Object System.Management.Automation.PSCredential($upn,$password)

    Add-PnPStoredCredential -Name $url -Username $appcredentials.UserName -Password $appcredentials.Password

    Connect-PnPOnline -Url $url

    $file_path = "E:\JDEdwards\E920\PrintQueue\R55UPLAP_PR0001_93847_PDF.csv"

    Add-PnPFile -Folder "Shared Documents/3) Management and Execution/E1 Extracts/PRUSA/APUSANOICP" -Path $file_path
    __call_messanger "E" "0"

    One more thing when we trying to run the jobs by switching to old agents its running fine , but for the current agent its stuck in active status.

    please help us if anyone aware of the issue.

    Thanks,

    Abhishek




  • 6.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 20, 2024 02:23 AM

    some points you can check as a troubleshooting.

    1) What version of PowerShell you are using in old agent and new agent

    2) what is the UC4 version you are using.

    3) when are you running script directly on server you are running with same user like uc4.

    4) what is the difference between old and new agent.




  • 7.  RE: Powershell script (win job ) stucks in active status

    Broadcom Employee
    Posted Sep 23, 2024 01:55 AM

    Hi,

    what exactly has been changed between the working and the non-working version of the job? From the thread it seems you have upgraded the agent. What exactly is the working and non-working release? Any other changes related to username/password or networking? If you updated the windows agent to the java based OS agent, please make sure you have installed the latest version of the agent.

    Regards, Markus




  • 8.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 23, 2024 03:44 AM

    There's been a change recently from Microsoft for Sharepoint, I know that some of our teams have had to change their processes to use Powershell 7.  Perhaps this is related.  The admins could run the code manually to upload the documents as an interactive user but not as one logged in via batch.

    You could either try changing the agent to use pwsh.exe instead of ps.exe or add a new external interpreter.  There are other posts elsewhere (not Automic) where the sharepoint module locks up powershell which would also match the behaviour here.




  • 9.  RE: Powershell script (win job ) stucks in active status

    Posted Sep 23, 2024 06:47 AM

    We ran into something like this recently with an FTP script that seemed to be stuck in active status.  Several fixes were attempted, and one was to add the following immediately after that FTP script.  

    ! check for errors
    @set retcode=%errorlevel%
    @if NOT %retcode% == 0 goto :retcode

    Seems like it is worth a try for your issue