cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
yoshihirok
Level 10

Error: Variables - Set Variable "The request content was invalid and could not be deserialized:"

I get error about Variables - Set Variable action.

 

Error message:

The request content was invalid and could not be deserialized: 'Error converting value "SetVariable" to type 'System.Nullable`1[Microsoft.Azure.Flow.Templates.Schema.FlowTemplateOperationType]'. Path 'properties.definition.actions.Set_variable.type', line 1, position

 

Repro step:

1. Trigger : manual button.

2. Action : Variables - Initialize variable ( Name = Count, Type = Integer, Value = 0 )

3. Action : Variables - Set variable ( Name = Count, Value = 1 )

4. Action : Alert the teams

5. Update flow.

6. Get Error message1.png

 

 

 

When the action "Set variable" remove, I can update well.

I want to use "Set variable" to do more by Microsoft Flow.

 

Regards,

Yoshihiro Kawabata

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Power Automate Staff TravisB
Power Automate Staff

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi all,

 

The deployment with this fix is currently rolling out. Assuming no delays, it will be available in all regions Monday.

 

We appreciate everyone's patience in resolving this!

 

Thanks,

Travis

View solution in original post

22 REPLIES 22
Community Support Team
Community Support Team

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi @yoshihirok,

 

I am able to reproduce your issue. I will try to report this to the pg and will update you once I got any information.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
yoshihirok
Level 10

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Thank you @v-monli-msft for your repro, and report.

 

I am waiting any update about this issue.

 

Regards,

Yoshihiro Kawabata

 

efialtes
Level 8

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

I got the same error when "initialize variable" and then "set variable", the only difference is the variable I tried to define and set is a string instead of an integer.

Hope it helps

.

yoshihirok
Level 10

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi @efialtes

 

Thank you for reproduce this issue.

 

Yes, This issue happen both variable type , Integer and String.

 

Regards,

Yoshihiro Kawabata

Super User
Super User

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi @yoshihirok i have this issue too, i think it's a 'global bug'. I used the Increment to workaround this bug, and it worked pretty good

 

Thanks to report.

 

Regards,

 

Gustavo Moraes


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


vfortes1
Level: Power Up

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

I've got the same error. The increment does not work for me because I'd like to work with strings.

 

Is there a solution for this?

Super User
Super User

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

@vfortes1depend than you need you can use Compose with 'if' methods inside.Variables right now is only for integers and floats. If you can open a topic about your need and print some pictures we can help.

 

Regards,

 

Gustavo Moraes


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


yoshihirok
Level 10

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi @gamoraes,

 

Thank you for reproduce this issue.

and I used the Variables - Increment.

 

and When I can use Set Variable action, Do more by Microsoft Flow.

 

Regards,

Yoshihiro Kawabata

yoshihirok
Level 10

Re: Error: Variables - Set Variable "The request content was invalid and could not be deseriali

Hi @vfortes1

 

Thank you for report this error.

and I think too, about some scenario need Variables - Set Variable action.

 

I am waiting solve this error.

 

Reagards,

Yoshihiro Kawabata

 

 

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,579)