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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Topic input variable a...
Copilot Studio
Unanswered

Topic input variable autofill at dynamic chaining: datetime entity error

(1) ShareShare
ReportReport
Posted on by 37

Prompt:

list the events on the business calendar starting at 5th April 2024 7PM GMT

 

Provided value of type StringDataType for variable timeMin does not match the expected type of DateTimeDataType in Dialog cree4_editoReviewDev6.topic.GoogleCalendar-Listtheeventsonacalendarv2 Error code: MissingOrInvalidVariableAssignment. Conversation ID: cea71590-dfd0-4fab-a5af-236d9bade185. Time (UTC): 4/2/2024 10:29:53 PM.

 

For a simple topic which ask a question to fill a datetime variable of the topic which is input externally.

 

There is no problem with string entity input variables.

 

copilot studio bug datatime entity dynamic chaining 2 Capture.PNGcopilot studio bug datatime entity dynamic chaining 1 Capture.PNG

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @OOO1337777,

     

    Don't know if it helps, but in a Power Automate cloud flow you can convert your string to a datetime value via a parsedatetime function.

     

    parseDateTime(triggerBody()['text'], 'en-us', 'd/M/yyyy hh:mm tt')

     

    parsedatetimefunction.png

     

    Also used Text function in Power Fx to be able to map it to the text input of the Power Automate cloud flow.

     

    parsedatetimefunction_pva.png

  • OOO1337777 Profile Picture
    37 on at

    You completely misunderstood the problem... Here is the problem:

     

    if you type the prompt which dynamically trigger the topic while giving the date and time in advance:

     list the events on the business calendar starting at 5th April 2024 7PM GMT

     

    You get this error, as long as your receiving variable is a datetime entity instead of string entity:

    Provided value of type StringDataType for variable timeMin does not match the expected type of DateTimeDataType in Dialog cree4_editoReviewDev6.topic.GoogleCalendar-Listtheeventsonacalendarv2 Error code: MissingOrInvalidVariableAssignment. Conversation ID: cea71590-dfd0-4fab-a5af-236d9bade185. Time (UTC): 4/2/2024 10:29:53 PM.

  • simondoy Profile Picture
    34 on at

    Hi,

    I believe I understand your issue. The problem is that the date time format that is passed through into your dynamic chaining plugin is not of the right format.

    Have a read of this blog post that I wrote to describe how I resolved the issue of getting the dynamic chaining functionality in Copilot Studio using a better plugin parameter description.

     

    Working with Copilot Studio Dynamic Chaining Plug-in Actions DateTime Parameters | Doy's Microsoft 365 and Azure Dev Blog (simondoy.com)

     

    Hope that helps

    Simon

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard