Hi Mathious Willie ,
The metadata output from Azure Event Grid when using Fivetran to transfer files to Azure Data Lake Storage . The metadata for the events should ideally include the data.api key indicating whether the file was created with FlushWithClose (Completed) or CreateFile (Incomplete).
According to the context, when using Azure Data Lake Storage Gen2, the data.api key is set to CreateFile or FlushWithClose for the Microsoft.Storage.BlobCreated event. If you want to ensure that the Microsoft.Storage.BlobCreated event is triggered only when a Block Blob is completely committed, you should filter the event for the FlushWithClose REST API call. This filtering is essential to distinguish between the two states effectively.
If the metadata is no longer being sent as you described, it could be due to changes in how Fivetran interacts with Azure Event Grid or how events are being generated. You may want to check if there have been any updates or changes in the Fivetran configuration or in Azure Event Grid that could affect the event metadata.
Additional information,
Using Azure Table Storage to track the state of events is a valid approach, but it may require careful management of state transitions to ensure that the correct job is triggered only when the file is fully uploaded.
For more information:
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be glad to assist you.