cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jKell
Advocate III
Advocate III

HTML to PDF Works for Me, but Not Others

I have an app with Shane Young's HTML to PDF Flow.  I am using the flow one time in my app with great success.  However I am using the app in a second place and am getting a 404 error in Flows only when others use my app.

 

The weird thing is the data connections are the same in both places, but during the conversion step, I get error:

 

 

{
  "status": 404,
  "message": "The resource could not be found.",
  "source": "api.connectorp.svc.ms"
}

 

 

I have seen some comments that this happens because of Shared Folder location... however my other flow that uses the same location works every time.

 

Any ideas would be appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions

To convert HTML to PDF, you have to use OneDrive for Business.

I was able to fix the issue by rebuilding the Flow and using Convert file using path.  I have tested with different users and it is working.

 

ConvertFile_OPTIONS.jpg

View solution in original post

6 REPLIES 6
Eelman
Super User
Super User

@jKell this sounds like a Power Automate questions rather than a PowerApps one. You may be best asking over in that forum here

 

https://powerusers.microsoft.com/t5/Forums/ct-p/FL_Comm_Forums

 

From my read of your issue, it would seem to be a permissions problem either with the OneDrive folder (I'm assuming you are using this in your Flow?) and/or the Flow itself. Best asking on the other forums though.

v-siky-msft
Community Support
Community Support

Hi @jKell ,

 

Could you please share more about the flow details?

The error means the other users don't have permission to access to SharePoint folder. Sharing folders with users is not enough.

You have to add all users into Group MemberShip of SharePoint, then the users will inherit SharePoint permission in Flow.      

Snipaste_2020-03-03_12-27-43.png

Sik                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I have two flows that both use the exact same location/connectors on my one drive for business.

 

One of the flows works for all audiences

  1. Takes the parameters from PowerApps
  2. Writes an HTML file to OneDrive
  3. Converts the HTML content to PDF 
  4. Emails with attachment of PDF content
  5. Responds value back to PowerApps

The other one does the exact same things in the same location, and for me it works, but others it doesn't.

 

v-siky-msft
Community Support
Community Support

Hi @jKell 

 

OK. 

Could you share the detailed flow steps and error message screenshot? 

Could you try to create another flow with the same actions to check if the issue still remains?

 

What I suggest is to convert HTML file to PDF on a company-public Sharepoint site instead of OneDriven for business.

The SharePoint site should contain all users as members.

Please try this alternative workaround to check if your issue is fixed.

Sik

@v-siky-msft 

I am not seeing the Convert to PDF option in Sharepoint.  I only chose the OneDrive as they have the built in HTML to PDF conversion.  I will attempt re-building and let me know if it works.

To convert HTML to PDF, you have to use OneDrive for Business.

I was able to fix the issue by rebuilding the Flow and using Convert file using path.  I have tested with different users and it is working.

 

ConvertFile_OPTIONS.jpg

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,631)