Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Error by creating an adaptive card

(0) ShareShare
ReportReport
Posted on by 4

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
  • steve_hendy Profile Picture
    371 on at
    Re: Error by creating an adaptive card

    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' .

  • DarrenPlant Profile Picture
    77 on at
    Re: Error by creating an adaptive card

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

  • FabiRoe Profile Picture
    4 on at
    Re: Error by creating an adaptive card
    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']}"
            }
    ]
    }
  • efialttes Profile Picture
    14,756 on at
    Re: Error by creating an adaptive card

    Hi!

    Can you share your current adaptive card design?

    Thanx!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow