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 / Error "The File ID is ...
Power Automate
Answered

Error "The File ID is not valid"

(0) ShareShare
ReportReport
Posted on by 12

Hi guys!

I'm trying to do a flow that every time a new email arrives it checks if it's one of the subjects that I want, if yes, he update the file that I have in the specific OneDrive Folder.

The problem is:
 I put in the Update File (OneDrive) field "file" the path for my document that I want to upload, but in some folders I have more than one document to update and then, to save some time, I put in the name of the file as  "Subject".xls from Dynamic Content. So in the blocks that I specify my file it works, but where I use Dynamic Content "subject" doesn't work. 

I've been searching for a solution here in the forum and got some ideas, but I'm a beginner using Power Automate and don't know well how to use variables.
These were the forum questions that I used as a guide.
Error ' Is not Valid' when trying to add attachmen... - Power Platform Community (microsoft.com)
Solved: Build Flow to email Responses & Attachments - Power Platform Community (microsoft.com)

PS: The E-mail subject is the same name as my files the only difference is that documents have the extension ".xls"

 

picture 1.png

 

picture 2v.png

 

error.png

Categories:
  • SanmeshG Profile Picture
    1,956 Moderator on at

    Hi @GuBegas  ,

     

    Try using the file identifier instead of the file name.

     

    Thanks,

  • GuBegas Profile Picture
    12 on at

    Thanks for your reply @SanmeshG

     

    I have to change all the file Path for the "Attachment ID"? Or just the "Subject"?

     

    Thank you so much for the help!

  • Verified answer
    GuBegas Profile Picture
    12 on at

    Hi guys! How are you?

     

    I forgot to update this question here, i'm sorry.

    I found the solution for this error, instead of using "Update File " I use "Create File" and it worked perfectly! 

     

    Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard