cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
desrochp
Regular Visitor

Adaptive Card Error - InvalidJsonInBotAdaptiveCard

Would anyone here be able to help me out? 

 

Error Details:

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: After parsing a value an unexpected character was encountered: ". Path 'body[2].facts[0].title', line 22, position 1.
at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)
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) in X:\bt\1178851\repo\src\processsimple\Roles\ProcessSimple.Data\Components\AdaptiveCards\AdaptiveCardBuilder.cs:line 503
--- End of inner exception stack trace ---
at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) in X:\bt\1178851\repo\src\processsimple\Roles\ProcessSimple.Data\Components\AdaptiveCards\AdaptiveCardBuilder.cs:line 522
at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity) in X:\bt\1178851\repo\src\processsimple\Roles\ProcessSimple.Web\Common\Validation\BotValidation.cs:line 643

 

 

Inputs:

 

{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Update from Sharepoint",
"spacing": "Medium",
"size": "Large",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "A new item was added to a list",
"size": "Medium",
"spacing": "None"
},
{
"type": "FactSet",
"facts": [
{
"title": "Component Type"
"value": "@{triggerOutputs()?['body/ComponentTypes/Value']}"
},
{
"title": "Serial Number"
"value": "@{triggerOutputs()?['body/Serial_x0023_']}"
},
{
"title": "Average Ra"
"value": "@{triggerOutputs()?['body/Average_x0020_RA']}"
},
{
"title": "Created by",
"value": "@{triggerOutputs()?['body/Author/DisplayName']}"
},
{
"title": "Time",
"value": "@{triggerOutputs()?['body/Created']}"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.OpenUrl",
"title": "View list",
"url": "@{triggerOutputs()?['body/{Link}']}"
}
]
}
],
"version": "1.2",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
krootz
Solution Supplier
Solution Supplier

@desrochp you're missing commas (,) in the highlighted sections below

comma.png

View solution in original post

2 REPLIES 2
krootz
Solution Supplier
Solution Supplier

@desrochp you're missing commas (,) in the highlighted sections below

comma.png

Thank you so much!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,662)