I am getting the error of 503 Service unavailable for Azure function in function app, I am trying to upload the data in salesforce, While I am doing that I am getting an error

Nanduri, Leela Krishna Reddy 0 Reputation points
2023-06-06T11:15:44.3933333+00:00

I am having the CSV File in Blob storage, I am uploading that file into salesforce and then the images also need to be uploaded, which can be done through Content version ID. I am able to do until uploading of file but I am getting an error of 503 Service unavailable while uploading of Image. Any Help is Appreciated.
Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-06-08T21:19:18.91+00:00

    Hi @Nanduri, Leela Krishna Reddy

    Without a code snippet of how you're uploading the image, it's difficult to best assist you. However, here are a few things I would check when diagnosing such an error.

    1. Check to make sure your blob client along with other storage objects is being created without any issue.
    2. Verify the storage connection being used and configured is correct.
    3. Verify the container has been created first before adding blob. If it hasn't, make sure you include code to create the container on the fly.
    4. Add try/catch around the code interacting with storage and log the exception.

    Review Monitoring Azure Functions with Azure Monitor Logs | Microsoft Learn so that you can know how best to implement logging for your function app so that you can isolate the exact cause.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.