cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bspisak
Frequent Visitor

Run flow without image

I'm trying to create a button that issues a work order. Occasionally a picture will be submitted however this field will not be mandatory. When a picture is not included I get this error "Unable to process template language expressions in action 'Compose' inputs at line '1' and column '7654': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. "

Would anyone know how to right the expression to avoid the error. My expression is below.

base64ToBinary(triggerbody()?['file']?['contentBytes'])
1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Bspisak,

 

The error is happening on the parameter in base64ToBinary() function is empty, you should input a value that not empty to make sure it could work.

You could add a condition action to check if the triggerbody()?['file']?['contentBytes'] has value:

for example:

Screenshot 2021-02-08 140513.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @Bspisak,

 

The error is happening on the parameter in base64ToBinary() function is empty, you should input a value that not empty to make sure it could work.

You could add a condition action to check if the triggerbody()?['file']?['contentBytes'] has value:

for example:

Screenshot 2021-02-08 140513.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks for the help, that did the trick.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

Top Solution Authors
Users online (1,575)