web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adaptive Card Error wh...
Power Automate
Unanswered

Adaptive Card Error when using expression

(0) ShareShare
ReportReport
Posted on by 125

Help! I keep getting error messages when trying to run this flow.  I used https://adaptivecards.io/designer/ to create it.

 

Error:

 

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: Invalid property identifier character: <. Path 'body[1].text', line 21, position 14. at Newtonsoft.Json.JsonTextReader.ParseProperty() 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) --- 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)'.
 

 

JSON for adaptive card:

dixonbridgeta_0-1690462516284.png

 

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"text": "Application Request",
"wrap": true,
"id": "title",
"fontType": "Monospace",
"size": "Large",
"weight": "Bolder",
"isSubtle": true,
"style": "default"
},
{
"type": "TextBlock",
"text": "New comment from: <at>@{triggerBody()['text_2']}</at> in
Application Request<br>",
@{join(body('Select'), ' ')} @{triggerBody()['text_1']} ,
"wrap": true,
"id": "message"
},
{
"type": "Input.Text",
"placeholder": "Type your response here",
"id": "response",
"maxLength": 0,
"isMultiline": true,
"separator": true
},
{
"type": "ActionSet",
"separator": true,
"id": "actions",
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"id": "submit",
"style": "positive"
},
{
"type": "Action.OpenUrl",
"title": "Go to the Application Request tool",
"url": "https://apps.powerapps.com/play/e/default-2567b4c1-b0ed-40f5-aee3-58d7c5f3e2b2/a/80cbaef5-254b-4af1-a240-c362137d452e?tenantId=2567b4c1-b0ed-40f5-aee3-58d7c5f3e2b2",
"id": "url",
"style": "positive"
}
]
}
]
}

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @dixonbridgeta 

     

    There is syntax error at line 21. Pls try using the below JSON:

     

    {
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
    {
    "type": "TextBlock",
    "text": "Application Request",
    "wrap": true,
    "id": "title",
    "fontType": "Monospace",
    "size": "Large",
    "weight": "Bolder",
    "isSubtle": true,
    "style": "default"
    },
    {
    "type": "TextBlock",
    "text": "New comment from: <at>@{triggerBody()['text_2']}</at> in
    Application Request<br>
    @{join(body('Select'), ' ')} @{triggerBody()['text_1']}",
    "wrap": true,
    "id": "message"
    },
    {
    "type": "Input.Text",
    "placeholder": "Type your response here",
    "id": "response",
    "maxLength": 0,
    "isMultiline": true,
    "separator": true
    },
    {
    "type": "ActionSet",
    "separator": true,
    "id": "actions",
    "actions": [
    {
    "type": "Action.Submit",
    "title": "Submit",
    "id": "submit",
    "style": "positive"
    },
    {
    "type": "Action.OpenUrl",
    "title": "Go to the Application Request tool",
    "url": "https://apps.powerapps.com/play/e/default-2567b4c1-b0ed-40f5-aee3-58d7c5f3e2b2/a/80cbaef5-254b-4af1-...",
    "id": "url",
    "style": "positive"
    }
    ]
    }
    ]
    }

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • dixonbridgeta Profile Picture
    125 on at

    Thank you! Would you happen to know how to get this back to a specific SP item?

    The flow is triggered from a comments section in an application and that comment sectioned is tied to a specific item. I am trying to get the responses back from this card which I can now do, and then tie it into the item that was selected when the comment was sent through the card. However, since there was no initial SP list trigger, I can't figure out how to match it back. I tried the "respond to powerapp" action but it didn't work. Now I am trying to get the field name tied into the comment from the start and then use a get items action with a filter that matches that field name and then update the item, however I keep running into this annoyance inside the powerapp code:

    dixonbridgeta_0-1690493580453.png

     

    The button code inside powerapps: 

    PowerAppsButton.Run(JSON(ComboBox1.SelectedItems.Mail),RichTextEditor1.HtmlText,User().Email, DataCardValue100_1.Text ));

     

     

    The comments were working fine until I tried to get a response and that code was: 

    PowerAppsButton.Run(JSON(ComboBox1.SelectedItems.Mail),RichTextEditor1.HtmlText,User().Email));

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @dixonbridgeta 

     

    Pls check if this is helpful:

    1. Create a temp list and add a new entry with item id & comments from power apps button click (run flow).

    2. Add an automate flow on item created for temp list and post an adaptive card to team. Update the comments in the original SP list as received from adaptive card.

    3. In power apps, pls provide "refresh" button to get the latest comments from SP list (using flow) or directly from the SP list data source. Another approach is to add a timer control on the form that runs periodically and run the flow to fetch the latest comments from SP list, but this approach is not optimal as you will make continuous network calls to get the latest comments. 

     

    Pls try if these techniques are useful in your case 🙂

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard