Announcements
Of course. Based on your description, you are almost certainly experiencing a classic race condition where the Dynamics 365 batch job is polling the SharePoint folder and finding the file at the precise moment it has been created by Power Automate but before the data has been written, resulting in the processing of a blank file. The most robust solution to this is to implement a handshake mechanism, such as the marker file pattern, to eliminate the timing issue entirely. This approach involves modifying your Power Automate flow to first write the complete file to a temporary staging folder or using a temporary file extension; only after the data is fully written would the flow then move the file to the final monitored directory or rename it to its proper extension. This ensures the file only becomes visible to the Dynamics 365 ER process once it is completely populated, preventing the batch job from ever accessing a partial or blank file. While a simple delay in the batch job could serve as a temporary mitigation, it is a fragile solution, whereas re-engineering the file creation process to be atomic is a definitive fix that avoids the inherent unreliability of trying to coordinate timing between two independent automated systems.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 681 Super User 2026 Season 1
André Arnaud de Cal... 598 Super User 2026 Season 1
Giorgio Bonacorsi 579