Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
tomdenby
Frequent Visitor

formatting - capabilities.json

The following formatting gives me this error - gets the following error error JSON capabilities.json : instance.dataViewMappings[0] is not exactly one from [subschema 0],[subschema 1],[subschema 2],[subschema 3],[subschema 4]

 

{ "dataRoles": [ { "displayName": "dbId", "name": "dbid", "kind": "Grouping" }, { "displayName": "URN", "name": "urn", "kind": "Measure" } ], "dataViewMappings": [ { "table": { "rows": { "for": { "in": "dbid" } } }, "single": { "role": "urn" } } ] }

 

Im sure it is a basic formatting issue but I can’t figure it out, would someone be able to advise ?

 

Thanks Tom

1 REPLY 1
Anonymous
Not applicable

Hey, 

 

The capabilities.json file require some parts even if they are empty:

  • dataRoles
  • dataViewMappings
  • objects
  • privileges
{
    "dataRoles": [
        {
            "displayName": "dbId",
            "name": "dbid",
            "kind": "Grouping"
        },
        {
            "displayName": "URN",
            "name": "urn",
            "kind": "Measure"
        }
    ],
    "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "for": {
                        "in": "dbid"
                    }
                }
            },
            "single": {
                "role": "urn"
            }
        }
    ],
    "objects" : [],
    "privileges" : []
}


You should try it out.

 

If you wanna have fun you can watch the schema of a capabilities.json file 🤒 powerbi-visuals-api/schema.capabilities.json at main · microsoft/powerbi-visuals-api (github.com)

 

Maybe it won't work so please provide information about when and where does this error happen (when you start the custom, in the console etc...)

 

Thanks, have a good day

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors