Skip to main content

PowerApps – Flow Registering Error

I received the below error whiles trying to add a flow returning a collection to a PowerApp. Barely any info from the error but inspecting the call in the browser console added a slightly more helpful message.

{“error”:{“code”:”FlowWadlConversionNotSupported”,”message”:”The flow input and output schema cannot be represented in WADL.”}}

The solution is to fix the schema in your flow response action, even if you autogenerated it. Seems to add a required array at the end which PowerApps doesn’t seem to like, you just need to remove the required array. As an example , my generated schema was the below.

{
    "type": "object",
    "properties": {
        "@@odata.context": {
            "type": "string"
        },
        "value": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "@@search.score": {
                        "type": "integer"
                    },
                    "content": {
                        "type": "string"
                    },
                    "metadata_storage_path": {
                        "type": "string"
                    },
                    "people": {
                        "type": "array"
                    },
                    "organizations": {
                        "type": "array"
                    },
                    "locations": {
                        "type": "array"
                    },
                    "keyphrases": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "language": {
                        "type": "string"
                    },
                    "merged_content": {
                        "type": "string"
                    },
                    "text": {
                        "type": "array"
                    },
                    "layoutText": {
                        "type": "array"
                    },
                    "imageTags": {
                        "type": "array"
                    },
                    "imageCaption": {
                        "type": "array"
                    },
                    "celebrities": {
                        "type": "array"
                    }
                },
                "required": [
                    "@@search.score",
                    "content",
                    "metadata_storage_path",
                    "people",
                    "organizations",
                    "locations",
                    "keyphrases",
                    "language",
                    "merged_content",
                    "text",
                    "layoutText",
                    "imageTags",
                    "imageCaption",
                    "celebrities"
                ]
            }
        }
    }
}

All you need to do is delete the required array element and that should now import fine into powerapps.

,
                 "required": [
                     "@@search.score",
                     "content",
                     "metadata_storage_path",
                     "people",
                     "organizations",
                     "locations",
                     "keyphrases",
                     "language",
                     "merged_content",
                     "text",
                     "layoutText",
                     "imageTags",
                     "imageCaption",
                     "celebrities"
                 ]

Charles Osei

Dynamics 365 Consultant @ RSM MCSE Business Applications Computer Science – University of Lincoln 2017 Nottingham D365/CRM user group Chapter Leader TDG – Community leader Twitter @charliedevxyz LinedIn https://www.linkedin.com/in/charlesosei/

One thought to “PowerApps – Flow Registering Error”

Leave a Reply

%d bloggers like this: