cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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.

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.

 

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,653)