web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ResponseSwaggerSchemaV...
Power Automate
Unanswered

ResponseSwaggerSchemaValidationFailure on Get Items action

(0) ShareShare
ReportReport
Posted on by
Afternoon I'm using a Flow to bring back a field on a SharePoint list which is later changed in an expression action. I've got it working on test, but as soon as I try it on a copy of the production list I get the following error: ResponseSwaggerSchemaValidationFailure. The API 'sharepointonline' returned an invalid response for workflow operation 'Get_items' of type 'OpenApiConnection'. Error details: 'The API operation 'GetItems' is missing required property 'body/value/0/Postcode'. I tried adding a default value to the postcode field (as suggested on a post here) but that didn't work, I get the same error. When I cut the flow back to just the Get Items action it runs fine, but as soon as I add the Compose in the For Each loop and Update Item I get that error. The test list only had 5 items, whereas the live version has 1403 items. Could that be an issue. @abm and @OliverR-82 have you ever encountered this issue?
Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous can you provide the screenshot of the flow run which shows the error?

     

    Also is the value for column Postcode is it blank for any item? and is the Postcode column set as required in SharePoint list? 

  • Community Power Platform Member Profile Picture
    on at

    Hi @annajhaveri . See the error below. Yes the Postcode field is a required field, at the moment it's not empty because I've put a default value in it.MannualTriggerFlow.jpg

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  did you test the flow after putting default values in Postcode column? Also can you please help with Get Items action screenshot configured in your flow? Do you have Filter query configured in the Get Items action?

  • Community Power Platform Member Profile Picture
    on at

    Hi @annajhaveri yes tested it before and after I put the default value in, got the same results. Here's how I have the Get Items action configured, I thought setting the Top Count to 10 might help but no luck.

    GetItems.jpg

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  okay, the action configuration looks good, just to try out can you create another new flow with just Get Items action  and see if the new flow works? If it doesnt, then please double check the list doesnt have any blank values in columns which are set as required as the error is saying that.

  • Community Power Platform Member Profile Picture
    on at

    @annajhaveri created a new Flow with just the Get Items action and it ran okay. 

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous if you want to continue using the old flow, then try deleting Get Items action from that flow and add it again.

  • Community Power Platform Member Profile Picture
    on at

    Thanks @annajhaveri  I'll try building up the new one. I did try that before and had the issue, but I'll give it another go. 

  • Community Power Platform Member Profile Picture
    on at

    Hi @annajhaveri I rebuilt the flow and got the same error. So I started taking the actions out from the bottom up. I took the Update Item action out and the flow ran through the Get Item action, but fell over at the second Compose function with the following error: InvalidTemplate. Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '9639': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#length for usage details.'.

    Any ideas?

    @abm

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  can you please provide the screenshot of compose action configuration for me to know what is being done by compose action, are you using expression in compose action? If yes, please also provide the expression.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard