I am creating an API call to retrieve a list of committees and store them in a corresponding object. The API connection is setup using REST and I can see in the log that it successfully retrieves the list of committees. I have setup a payload response for the static elements, and a template for the repeating elements. There is a to many relationship from the placeholder object and the Committees object. As far as I can tell the issue is with the call generating the records in the object. I keep getting a “Missing required parameters” error, but there are no parameters required in the request, and the only parameter I have set as required in the response is an ID value that is definitely included for every committee. There are a few committees with a missing value for the category. The value of committees count varies unpredictably but is not data that I’m interested in. The API only seems to return the response as XML.
Here is an example of the XML response:
<?xml version="1.0" encoding="utf-8"?>
<committees>
<committeescount> 85</committeescount>
<committee>
<committeeid>123</committeeid>
<committeetitle>Audit Committee</committeetitle>
<committeedeleted>False</committeedeleted>
<committeeexpired>True</committeeexpired>
<committeecategory>Former Committees, Joint Committees and Forums</committeecategory>
</committee>
<committee>
<committeeid>728</committeeid>
<committeetitle>Audit, Risk and Governance Committee</committeetitle>
<committeedeleted>False</committeedeleted>
<committeeexpired>False</committeeexpired>
<committeecategory>Other Council Committees</committeecategory>
</committee>
<committee>
<committeeid>398</committeeid>
<committeetitle>Burnley Three Tier Forum</committeetitle>
<committeedeleted>False</committeedeleted>
<committeeexpired>True</committeeexpired>
<committeecategory>Former Committees, Joint Committees and Forums</committeecategory>
</committee>
</committees>
Anyone got any idea why this keeps failing?