Fix Power Automate Flow Succeeds But Outlook Attachment Not Created in SharePoint
Question details
The user needs to fix a Power Automate flow that successfully triggers but fails to copy an Outlook email attachment to SharePoint because the attachment is locked during a security scan.
- Product
- Power Automate, Outlook, SharePoint
- Device & OS
- not provided
- Scenario
- Automating the extraction of Outlook email attachments and saving them as items or files in a SharePoint list or document library.
- Observed behavior
- The Power Automate flow reports a 'Succeeded' status, but the attachment is missing in SharePoint because it was temporarily unavailable due to a mandatory email security scan.
Before modifying your flow, confirm whether your organization enforces Advanced Threat Protection (ATP) or similar security scans on incoming Outlook emails, as this often temporarily blocks access to attachments.
Add a Delay or Configure Retry Policies in Power Automate
Implement a delay action or retry policy to wait for the Outlook security scan to finish before attempting to access the attachment.
When an email arrives, security systems like Microsoft Defender for Office 365 scan the attachments. If Power Automate tries to grab the attachment during this scan, it gets an empty or locked payload. Adding a slight delay allows the scan to complete.
Log in to Power Automate, go to 'My flows', and select the specific flow that handles your Outlook to SharePoint automation.
Click the '+' icon between the email trigger and the 'Create file' action in SharePoint. Search for and add the 'Delay' action. Set it to wait for 2 to 5 minutes.
Alternatively, click the three dots (...) on your 'Create file' SharePoint action, go to 'Settings', and configure a custom Retry Policy to try multiple times if the initial fetch fails.
If standard delays do not resolve the issue, post your specific flow structure to the dedicated Microsoft Power Automate Community for tailored advice from Microsoft engineers.
Switch to WPS Office for a Seamless and Lightweight Experience
While Power Automate handles automated workflows between Microsoft services, you might be looking for a more straightforward, reliable, and cost-effective daily office suite for document editing. WPS Office provides highly compatible tools for documents, spreadsheets, and presentations without the heavy overhead.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open and Edit Documents: Launch WPS Office to immediately start creating or editing your Word, Excel, PowerPoint, and PDF files seamlessly.

Frequently Asked Questions
Why does my Power Automate flow show 'Succeeded' even though the attachment is missing?
Power Automate often registers a step as 'Succeeded' if the action itself executes without a hard system error, even if the payload (like an attachment temporarily locked by a security scan) was empty or inaccessible at the exact moment of execution.
How long should I set the delay for Outlook security scans?
Generally, a delay of 2 to 5 minutes is sufficient for Microsoft Defender or other ATP scans to complete their analysis and release the attachment for Power Automate to process.
Can I trigger the flow only after the security scan is complete?
Currently, standard Outlook triggers in Power Automate fire as soon as the email arrives in the inbox. You must manually handle the scan duration by using 'Delay' actions or retry configurations within your flow logic.




