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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Users online (98,210)