I am trying to perform a searchAssetsParam based on documentation: https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-production-api/opera...
Regardless of what filter params I try to reduce the response payload, I get a `Document size of 17392596 is larger than maximum of 16793600` fault.
Any hints on what else I can try to get around this issue?
<soapenv:Body>
<ns:searchAssetsParam>
<ns:companyHandle>c|8451</ns:companyHandle>
<ns:folder>mytest</ns:folder>
<ns:includeSubfolders>false</ns:includeSubfolders>
<ns:assetTypeArray>
<ns:items>Video</ns:items>
</ns:assetTypeArray>
<ns:excludeAssetTypeArray>
<ns:items>Image</ns:items>
</ns:excludeAssetTypeArray>
<ns:assetSubTypeArray>
<ns:items>video</ns:items>
</ns:assetSubTypeArray>
<ns:strictSubTypeCheck>false</ns:strictSubTypeCheck>
<ns:excludeByproductArray></ns:excludeByproductArray>
<ns:resultsPage>1</ns:resultsPage>
<ns:sortBy></ns:sortBy>
<ns:sortDirection></ns:sortDirection>
<ns:responseFieldArray></ns:responseFieldArray>
<ns:excludeFieldArray></ns:excludeFieldArray>
</ns:searchAssetsParam>
</soapenv:Body>
Solved! Go to Solution.
Views
Replies
Total Likes
@Patrick_Lam There are no elements defined in the following
<ns:responseFieldArray></ns:responseFieldArray> <ns:excludeFieldArray></ns:excludeFieldArray>
You can limit the payload size by adding asset array items that you can exclude.
That should look something like this :
<responseFieldArray>
<items>assetArray/items/name</items>
<items>assetArray/items/lastModified</items>
<items>assetArray/items/metadataArray</items>
</responseFieldArray>
<excludeFieldArray>
<items>assetArray/items/permissions</items>
</excludeFieldArray>
responseFieldArray | types:StringArray | Contains a list of fields and subfields for inclusion in the response. | |
excludeFieldArray | types:StringArray | Contains a list of fields and subfields for exclusion from the response. |
@Patrick_Lam There are no elements defined in the following
<ns:responseFieldArray></ns:responseFieldArray> <ns:excludeFieldArray></ns:excludeFieldArray>
You can limit the payload size by adding asset array items that you can exclude.
That should look something like this :
<responseFieldArray>
<items>assetArray/items/name</items>
<items>assetArray/items/lastModified</items>
<items>assetArray/items/metadataArray</items>
</responseFieldArray>
<excludeFieldArray>
<items>assetArray/items/permissions</items>
</excludeFieldArray>
responseFieldArray | types:StringArray | Contains a list of fields and subfields for inclusion in the response. | |
excludeFieldArray | types:StringArray | Contains a list of fields and subfields for exclusion from the response. |
Hi Harwinder,
Thanks for taking the time to reply. Your answer makes sense and I applied it to my request body, however even with the filters, I am getting this response:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>ipsApiFault</faultstring>
<detail>
<tns:ipsApiFault xmlns:tns="http://www.scene7.com/IpsApi/xsd">
<tns:code>30000</tns:code>
<tns:reason>Document size of 17416889 is larger than maximum of 16793600.</tns:reason>
</tns:ipsApiFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>