Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Calling Actions from Copilot S...
Unanswered

Condition node evaluating a variable returned from Power Automate evaluates incorrectly

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have a bot that calls a Power Automate action. When testing in the PVA bot designer, everything works as expected. However, the published version of my bot behaves differently. I can see Power Automate's history that my flow returns the values correctly, however, the bot behaves as if the variables have not been set from the flow and follows the wrong condition branch. I also see this from other nodes where I use a returned value. Instead of the value Power Automate, history tells me was returned, PVA will write out a GUID and not the correct value.

You'll see from the screenshot and the PA response body that it seems to think that HasError is false and that ErrorMessage is empty.

 

Talsmonkey_0-1658758116953.png

The Power automate flow response body:

{
  "expectedotp""",
  "haserror"true,
  "errormessage""No investor found for ID number provided.",
  "maskedmobilenumber"""
}
 
The response where instead of the value returned, it writes out a guid:

The client was sent an OTP on '{2ceef2c8-10c6-4959-a48e-9bbe0daf7120}'. Please verify the OTP.

 
Just to reiterate: In the bot designer, while editing the topics, it works all the time. After publishing it doesn't work most of the time in either Teams or the demo website.
 

Any help or guidance would be greatly appreciated.

 

Kind regards, 

Charl Marais

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard >

Featured topics