Applies to Product - Microsoft Copilot Studio
What’s happening?
The customer encounters an error message indicating a type mismatch when attempting to use a DateTime type in a Copilot Studio action, where a String type is expected instead.
Reason:
The underlying cause of this is that the Copilot Studio is providing a DateTime type variable where String type is expected. This mismatch leads to an error code such as "MissingOrInvalidVariableAssignment" or "BindingIncorrectTypeError".
Resolution:
- To resolve this, it is recommended to convert from DateTime to string using a PowerFx expression. This can be done in multiple ways:
- For a Connector in Topic, create a Set variable value node before the Connector and user a Text() PowerFx expression to convert to type string.
- For a Tool, you may consider wrapping inside a Power Automate Flow.
