cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hbkim
Regular Visitor

Issue with Creating files in SharePoint Library from Base64 saved as item in List

Like it is described in the subject, I am collecting file content as base64 in string from.

The file content in base64 is collected from an app created with PowerApps, and saved in a SharePoint list.

 

I have made a flow that was meant to create files in a SharePoint Library from the collected base64.

 

캡처4.JPG

 

This flow creates files up to certain numbers and returns the following error message.

(The number of files created varies when making slight changes in the flow but usually around 39~41. I have around 90 items in the list that was supposed to be transformed in files.)

 

Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2229': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.

 

캡처2.JPG

 

I have no clue what the error message means. It seems like the flow sort of works but stops at a certain point for some reason.

It would be great to have a help on this issue.

1 REPLY 1
sudharsan1985
Solution Sage
Solution Sage

Hi @hbkim 

As per the error message, the problem is with the base64 content and not with the action. Can you capture the listitem id of the item which failed and try to use the base64 string and use some c# console to create the file. Also, make sure all the base64 content are valid.

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,056)