Hi All,
I'm getting the below error when trying to set up an adaptive card to work with a dropdown.
BadRequest. The request failed. Error code: 'InvalidJsonInBotAdaptiveCard'. Error Message: 'Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: The specified Teams flowbot adaptive card request is missing or invalid. The tracking Id is '{0}'. ---> Newtonsoft.Json.JsonReaderException: Unexpected end of content while loading JObject. Path 'body[0].columns[0].actions[0]', line 62, position 9. at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options) at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) --- End of inner exception stack trace --- at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity)'.
My message is set up as
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Workload Request Submitted",
"weight": "Bolder",
"size": "Medium",
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "Submitted by @{items('Apply_to_each')?['DisplayName']}",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "@{outputs('Get_response_details')?['body/r9be4a039142c49f690a9f1e6b4534c3e']}",
"isSubtle": true,
"wrap": true,
"size": "Default"
},
{
"type": "Container",
"$data": "${properties}",
"items": [
{
"type": "TextBlock",
"text": "@{outputs('Get_response_details')?['body/r59b35839aae445049493e7ae3e3ae50c']}",
"wrap": true,
"isSubtle": true
},
{
"type": "Input.ChoiceSet",
"id": "We just need to know which engineer will do this",
"value": "5",
"choices": [
{
"name": "@{items('Apply_to_each_2')?['EmailAddress']}",
"placeholder": ""
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
I've had a look through and struggling to understand so need some other eyes on it. Please if anyone could help it would be much appreciated.
Thanks