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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 404 item not found - e...
Power Automate
Answered

404 item not found - error when other user run the flow

(0) ShareShare
ReportReport
Posted on by 25

Hi,

Hi,
I've got an app builded in Power App connected with a flow wich is sending e-mail notifications. The problem with a flow is regarding adding images to an e-mail as attachment. From power app I'm giving a path with a file name - this string is used in flow in connector OneDrive - get file content using a path. 

So when I'm using this app and making an action the flow is endig succesful but when different user is making the same action in the app the flow is stoping in this step "Get file content using a path" with error 404 - Item not found. The user has an access to this folder and all files inside.

I think, I've tried everything... I've even gave the user flow owner permissions but it didn't help. Any ideas?

I suppose the problem is with the path but I don't know how to fix it.

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @sulrik 

     

    Can you please share a screenshot of the flow configuration? Also, is this other user a run-only user or a co-owner of the flow?

     

    I see that you are moving an image from flwo to one drive and then adding as ann attachment, if you do not need the file later on, you might want to directly add that as an attachment based on the content. 

     

    Also, please see this article where I have shown passing data from PowerApps (images too) and create files on SharePoint using the JSON function in Canvas Apps. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • sulrik Profile Picture
    25 on at

    Hi,

    "Configuration of the flow" - you mean schema or settings?

    I've try with run-only user and with a co-owner - the same issue. The process look's like this:

    1. In app created in power apps the user is filling a form where one of the fields is a photography, so the user is making a photo.
    2. When user click on accept icon the form is saved, the image is saved in one drive in a folder 
    3. In the same step start a flow's trigger
    4. In a flow one of actions is sending an e-mail with attachments (image)flow-email.JPG

      The attachments content is taken from step before "Get file content using a path" - the path is configured with "Ask in Power apps" - in power apps in the trigger I'm giving this path - it's a path to the folder with images + image file name with extention 

     

    Thank you for this article, but whole process is based on one drive and this is onle small part of this project so rebuilding this to SherPoint will be a long and complicated process

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @sulrik 

     

    Since you are getting error in the "Get file content using Path" action, can you please confirm that you are passing the folder path in format : /Folder1/Folder2/File1.jpg ?
     
    I am guessing that it the flow is not able to find the file which matches this file path, hence you got an error. I got a same error when passed an invalid path. Please make sure that the folder Path is passed properly. "/Folder1/Folder2/File1.jpg
    Highlighed / is mandatory for Root Folder.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • sulrik Profile Picture
    25 on at

    Hi @yashag2255 

    the path is for sure correct because when I'm using the app the flow is ending succesful the error occurse only when other users are filling the form. The best thing is that whole process in power apps is working perfect (the form is saved and also the image is saved) but the flow stops in this point.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @sulrik 

     

    The issue here is that the file exists at absolute path provided by you and this path is only valid for you and not for the other users since this file will be present in the "Shared with Me" folder and flow doesn't support getting files from the shared folder using "Get File Content by Path" action.
     
    The only way to get the file content from shared folder is by passing the Unique Identifier of that specific file. (can you try and confirm this one)
  • sulrik Profile Picture
    25 on at

    Where can I get this unique id? 

    When I set the path with file name I'm getting error 400 worng file id 

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
    Hi @sulrik 
     
    Currently there is no direct way to get this unique id. If you want this to be added in the flow capabilities, please create an idea on the forum.
     
    As a temporary workaround, you can create a SharePoint list which stores this unique identifier along with the name of that file and while running the flow you can get the id from this newly created SharePoint list.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • sulrik Profile Picture
    25 on at

    Hi @yashag2255 

     

    thank you for explanation. As I said before, the whole app is based on onedrive, so I can't use SharePoint list (meaybe I will change it, if tehre will be more time). So I decided that I till Flow will not have this functionality I will send e-mails without shared images. Only link to the folder and that's all. 

     

    Thank you one more time for your help and for your time!

    Best regards

    sulrik

  • Magra Profile Picture
    on at

    Seems the Onedrive action only works for your own OneDrive. Try the "get file content using path" action for Sharepoint instead. That worked for me.

  • Unknown geen idee Profile Picture
    1,757 on at

    Possibly a much easier option is to first run a 'Get files' in OneDrive before the copy-step and then you can refer to the ID of the file as it will be available from the output from 'Get files'. If you have multiple files you can add a condition to filter on file name.

    Just tested it, seems to work as I had the same problem.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard