I can't get the batch service to run my python script in ADF (pipeline run ID: 3b2f6f72-058c-4d63-a30b-a260d8f23c2e)

Calrin Curtis 96 Reputation points
2021-11-05T14:30:47.023+00:00

I am trying to run a python script in ADF using the batch service but when I debug it kicks out the following error:

146854-image.png

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:

146855-image.png

Here is the batch server start task:

146885-image.png

I have ensured that the script is in the correct folder (budgets v3)

Can you please assist?

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
237 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
6,343 questions
No comments
{count} votes

Accepted answer
  1. Calrin Curtis 96 Reputation points
    2021-11-18T12:50:27.37+00:00

    I ended up using azure's logic app to complete the task so that I no longer needed to try run my script

    No comments

1 additional answer

Sort by: Most helpful
  1. HimanshuSinha-msft 17,726 Reputation points Microsoft Employee
    2021-11-09T21:22:49.27+00:00

    Hello @Calrin Curtis ,
    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 130616-image.png or upvote 130671-image.png 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