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 / Power Apps / Trying to add a Flow t...
Power Apps
Answered

Trying to add a Flow to OnSelect action of button returns Registering Error. How do I debug this?

(0) ShareShare
ReportReport
Posted on by 894

I am just staring out with PowerApps. I have created a Flow which runs successfully. When I go to add it to my button in the Create window. I get this meaningless message 'Registering Error'. There is no mention of what the error might be.  I have attached a picture of the Flow. (RollCallFlow.PNG).

 

The code view for the response looks like this:

 

{
    "kind": "Http",
    "inputs": {
        "statusCode": 200,
        "body": "@body('Execute_stored_procedure_(V2)')['resultsets']['Table1']",
        "schema": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "Count": {},
                    "emp_key": {
                        "type": "integer"
                    },
                    "emp_fname": {
                        "type": "string"
                    },
                    "emp_lname": {
                        "type": "string"
                    },
                    "emp_mname": {
                        "type": "string"
                    },
                    "dept_name": {
                        "type": "string"
                    },
                    "dept_id": {
                        "type": "integer"
                    },
                    "manager_lname": {},
                    "manager_fname": {},
                    "manager_mname": {},
                    "grp_name": {
                        "type": "string"
                    },
                    "LastUpdate": {
                        "type": "string"
                    }
                },
                "required": [
                    "Count",
                    "emp_key",
                    "emp_fname",
                    "emp_lname",
                    "emp_mname",
                    "dept_name",
                    "dept_id",
                    "manager_lname",
                    "manager_fname",
                    "manager_mname",
                    "grp_name",
                    "LastUpdate"
                ]
            }
        }
    }
}
 
Can you give us a clue how to debug ths
Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @stapes ,

    Could you please share a screenshot about your flow's configuration?

    Do you add a "Request - Respones" action within your flow to return data back to your app?

     

    Based on the JSON response that you mentioned, I think there is something wrong with the JSON schema you typed within the "Response Body JSON Schema" property of the "Response" action as below:

    3.JPG

    According to the JSON Response that you mentioned, I found that you do not define proper type for the Required properties -- "Count", "manager_lname", "manager_fname" and "manager_mname".

    Please modify your Response Body JSON Schema within above "Response" action in your flow as below:

     {
     "type": "object",
     "properties": {
     "Count": {
     "type": "integer" 
     },
     "emp_key": {
     "type": "integer"
     },
     "emp_fname": {
     "type": "string"
     },
     "emp_lname": {
     "type": "string"
     },
     "emp_mname": {
     "type": "string"
     },
     "dept_name": {
     "type": "string"
     },
     "dept_id": {
     "type": "integer"
     },
     "manager_lname": {
     "type": "string"
     },
     "manager_fname": {
     "type": "string"
     },
     "manager_mname": {
     "type": "string"
     },
     "grp_name": {
     "type": "string"
     },
     "LastUpdate": {
     "type": "string"
     }
     },
     "required": [
     "Count",
     "emp_key",
     "emp_fname",
     "emp_lname",
     "emp_mname",
     "dept_name",
     "dept_id",
     "manager_lname",
     "manager_fname",
     "manager_mname",
     "grp_name",
     "LastUpdate"
     ]
    }

    Within the "Response Body JSON Schema" property of the "Response" action in your flow, please define proper data type for these Required properties listed within the "required" array table.

     

    The user @johnmarlowe has faced same issue with you, please check the response within the following thread:

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Registering-Error-when-trying-to-add-a-flow/m-p/142010

     

    After that, save your flow, and then re-create a new connection to your flow from your app, check if the issue is solved.

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard