
This is part of a larger multi-layer project:
-
I’ve already set up the SharePoint environment.
-
Created the database and trained an AI model (16 variables with 96% accuracy).
-
After completing this flow, I plan to build a PowerApps Canvas app and integrate everything with Azure.
-
What my flow does
-
Trigger: Starts when a file is uploaded to the Pending Processing folder in SharePoint.
-
Initialize Variables: Prepares variables for later use (e.g., file name, status).
-
File Validation Check: Confirms if the uploaded file type is allowed (PDF, JPG, PNG).
-
AI Builder: Extracts invoice data and checks the confidence score:
-
Move File: Depending on validation, the file is moved to the correct folder (Processed, Manual Review, or Error).
-
Send Emails: Notifies relevant teams about file processing outcomes.
-
The Problem
-
-
If invalid → Move the file to the Error folder, log it in Excel, and send an error email.
-
If valid → Pass the file to AI Builder for invoice data extraction.
-
High confidence (≥80%) → File marked as AI Processed.
-
Low confidence (<80%) → File sent for Manual Review.
-

What I’ve tried so far
-
Double-checked the folder path.
-
Tried converting the site URL to plain text (didn’t work).
-
Used:
-
My library name is “Incoming Invoices”, but in Power Automate it appears as “Shared Documents” (I tried both).
-
Replaced spaces in library/folder names.
-
Verified my account has full permissions.
-
Switched from “get file using path” to “get file using identifier” but couldn’t find a proper identifier from the trigger.
-
Tested multiple times but keep getting the same error.
-
My Questions
-
Why is get file metadata/content using path not able to find the file even though it exists?
-
Could the library name (Incoming Invoices) be causing this issue?
-
How can I reliably fetch file details after the trigger without path errors?
-
Has anyone faced this issue before? What worked for you?
-
-
Get file properties only
-
Get file by path (with and without metadata)
-
Body, ID, Name, Full path from dynamic content – none worked.
-
