microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.14k stars 309 forks source link

Getting Error, the untyped object argument to the ‘Text’ function has an incorrect type #2438

Open sohm22 opened 1 month ago

sohm22 commented 1 month ago

‘The untyped object argument to the ‘Text’ function has an incorrect type. Expected: Text, Actual: Microsoft.PowerFx.Types.ExternalType.’ (Text(System.Activity.ChannelData))

MikeStall commented 1 month ago

@Sohm22 - can you include some more details about the repro?

What product is in this in?

sohm22 commented 1 month ago

product - Power Virtual Agent (Copilot Studio)

 "ChannelData": {
    "tenant": {
      "id": "72f988bf-86f1-41af-91ab-2d7cd011db47"
    }
  }

but when we ran Text() over it is giving error

MikeStall commented 1 month ago

This behavior is by-design. Text() only accepts scalars, not records.