cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yoshihirok Memorable Member
Memorable Member

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
Power Automate

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
Community Support

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 Memorable Member
Memorable Member

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 Kudo Kingpin
Kudo Kingpin

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 Memorable Member
Memorable Member

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
New Member

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 Memorable Member
Memorable Member

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 Memorable Member
Memorable Member

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
Did you attend MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’ve streamed the digital event live, or you're watching on-demand, claim your attendee badge to sport on your profile.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,095)