I ended up using azure's logic app to complete the task so that I no longer needed to try run my script
I can't get the batch service to run my python script in ADF (pipeline run ID: 3b2f6f72-058c-4d63-a30b-a260d8f23c2e)
I am trying to run a python script in ADF using the batch service but when I debug it kicks out the following error:
This is the output:
{
"exitcode": 1,
"outputs": [
" https://ssotstorage.blob.core.windows.net/adfjobs/24f54d9f-4087-438c-831c-9b367fb30c45/output/stdout.txt ",
" https://ssotstorage.blob.core.windows.net/adfjobs/24f54d9f-4087-438c-831c-9b367fb30c45/output/stderr.txt "
],
"errorCategory": 0,
"code": "FailureExitCode",
"message": "The task exited with an exit code representing a failure",
"details": [
{
"Name": "Message",
"Value": "The task process exited with an unexpected exit code"
},
{
"Name": "AdditionalErrorCode",
"Value": "FailureExitCode"
}
],
"computeInformation": "{\"account\":\"skynamobatchservice\",\"poolName\":\"skynamo_ssot_pool\",\"vmSize\":\"basic_a1\"}",
"effectiveIntegrationRuntime": "DefaultIntegrationRuntime (South Africa North)",
"executionDuration": 89,
"durationInQueue": {
"integrationRuntimeQueue": 0
},
"billingReference": {
"activityType": "ExternalActivity",
"billableDuration": [
{
"meterType": "AzureIR",
"duration": 0.03333333333333333,
"unit": "Hours"
}
]
}
}
Here is the command:
Here is the batch server start task:
I have ensured that the script is in the correct folder (budgets v3)
Can you please assist?
1 additional answer
Sort by: Most helpful
-
HimanshuSinha-msft 19,476 Reputation points Microsoft Employee
2021-11-09T21:22:49.27+00:00 Hello @Anonymous ,
Thanks for the ask and using Microsoft Q&A platform .
As you may have figured at this time , that the Custom activity basically triggers the Azure batch instance . The work load which you are creating ( while setting up Batch service ) is it running on windows or linux ? . The command which you are running will not work on Windows OS .Please do let me know how it goes .
Thanks
Himanshu-------------------------------------------------------------------------------------------------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
- Please don't forget to click on