I've been stepping through the quickstart instructions to familiarize myself with building PVA ChatBots, from here: https://learn.microsoft.com/en-us/power-virtual-agents/quickstart-preview
I was able to get through the instructions (which need to be updated) and the bot worked as described. I then wanted to break up the reservation date & time into 2 separate variables. For the date value, I created a new variable "reservationDate" using the "Variable Management -> set a variable value" node and used this formula: "DateValue(Topic.reservationDateTime)" and this worked with no problems. I then created a new variable called "reservationTime" and used the fx formula: "TimeValue(Topic.reservationDateTime)" and that's where the problem started.
When running through the chatbot to test, I can see the checkmarks showing up at each step and when it gets to the node that populates the reservationTime variable it also gets a checkmark, however this is where the processing stops. The variable doesn't get populated with the time and the process never goes to the next node.
If I use DateValue instead of TimeValue, the reservationTime value is populated with the date, and processing continues. I also tried using DateAdd and that also works to populate the reservationTime variable and processing continues. But as soon as I add TimeValue into the mix, the process fails.
I used a workaround to do what I needed: Text(Topic.reservationDateTime, "h:mm AM/PM")
Am I not understanding the TimeValue function or something else...?