web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When a file is created...
Power Automate
Answered

When a file is created (properties only) trigger doesn’t pass the test

(1) ShareShare
ReportReport
Posted on by 8
Hello, I try to use “When file is created (properties only) as a trigger for my flow. I just use the library address with default Settings and without any advanced parameters. When testing my flow the builder shows strange error: “The power flow's logic app flow template was invalid. The 'recurrence' property of template trigger 'When_a_file_is_created_(properties_only)' at line '1' and column '782' is not defined or not valid.”
Copilot explains that it means that there is some misunderstanding and suggest to apply to support.

Does somebody here have any idea ?
Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,048 Super User 2026 Season 1 on at
     
    If you can paste in your flow that would be helpful.  I'm not sure if you are talking about OneDrive, OneDrive for Business, or SharePoint ~ although they all kind operate the same from a trigger perspective.  These triggers are pretty straightforward.  Looking forward to your reply.
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Verified answer
    Riyaz_riz11 Profile Picture
    4,048 Super User 2026 Season 1 on at
    Hi,
     

    This is a known issue with the SharePoint "When file is created (properties only)" trigger in Power Automate. Here are several solutions to resolve this problem:

    Solution 1: Use Alternative Trigger (Recommended)

    Replace the problematic trigger with a more reliable one:

    Option A: "When an item is created or modified"

    Trigger: When an item is created or modified
    ├── Site Address: [Your SharePoint site]
    ├── List Name: [Your document library]
    ├── Advanced Settings:
    │   ├── Filter Query: Created ge datetime'[timestamp]'
    │   └── Trigger Conditions: @equals(triggerOutputs()?['body/Created'], triggerOutputs()?['body/Modified'])

    Option B: "When a file is created or modified (properties only)"

    Trigger: When a file is created or modified (properties only)
    ├── Site Address: [Your SharePoint site]
    ├── Library Name: [Your document library]
    ├── Add condition after trigger:
    │   └── Created is equal to Modified (indicates new file)

    Solution 2: Fix the Current Trigger

    If you want to keep using the same trigger, try these steps:

    Step 2.1: Recreate the Trigger


    1. Delete the current trigger

    2. Add a new trigger → SharePoint → "When file is created (properties only)"

    3. Fill in the details fresh (don't copy/paste)

    4. Save without any advanced settings first
     

    Solution 3: Workaround with Scheduled Flow

    Create a scheduled flow that checks for new files:

    Trigger: Recurrence (every 5 minutes)
    ├── Get files (properties only)
    │   ├── Site Address: [Your site]
    │   ├── Library Name: [Your library]
    │   ├── Filter Query: Created ge datetime'@{addMinutes(utcNow(), -5)}'
    ├── Apply to each (for new files found)
    │   └── [Your flow logic here]

    Solution 4: Use Microsoft Graph API

    For more reliable file monitoring:

    Trigger: Recurrence (every few minutes)
    ├── HTTP Request to Graph API
    │   ├── Method: GET
    │   ├── URI: https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/delta
    │   ├── Headers: Authorization: Bearer [token]
    ├── Parse JSON response
    ├── Filter for new files
    └── Process new files
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz
  • Verified answer
    stampcoin Profile Picture
    5,146 Super User 2026 Season 1 on at
     
    The error message said something wrong with trigger.
    so, simply remove the trigger and re-add it back. or re-create the flow.
     

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard