Bad Gateway Error in Microsoft Flow, Now Power Automate
[HTTP Request to SharePoint fails with 502 ]
While most blogs refer to this error as something that might disaper.
In my case I had no time to validate that, so I executed the following procedures:
None the above worked, as some of the worflow was executed I decided to inspect the site content in sharepoint and there I found the elements created for the flow, basically the error was because initially some of the list were created, at this time I proceeded to deleted the elements created by the flow, check this image for a reference.
Caller Objec it does not have permission for connection
[The caller with object id '5b6be5a0-d5fa-42b3-b9cc-62cfef09c137' does not have permission for connection '/providers/Microsoft.PowerApps/apis/shared_sharepointonline/connections/shared-sharepointonl-4eef026f-acdb-4984-a77f-c905072e9b4e' under Api 'shared_sharepointonline'.]
Error adding the elements to the view
In my case, depending on the version of this app you want to deploy, the error adding the elements to the view might show, if that is the case you can delete the add precedure from every single part of the workflow. The application will behave the same it is not necessary to add the fields to the view, you can do it mannualy later, what is really important is tha the flow creates the actuals fields in the view.
Finally the flow will run with error, the final result in the sharepoint will look like this:
If you have any other error, leave a comment I may able to help.
workflow already repaired