cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ar0x
Frequent Visitor

Error by creating an adaptive card

I get the following error, when the case is created with the help of Microsoft Dynamics 365 App for Outlook. When the case is created directly in CRM or in portal everything works fine. The flow triggers when the record is created in Dynamics 365.

 

"InvalidJsonInBotAdaptiveCard"
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: H. Path 'body[0].text', line 9, position 40.
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) in X:\bt\1046707\repo\src\processsimple\Roles\ProcessSimple.Data\Components\AdaptiveCards\AdaptiveCardBuilder.cs:line 384
--- End of inner exception stack trace ---
at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor) in X:\bt\1046707\repo\src\processsimple\Roles\ProcessSimple.Data\Components\AdaptiveCards\AdaptiveCardBuilder.cs:line 392
at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity) in X:\bt\1046707\repo\src\processsimple\Roles\ProcessSimple.Web\Common\Validation\BotValidation.cs:line 585
4 REPLIES 4
efialttes
Super User
Super User

Hi!

Can you share your current adaptive card design?

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Ar0x
Frequent Visitor

Here is the designe of my card
{
"type": "AdaptiveCard",
"version": "1.0",
"speak": "Our team meeting is starting soon. Do you want to snooze  or do you want to send a late notification to the attendees?",
"body": [
    {
    "type": "TextBlock",
    "text": "[@{triggerBody()?['ticketnumber']}] @{triggerBody()?['title']}",
    "size": "large",
    "weight": "bolder"
    },
    {
    "type": "TextBlock",
    "text": "Kunde: @{body('Datensatz_abrufen')?['name']}",
    },
    {
    "type": "TextBlock",
    "text": "Nachricht: @{triggerBody()?['description']}",
"wrap": true
    }
],
"actions": [
    {
            "type": "Action.OpenUrl",
            "title": "Ticket öffnen",
            "url": "@{body('Datensatz_abrufen_2')?['new_url']}"
        }
]
}

I have a similar issue, should I post here or start a new thread?

steve_hendy
Resolver I
Resolver I

I've discovered the issue was down to using characters in the text.  Other than using the replace function to parse the text I have no fix.  To date I can't find any Microsoft documentation which lists characters that cannot be used in 'Post your own adaptive card as the flow bot to a user' .

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,027)