Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Get PVA chatbot to clear variable value in cache

(1) ShareShare
ReportReport
Posted on by

I have a topic in my bot that lets approved users verify images for our upcoming equipment catalog. I have a flow that grabs image URLs from a list and returns them to the user with multiple choice option to choose from. The issue that I'm running into is that the bot returns the same item multiple times before finally moving on to a new item. The multiple choice question is receiving input from a power automate flow for images and part ID information. The flow's output is changing every time but the question content is not. I'm thinking that the bot is storing the variables values in cache and that is why it is displaying the item multiple times before finally updating to a new item. Is there a way to get the bot to refresh the variables values in the question every time it's asked?

 

P.S I've already tried changing the question settings to "ask every time", toggled the variable settings i.e receives values, sets values, global variable, etc..., and I've tried copying the topic and having them switch back and forth between the two topics, but with no change in the outcome.

debug1.PNGdebug2.PNGdebug3.PNGdebug4.PNGdebug5.PNGdebug6.PNG

Categories:
  • JJUELKE Profile Picture
    14 on at
    Re: Get PVA chatbot to clear variable value in cache

    >For the UI glitch, that'd odd. I don't repro, the 'Select a destination step' disappears once I select the desired node.

     

    i think there runs some validation.. you can repo if you use "add a condition" in the topic and then try inside the condition tree to add a "go to step" action. then you will also not possible to do so and get no feedback (beside the "Select destination.." popup stays open).   Unfortunately my topic has no condition logic but still not able to ad the go to step action after having an "run flow" action before.

  • HenryJammes Profile Picture
    on at
    Re: Get PVA chatbot to clear variable value in cache

    @JJUELKE wrote:

    very good idea to use formula for [question behaviour>skip question] logic!  
    Happily i don't need it  anymore, as it was a workaround for beeing not able to create a loop via  set "go to step" action anymore after i updated the power automate flow used in a action.....but after lot of playing around and "open code editor" hacks i was able to re-implement what is strangely no more possible via UI.
    also it is of topic here:

    Issue with UI and "go to step" feature = the green popup "Select destination step" stays modul also i click on the target action "question"..... this is definitive (another) bug in UI and dependant on flow actions used in the topic...

    JJUELKE_0-1687556476444.png

     


    Glad you solved this.

    For the UI glitch, that'd odd. I don't repro, the 'Select a destination step' disappears once I select the desired node.

  • JJUELKE Profile Picture
    14 on at
    Re: Get PVA chatbot to clear variable value in cache

    very good idea to use formula for [question behaviour>skip question] logic!  
    Happily i don't need it  anymore, as it was a workaround for beeing not able to create a loop via  set "go to step" action anymore after i updated the power automate flow used in a action.....but after lot of playing around and "open code editor" hacks i was able to re-implement what is strangely no more possible via UI.
    also it is of topic here:

    Issue with UI and "go to step" feature = the green popup "Select destination step" stays modul also i click on the target action "question"..... this is definitive (another) bug in UI and dependant on flow actions used in the topic...

    JJUELKE_0-1687556476444.png

     

  • HenryJammes Profile Picture
    on at
    Re: Get PVA chatbot to clear variable value in cache

    @JJUELKE wrote:

    i feel your pain! Variable handling in PVA is still ugly, i also banging my head on RESET ONLY ONE VARIABLE not all (via "reset all variables") is:

    - Setting an existing variable with FX Expression "Blank()" seems not to work (has no effect on questions where "Allow Question to be skipped" is activated)

     


    Hi @JJUELKE 

     

    Can you change the 'Skip question' behavior to formula?

    HenryJammes_0-1687552713328.png

    This will force the question again if it's blank.

     

    I understand you request the ability to set a variable to undefined/null.

    Can you submit a feature for this here? https://aka.ms/PVAFeatureRequest? 

     

    Henry

  • JJUELKE Profile Picture
    14 on at
    Re: Get PVA chatbot to clear variable value in cache

    i feel your pain! Variable handling in PVA is still ugly, i also banging my head on RESET ONLY ONE VARIABLE not all (via "reset all variables") is:

    - Setting an existing variable with FX Expression "Blank()" seems not to work (has no effect on questions where "Allow Question to be skipped" is activated)

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Get PVA chatbot to clear variable value in cache

    Yes, I wish that were an option in this case. However, I need their index to continue incrementing with each answer (Index is global variable) and if I trigger start over it also resets their index. I wish there were another way. I've tried to hack together so many ways to do this but I'm literally beating my head against my laptop at this point

  • HenryJammes Profile Picture
    on at
    Re: Get PVA chatbot to clear variable value in cache

    The "Start Over" topic clears existing variables, so if it makes sense, perhaps redirect to that topic?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard