question

Nestor-4651 avatar image
0 Votes"
Nestor-4651 asked ·

Azure Function - The service is unavailable

Hello,

I have an Azure Function being called from Data Factory. During development/debugging, the Azure Function works as expected; however, when running on a scheduled trigger, it fails intermittently with the error: The service is unavailable.
This is a copy+paste from the Data Factory log:
"errorCode": "3608",
"message": "Call to provided Azure function '' failed with status-'ServiceUnavailable' and message - 'The service is unavailable.'.",

I initially thought the call was timing out while the function was "waking up", so I added a 2 retries with a 30 second delay, but the result is the same. The retries run, but the service is still unavailable.

I have another pipeline using the same Azure Function, the only difference is the second pipeline runs 2 hours later. Strangely enough, the second pipeline is running fine most of the time; though it sometimes throws the same error.

Additionally, if I manually trigger the pipeline to run, it will run without issues.

Any pointers as to how to solve this?

Thank you.

azure-data-factoryazure-functions
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Nestor-4651 - As @Sam-Cogan says, the root cause can most likely be identified by analyzing the Function logs. Feel free to send us an email at azcommunity at microsoft dotcom with your subscription ID as well as the name of your function app included as we're able to do the analysis for you.

0 Votes 0 ·
Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered ·

Have you checked the function logs?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Anky avatar image
0 Votes"
Anky answered ·

Try deploying the function app to new resource.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.