We created an azure synapse link and a "sql" database in the azure synapse workspace. But sometimes (not all the time) we get an error when selecting with sql from the csv files in the storage account.
The query bulk loads the data from the csv files:
But gives the following error:
Cannot bulk load because the file ****.csv could not be opened. Operating system error code 12(The access code is invalid.).
I think this is because the azure synapse link that loads the data from our dynamics platform to the storage account, updates the files within the storage accounts at the same time when I am running the query. (the entity accounts for instance is updated almost all the time in our system, for small entities with a few records that never change, this error does not occur)
I am wondering what the solution is, because the prebuild views of the azure synapse link are exactly like this.
I don't want to use the "allow inconsistent data reads" because I think it will mess up the synchronisation of the azure synapse link. Because it updates data, not only appends data.
When I run the query myself it is not a big problem because I will just run it again and it works. But when the query is triggerd by a timer and gives this error the whole proces stops.
Anyone some clever ideas?