Getting error while reading/writing a file created by azure functions v4

abhinovpankaj 1 Reputation point
2023-12-25T11:39:35.86+00:00

I am creating a reporting service, which generates a report based on data from Mongo db and images etc.

I have created http trigger which works just fine and creates the report file locally without any issues.

However, it fails to create the report file when deployed to Azure functions.

I have checked the folder, the file is not created. Could you please help me with this.

User's image

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,861 Reputation points
    2023-12-26T16:42:20.5466667+00:00

    @abhinovpankaj As per the logs it looks like the file was not created successfully. Can you please check your application logs/application insights logs to validate if the file was created successfully. Please validate if you have handled an exception while creating the file and this could be the reason the exception is not thrown. I can see the information logs "inside document save" so looks like it may be inside the method but cannot confirm if the file was created. Do you have any dependent library that you are using in your azure function?

    0 comments No comments

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.