cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

On bucket creation. "Schema validation has failed. Validation for field 'PlanId'"

Hi,

 

I am hoping someone may be able to help?

 

I am trying to create various buckets in planner, I will be focusing on just one for this discussion. I would like to take three data points from forms to point towards the PlanId where I would like the bucket created (Will have to manually create these plans as far as I can tell for now :-( ). In this instance for testing the flow, the data from those form fields is A, B & C which gives ABC. In future planning to be customer details.

 

Create a Bucket.JPG

As below I have previously created a plan called ABC in planner.

 

ABC Plan.JPG

 

However when I test run the flow I get the following error. As you can see the data from the forms comes through as ABC in the PlanId field. But it appears to be failing to from my limited knowledge see the plan?

 

Bad Request.JPG

 

I have also go the following information expanded out from the above.

 

Headers

 

request-id

98c8d5f8-24fb-49fc-8ef6-513d15e13b68

client-request-id

98c8d5f8-24fb-49fc-8ef6-513d15e13b68

x-ms-ags-diagnostic

{"ServerInfo":{"DataCenter":"West US","Slice":"SliceC","Ring":"5","ScaleUnit":"003","Host":"AGSFE_IN_58","ADSiteName":"WUS"}}

Duration

64.4676

Strict-Transport-Security

max-age=31536000

Timing-Allow-Origin

*

x-ms-apihub-cached-response

true

Cache-Control

private

Date

Wed, 21 Nov 2018 11:25:38 GMT

Content-Length

314

Content-Type

application/json

 

Body

{

  "error": {

    "code": "",

    "message": "Schema validation has failed. Validation for field 'PlanId', on entity 'Bucket' has failed: The specified identifier is invalid.",

    "innerError": {

      "request-id": "98c8d5f8-24fb-49fc-8ef6-513d15e13b68",

      "date": "2018-11-21T11:25:38"

    }

  }

}

 

Anyone know where I am falling downand can advise how to correct?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: On bucket creation. "Schema validation has failed. Validation for field 'PlanId'"

Hi @Anonymous,

 

I am afraid that the Plan Id you specified is invalid.

The field Plan Id requires an Id of the plan. We could either select the plan from the drop down list, or enter the plan Id which we could get from the URL of the plan.

1.PNG

According to your description, it seems that you would like to create buckets under existing plans. Please check the following flow for a reference.

Before creating buckets, add the action "List my plans" to get all the plans then check if the Title of the Plan equals to the one you specified in the forms.

If yes, create a bucket under the corresponding plan.

2.PNG 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
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

2 REPLIES 2
Community Support Team
Community Support Team

Re: On bucket creation. "Schema validation has failed. Validation for field 'PlanId'"

Hi @Anonymous,

 

I am afraid that the Plan Id you specified is invalid.

The field Plan Id requires an Id of the plan. We could either select the plan from the drop down list, or enter the plan Id which we could get from the URL of the plan.

1.PNG

According to your description, it seems that you would like to create buckets under existing plans. Please check the following flow for a reference.

Before creating buckets, add the action "List my plans" to get all the plans then check if the Title of the Plan equals to the one you specified in the forms.

If yes, create a bucket under the corresponding plan.

2.PNG 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
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

Anonymous
Not applicable

Re: On bucket creation. "Schema validation has failed. Validation for field 'PlanId'"

Hi @v-yamao-msft

 

Brilliant, I had to tailor slightly for needs but that worked a treat.

 

Thank you so much for your help :-).

 

Kind Regards,

 

Niall

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 77 members 3,706 guests
Please welcome our newest community members: