Tag: SharePoint

 

Common mistake/error message when trying to access MS SharePoint, AADSTS50085

Common mistake/error message when trying to access, this is code AADSTS50085 from Microsoft documentation, but make essier for everybodoy
You can not logged or have more than ONE SharePoint’site in the site browser.
AADSTS50085

AADSTS50085 Refresh token needs social IDP login. Have user try signing-in again with username -password

Solution of the AADSTS50085:

Solution A: Sign out the first out and sign again with different

Solution B: Using an incognito mode or private mode.

Solution C: Using different browser.

Solution Microsoft Power apps and power automate error appres://blobmanager

Solution for Microsoft Power apps and power automate error appres://blobmanager, that will upload corruputed file to Sharepoint:


Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '12861': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'appres://blobmanager/10c34f7263814cd2a8f8750449b64a29/1' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'

1- IT require to use Json on Power apps form on the OnSelect function to transform to binary code file to upload to Sharepoint by Power automate:
Change this by:
PowerAppsUploadDocuments.Run(AddMediaButton1.FileName,UploadedImage1.Image);

This using json:
PowerAppsUploadDocuments.Run(AddMediaButton1.FileName,Substitute(JSON(UploadedImage1.Image, JSONFormat.IncludeBinaryData),””””, “”));

Microsoft Power automate, encodian Insert HTML to PDF, BadGateway 502 solution

Microsoft Power automate, encodian Insert HTML to PDF, BadGateway 502 solution
Error message and action Action ‘Insert_HTML_to_PDF’ failed
BadGateway html to pdf


{
  "error": {
    "code": 502,
    "source": "flow-apim-europe-001-northeurope-01.azure-apim.net",
    "clientRequestId": "7dd5f762-ee40-4c41-8541-9df5b92281d4",
    "message": "BadGateway",
    "innerError": {
      "HttpStatusCode": 500,
      "HttpStatusMessage": "An error occurred processing the request",
      "OperationId": "3626fc0e-574b-4447-a4fb-bbeef023b27a\\1",
      "Errors": [],
      "Operation Status": "Error",
      "Filename": null,
      "FileContent": null
    }
  }
}

Solution 1: Rebsumit it
If the error code 500 or 502 appears, the failure is temporary or transient. Click or tap Resubmit to try the flow again.

Solution 2: Double-check the original PDF you are try to appaend is OK first.
You can not preview the file SharePoint by the browser the “Insert HTML to PDF” process will fail.
Hmm.. Looks like this file doesn’t have a preview we can show you.

In our case the uploading document by Power apps were not decoding the final document on SharePoint