cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

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!

View solution in original post

8 REPLIES 8
Dual Super User III
Dual Super User III

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!

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

Dual Super User III
Dual Super User III

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!

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.

Dual Super User III
Dual Super User III

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)

Where can I get this unique id? 

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

Dual Super User III
Dual Super User III

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!

View solution in original post

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (1,769)