Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

(3) ShareShare
ReportReport
Posted on by

I am building a bot in Copilot studio and using Parse Value to parse Jason in topic. Using get schema from sample. When I am trying to store output json in variable getting error "variable is being set to incorrect type, Assigned Record , expected String"

Variable type is Record and output of parse value is also valid Record, not sure why variable is expecting string?

Also variable was never used before to store string.

Note that topic works as expected and returns response but it is not allowing me to publish bot due to error.

Categories:
  • GG-21081205-0 Profile Picture
    on at
    Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String
    Having the same issue, which is blocking our work completely. Any progress?

     
  • toya0324 Profile Picture
    11 on at
    Re: Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

    Looks like this was never resolved.

  • SamirPathak Profile Picture
    on at
    Re: Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

    No I am using Parse Value action to parse JSON.

  • SamirPathak Profile Picture
    on at
    Re: Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

    Both options are unchecked, do I need to keep them checked?

  • Robulane Profile Picture
    on at
    Re: Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

    Hey, did you check "Receive values from other topics" or "Return values to original topics" in the variable properties ? If yes, try to un-check, save, check again, save. Let me know if this helps.

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Getting error in topic, variable is being set to incorrect type, Assigned Record , expected String

    Hi @SamirPathak 

    Are you using any PowerFx expression to parse JSON data and store it in the variable?

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Ekta Gupta Profile Picture

Ekta Gupta 4

#2
ricardodesouza Profile Picture

ricardodesouza 2

#2
L-1234567-0 Profile Picture

L-1234567-0 2

Overall leaderboard