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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / schema error with adap...
Copilot Studio
Unanswered

schema error with adaptive card

(1) ShareShare
ReportReport
Posted on by 34
I am trying to create an adaptive card that will ask the user to select which country they live in.
The list of countries provided within the card depends on the value of a variable for contintent topic.user_continent chosen an an earlier stage within the topic.
 
I keep getting the same 5 errors, listed below:

Unexpected characters. The formula contains '$schema' where 'Ident' is expected.

Unexpected characters. The formula contains '$schema' where 'Colon' is expected.

Expected colon. We expect a colon (:) at this point in the formula.
Unexpected characters. The formula contains 'Colon' where 'CurlyClose' is expected.

Unexpected characters. Characters are used in the formula in an unexpected way.

 
Below is the JSON I am using:
 
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "Input.ChoiceSet",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": 2,
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Tell us about yourself",
                            "weight": "bolder",
                            "id": "Title",
                            "size": "extraLarge"
                        },
                        {
                            "type": "TextBlock",
                            "text": "Please tell me which country you currently live in:",
                            "isSubtle": true,
                            "wrap": true,
                            "id": "acInstructions",
                            "size": "Large"
                        }
                    ]
                }
            ]
        },
        {
            "type": "Input.ChoiceSet",
            "placeholder": "Select your country",
            "choices": [
                {
                    "$when": "topic.user_continent == 'Africa'",
                    "choices": [
                        { "title": "Algeria", "value": "Algeria" },
                        { "title": "Angola", "value": "Angola" },
                        { "title": "Benin", "value": "Benin" },
                        { "title": "Botswana", "value": "Botswana" },
                        { "title": "British Indian Ocean Territory", "value": "British Indian Ocean Territory" },
                        { "title": "Burkina Faso", "value": "Burkina Faso" },
                        { "title": "Burundi", "value": "Burundi" },
                        { "title": "Cabo Verde", "value": "Cabo Verde" },
                        { "title": "Cameroon", "value": "Cameroon" },
                        { "title": "Central African Republic", "value": "Central African Republic" },
                        { "title": "Chad", "value": "Chad" },
                        { "title": "Comoros", "value": "Comoros" },
                        { "title": "Congo", "value": "Congo" },
                        { "title": "Cote d Ivoire", "value": "Cote d Ivoire" },
                        { "title": "Democratic Republic of the Congo", "value": "Democratic Republic of the Congo" },
                        { "title": "Dijbouti", "value": "Dijbouti" },
                        { "title": "Egypt", "value": "Egypt" },
                        { "title": "Equatorial Guinea", "value": "Equatorial Guinea" },
                        { "title": "Eritrea", "value": "Eritrea" },
                        { "title": "Eswatini", "value": "Eswatini" },
                        { "title": "Ethiopia", "value": "Ethiopia" },
                        { "title": "French Southern Territories", "value": "French Southern Territories" },
                        { "title": "Gabon", "value": "Gabon" },
                        { "title": "Gambia", "value": "Gambia" },
                        { "title": "Ghana", "value": "Ghana" },
                        { "title": "Guinea", "value": "Guinea" },
                        { "title": "Guinea-Bissau", "value": "Guinea-Bissau" },
                        { "title": "Kenya", "value": "Kenya" },
                        { "title": "Lesotho", "value": "Lesotho" },
                        { "title": "Liberia", "value": "Liberia" },
                        { "title": "Libya", "value": "Libya" },
                        { "title": "Madagascar", "value": "Madagascar" },
                        { "title": "Malawi", "value": "Malawi" },
                        { "title": "Mali", "value": "Mali" },
                        { "title": "Mauritania", "value": "Mauritania" },
                        { "title": "Mauritius", "value": "Mauritius" },
                        { "title": "Mayotte", "value": "Mayotte" },
                        { "title": "Morocco", "value": "Morocco" },
                        { "title": "Mozambique", "value": "Mozambique" },
                        { "title": "Namibia", "value": "Namibia" },
                        { "title": "Niger", "value": "Niger" },
                        { "title": "Nigeria", "value": "Nigeria" },
                        { "title": "Reunion", "value": "Reunion" },
                        { "title": "Rwanda", "value": "Rwanda" },
                        { "title": "Saint Helena", "value": "Saint Helena" },
                        { "title": "Sao Tame and Principe", "value": "Sao Tame and Principe" },
                        { "title": "Senegal", "value": "Senegal" },
                        { "title": "Seychelles", "value": "Seychelles" },
                        { "title": "Sierra Leone", "value": "Sierra Leone" },
                        { "title": "Somalia", "value": "Somalia" },
                        { "title": "South Africa", "value": "South Africa" },
                        { "title": "South Sudan", "value": "South Sudan" },
                        { "title": "Sudan", "value": "Sudan" },
                        { "title": "Togo", "value": "Togo" },
                        { "title": "Tunisia", "value": "Tunisia" },
                        { "title": "Uganda", "value": "Uganda" },
                        { "title": "United Republic of Tanzania", "value": "United Republic of Tanzania" },
                        { "title": "Western Sahara", "value": "Western Sahara" },
                        { "title": "Zambia", "value": "Zambia" },
                        { "title": "Zimbabwe", "value": "Zimbabwe" }
                    ]
                },
                {
                    "$when": "topic.user_continent == 'APAC'",
                    "choices": [
                        { "title": "Afghanistan", "value": "Afghanistan" },
                        { "title": "Australia", "value": "Australia" },
                        { "title": "Bangladesh", "value": "Bangladesh" },
                        { "title": "Bhutan", "value": "Bhutan" },
                        { "title": "Brunei Darussalam", "value": "Brunei Darussalam" },
                        { "title": "Cambodia", "value": "Cambodia" },
                        { "title": "China", "value": "China" },
                        { "title": "Hong Kong, China", "value": "Hong Kong, China" },
                        { "title": "Macao, China", "value": "Macao, China" },
                        { "title": "Cook Islands", "value": "Cook Islands" },
                        { "title": "Democratic People's Republic of Korea", "value": "Democratic People's Republic of Korea" },
                        { "title": "Fiji", "value": "Fiji" },
                        { "title": "India", "value": "India" },
                        { "title": "Indonesia", "value": "Indonesia" },
                        { "title": "Japan", "value": "Japan" },
                        { "title": "Kiribati", "value": "Kiribati" },
                        { "title": "Lao People's Democratic Republic", "value": "Lao People's Democratic Republic" },
                        { "title": "Malaysia", "value": "Malaysia" },
                        { "title": "Maldives", "value": "Maldives" },
                        { "title": "Marshall Islands", "value": "Marshall Islands" },
                        { "title": "Micronesia (Federated States of)", "value": "Micronesia (Federated States of)" },
                        { "title": "Mongolia", "value": "Mongolia" },
                        { "title": "Myanmar", "value": "Myanmar" },
                        { "title": "Nauru", "value": "Nauru" },
                        { "title": "Nepal", "value": "Nepal" },
                        { "title": "New Zealand", "value": "New Zealand" },
                        { "title": "Pakistan", "value": "Pakistan" },
                        { "title": "Palau", "value": "Palau" },
                        { "title": "Papua New Guinea", "value": "Papua New Guinea" },
                        { "title": "Philippines", "value": "Philippines" },
                        { "title": "Republic of Korea", "value": "Republic of Korea" },
                        { "title": "Samoa", "value": "Samoa" },
                        { "title": "Singapore", "value": "Singapore" },
                        { "title": "Solomon Islands", "value": "Solomon Islands" },
                        { "title": "Sri Lanka", "value": "Sri Lanka" },
                        { "title": "Thailand", "value": "Thailand" },
                        { "title": "Timor Leste", "value": "Timor Leste" },
                        { "title": "Tonga", "value": "Tonga" },
                        { "title": "Tuvalu", "value": "Tuvalu" },
                        { "title": "Vanuatu", "value": "Vanuatu" },
                        { "title": "Vietnam", "value": "Vietnam" }
                    ]
                },
                {
                    "$when": "topic.user_continent == 'Europe'",
                    "choices": [
                        { "title": "Aland Islands", "value": "Aland Islands" },
                        { "title": "Albania", "value": "Albania" },
                        { "title": "Andorra", "value": "Andorra" },
                        { "title": "Austria", "value": "Austria" },
                        { "title": "Belarus", "value": "Belarus" },
                        { "title": "Belgium", "value": "Belgium" },
                        { "title": "Bosnia & Herzegovina", "value": "Bosnia & Herzegovina" },
                        { "title": "Bulgaria", "value": "Bulgaria" },
                        { "title": "Croatia", "value": "Croatia" },
                        { "title": "Czechia", "value": "Czechia" },
                        { "title": "Denmark", "value": "Denmark" },
                        { "title": "Estonia", "value": "Estonia" },
                        { "title": "Faroe Islands", "value": "Faroe Islands" },
                        { "title": "Finland", "value": "Finland" },
                        { "title": "France", "value": "France" },
                        { "title": "Germany", "value": "Germany" },
                        { "title": "Gibraltar", "value": "Gibraltar" },
                        { "title": "Greece", "value": "Greece" },
                        { "title": "Guernsey", "value": "Guernsey" },
                        { "title": "Holy See", "value": "Holy See" },
                        { "title": "Hungary", "value": "Hungary" },
                        { "title": "Iceland", "value": "Iceland" },
                        { "title": "Ireland", "value": "Ireland" },
                        { "title": "Isle of Man", "value": "Isle of Man" },
                        { "title": "Italy", "value": "Italy" },
                        { "title": "Jersey", "value": "Jersey" },
                        { "title": "Latvia", "value": "Latvia" },
                        { "title": "Liechtenstein", "value": "Liechtenstein" },
                        { "title": "Lithuania", "value": "Lithuania" },
                        { "title": "Luxembourg", "value": "Luxembourg" },
                        { "title": "Malta", "value": "Malta" },
                        { "title": "Monaco", "value": "Monaco" },
                        { "title": "Montenegro", "value": "Montenegro" },
                        { "title": "Netherlands", "value": "Netherlands" },
                        { "title": "North Macedonia", "value": "North Macedonia" },
                        { "title": "Norway", "value": "Norway" },
                        { "title": "Poland", "value": "Poland" },
                        { "title": "Portugal", "value": "Portugal" },
                        { "title": "Republic of Moldova", "value": "Republic of Moldova" },
                        { "title": "Romania", "value": "Romania" },
                        { "title": "Russian Federation", "value": "Russian Federation" },
                        { "title": "San Marino", "value": "San Marino" },
                        { "title": "Sark", "value": "Sark" },
                        { "title": "Serbia", "value": "Serbia" },
                        { "title": "Slovakia", "value": "Slovakia" },
                        { "title": "Slovenia", "value": "Slovenia" },
                        { "title": "Spain", "value": "Spain" },
                        { "title": "Svalbard & Jan Mayen Islands", "value": "Svalbard & Jan Mayen Islands" },
                        { "title": "Sweden", "value": "Sweden" },
                        { "title": "Switzerland", "value": "Switzerland" },
                        { "title": "Ukraine", "value": "Ukraine" },
                        { "title": "United Kingdom of Great Britain & Northern Ireland", "value": "United Kingdom of Great Britain & Northern Ireland" }
                    ]
                },
                {
                    "$when": "topic.user_continent == 'North & South America'",
                    "choices": [
                        { "title": "Anguilla", "value": "Anguilla" },
                        { "title": "Antigua and Barbuda", "value": "Antigua and Barbuda" },
                        { "title": "Argentina", "value": "Argentina" },
                        { "title": "Aruba", "value": "Aruba" },
                        { "title": "Bahamas", "value": "Bahamas" },
                        { "title": "Barbados", "value": "Barbados" },
                        { "title": "Belize", "value": "Belize" },
                        { "title": "Bermuda", "value": "Bermuda" },
                        { "title": "Bolivia (Plurinational State of)", "value": "Bolivia (Plurinational State of)" },
                        { "title": "Bonaire, Sint Eustatius and Saba", "value": "Bonaire, Sint Eustatius and Saba" },
                        { "title": "Bouvet Island", "value": "Bouvet Island" },
                        { "title": "Brazil", "value": "Brazil" },
                        { "title": "British Virgin Islands", "value": "British Virgin Islands" },
                        { "title": "Canada", "value": "Canada" },
                        { "title": "Cayman Islands", "value": "Cayman Islands" },
                        { "title": "Chile", "value": "Chile" },
                        { "title": "Colombia", "value": "Colombia" },
                        { "title": "Costa Rica", "value": "Costa Rica" },
                        { "title": "Cuba", "value": "Cuba" },
                        { "title": "Curacao", "value": "Curacao" },
                        { "title": "Dominica", "value": "Dominica" },
                        { "title": "Dominican Republic", "value": "Dominican Republic" },
                        { "title": "Ecuador", "value": "Ecuador" },
                        { "title": "El Salvador", "value": "El Salvador" },
                        { "title": "Falkland Islands (Malvinas)", "value": "Falkland Islands (Malvinas)" },
                        { "title": "French Guiana", "value": "French Guiana" },
                        { "title": "Greenland", "value": "Greenland" },
                        { "title": "Grenada", "value": "Grenada" },
                        { "title": "Guadeloupe", "value": "Guadeloupe" },
                        { "title": "Guatemala", "value": "Guatemala" },
                        { "title": "Guyana", "value": "Guyana" },
                        { "title": "Haiti", "value": "Haiti" },
                        { "title": "Honduras", "value": "Honduras" },
                        { "title": "Jamaica", "value": "Jamaica" },
                        { "title": "Martinique", "value": "Martinique" },
                        { "title": "Mexico", "value": "Mexico" },
                        { "title": "Montserrat", "value": "Montserrat" },
                        { "title": "Nicaragua", "value": "Nicaragua" },
                        { "title": "Panama", "value": "Panama" },
                        { "title": "Paraguay", "value": "Paraguay" },
                        { "title": "Peru", "value": "Peru" },
                        { "title": "Puerto Rico", "value": "Puerto Rico" },
                        { "title": "Saint Barthelemy", "value": "Saint Barthelemy" },
                        { "title": "Saint Kitts and Nevis", "value": "Saint Kitts and Nevis" },
                        { "title": "Saint Lucia", "value": "Saint Lucia" },
                        { "title": "Saint Martin (French Part)", "value": "Saint Martin (French Part)" },
                        { "title": "Saint Pierre and Miquelon", "value": "Saint Pierre and Miquelon" },
                        { "title": "Saint Vincent and the Grenadines", "value": "Saint Vincent and the Grenadines" },
                        { "title": "Sint Maarten (Dutch part)", "value": "Sint Maarten (Dutch part)" },
                        { "title": "South Georgia and the South Sandwich Islands", "value": "South Georgia and the South Sandwich Islands" },
                        { "title": "Suriname", "value": "Suriname" },
                        { "title": "Trinidad and Tobago", "value": "Trinidad and Tobago" },
                        { "title": "Turks and Caicos Islands", "value": "Turks and Caicos Islands" },
                        { "title": "United States of America", "value": "United States of America" },
                        { "title": "Uruguay", "value": "Uruguay" },
                        { "title": "Venezuela (Bolivarian Republic of)", "value": "Venezuela (Bolivarian Republic of)" }
                    ]
                }
            ],
            "id": "countrySelection",
            "style": "expanded",
            "isMultiSelect": false
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit"
        }
    ]
}

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 619

#2
chiaraalina Profile Picture

chiaraalina 171 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 143

Last 30 days Overall leaderboard