Hello @Haris Aqeel
Based on the detailed logic you provided, it seems like you are already performing several checks to ensure data readiness verification.
Regarding your first question, it is a good practice to check the model.json
file size and ensure that it is greater than 0 bytes to ensure that it is not empty, which may indicate readiness of data in that folder for processing. This can help in ensuring data completeness and prevent the issue of missing records.
Regarding your second question, it is also a good practice to consider a timestamp folder for processing only if the model.json
file's modified time is equal to or greater than one hour from the folder's creation time, matching the specified time (1 hour) configured in the Azure Synapse jobs in Power Apps.
This can help in ensuring that the data is ready for consolidation and prevent the issue of prematurely flagged data for processing.
Overall, your detailed logic seems to be well thought out and covers most of the necessary checks for data readiness verification.
However, it is always a good practice to continuously review and improve your logic to ensure data completeness and prevent any issues with missing records.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.