cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Level 8

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
Community Support Team
Community Support Team

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

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
Community Support Team
Community Support Team

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

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,937)