cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Post Prodigy
Post Prodigy

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

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
1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

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-ad...

 

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

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-ad...

 

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,125)