Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Action 'Set_variable' failed

(0) ShareShare
ReportReport
Posted on by 988 Super User 2024 Season 1

My Switch case for choice failed with the error,

 

DeviKrishna_0-1640019905572.png

 

The choice values seems to be correct. Has anyone faced this issue?

 

Regards

Devi

  • Verified answer
    Devikumari Krishna Profile Picture
    988 Super User 2024 Season 1 on at
    Re: Action 'Set_variable' failed

    Hi All,

     

    The issue is now resolved.

    I tried to recreate the flow from the beginning and it worked fine. 

    Data verse Basics #5 - Create data in data verse from excel sheet using Power Automate - YouTube

     

     

    Regards

    Devikumari K

  • Devikumari Krishna Profile Picture
    988 Super User 2024 Season 1 on at
    Re: Action 'Set_variable' failed

    Hi @ScottShearer ,

     

    I tried to initialize an integer variable.

     

    Regards

    Devi

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Action 'Set_variable' failed

    @DeviKrishna 

    What type of variable did you initialize?

     

  • Devikumari Krishna Profile Picture
    988 Super User 2024 Season 1 on at
    Re: Action 'Set_variable' failed

    Hi @ScottShearer ,

     

    Please find below the screen shot of my flows.

    I am trying switch case for updating my choice field. I keep getting the error as described above.

    Everything looks fine but.

    DeviKrishna_0-1640048500762.png

     

    DeviKrishna_1-1640048568256.png

     

    Regards

    Devi

     

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Action 'Set_variable' failed

    @DeviKrishna 

    Please post a screen shot of your Flow in design/edit mode.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow