I'm using a timer triggered azure function in .NET.
Azure function info:
runtime version: 4.29.1.21919
file system: windows
.NET version: .NET6.0
I have a static json file which is published to the azure function runtime environment. It is placed in the root of the project and I use the following code to get its path:
The weird thing is that the azure function occasionally throws FileNotFound error on this file. Sometimes the azure function can read the file and sometimes it can't, without any code or azure function configuration change.
I'm using a timer triggered azure function in .NET.
I have a static json file which is published to the azure function runtime environment. It is placed in the root of the project and I use the following code to get its path:
The weird thing is that the azure function occasionally throws
FileNotFound
error on this file. Sometimes the azure function can read the file and sometimes it can't, without any code or azure function configuration change.Does anyone have any idea about why this happens?