web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : KVaQIT/PO8zD0MmeaS4Bka
Copilot Studio - General
Unanswered

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

Like (3) ShareShare
ReportReport
Posted on 13 Dec 2023 02:29:40 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:
I have the same question (0)
  • GG-21081205-0 Profile Picture
    on 21 Aug 2024 at 11:25:09
    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 19 Apr 2024 at 22:26:47
    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 17 Dec 2023 at 17:13:37
    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 17 Dec 2023 at 17:12:27
    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 13 Dec 2023 at 15:22:37
    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,972 Moderator on 13 Dec 2023 at 15:16:29
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 317 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 235 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 173 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete