Add Record using HPSM Web Service "No (more) records found"

Hi,

We are using HPSM 9.32 webservice for a custom dbdict table, the update function works fine but adding records results in error

 

Our Request looks like this: 


<soapenv:Envelope xmlns:soapenv="">schemas.xmlsoap.org/.../" xmlns:ns="">http://schemas.hp.com/SM/7" xmlns:com="">schemas.hp.com/.../Common" xmlns:xm="">www.w3.org/.../xmlmime">
<soapenv:Header/>
<soapenv:Body>
<ns:AddCompanySparePartIntegrationRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updateconstraint="-1">
<ns:model query="?">
<ns:keys query="" updatecounter="?">
<!--Optional:-->
<ns:assettag type="String" mandatory="?" readonly="?"></ns:assettag>
</ns:keys>
<ns:instance query="?" uniquequery="?" recordid="?" updatecounter="?">
<!--Optional:-->
<ns:id type="String" mandatory="?" readonly="?"></ns:id>
<!--Optional:-->
<ns:assettag type="String" mandatory="?" readonly="?">12335</ns:assettag>
<!--Optional:-->
<ns:exportstatus type="String" mandatory="?" readonly="?">TESTSTATUS</ns:exportstatus>
<!--Optional:-->
<ns:faultdesc type="String" mandatory="?" readonly="?">FAULTTEST</ns:faultdesc>
<!--Optional:-->
<ns:productcode type="String" mandatory="?" readonly="?">TESTPC</ns:productcode>
<!--Optional:-->
<ns:serialnumber type="String" mandatory="?" readonly="?">testsn</ns:serialnumber>
<!--Optional:-->
<ns:site type="String" mandatory="?" readonly="?">CAI2010</ns:site>
<!--Optional:-->
<ns:smuser type="String" mandatory="?" readonly="?">wfm0</ns:smuser>
<!--Optional:-->
<ns:state type="String" mandatory="?" readonly="?">testState</ns:state>
<!--Optional:-->
<ns:vendor type="String" mandatory="?" readonly="?">VENDOR</ns:vendor>
<!--Optional:-->
<ns:wodate type="String" mandatory="?" readonly="?"></ns:wodate>
<!--Optional:-->
<ns:wonumber type="String" mandatory="?" readonly="?">WOTEST</ns:wonumber>
<!--Optional:-->
<!-- <ns:exportdate type="DateTime" mandatory="?" readonly="?">?</ns:exportdate>
-->
<!--Optional:-->
<ns:attachments>
<!--Zero or more repetitions:-->
<com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" attachmentType="?">cid:1231674811181</com:attachment>
</ns:attachments>
</ns:instance>
<!--Optional:-->
<ns:messages>
<!--Zero or more repetitions:-->
<com:message type="String" mandatory="?" readonly="?" severity="?" module="?"></com:message>
</ns:messages>
</ns:model>
</ns:AddCompanySparePartIntegrationRequest>
</soapenv:Body>
</soapenv:Envelope>

And We get this response:

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../">
<SOAP-ENV:Body>
<AddCompanySparePartIntegrationResponse message="No (more) records found" returnCode="9" schemaRevisionDate="2017-07-26" schemaRevisionLevel="1" status="FAILURE" xsi:schemaLocation="http://schemas.hp.com/SM/7 ">smsvr:13080/.../CompanySparePartIntegration.xsd" xmlns="">http://schemas.hp.com/SM/7" xmlns:cmn="">schemas.hp.com/.../Common" xmlns:xmime="">www.w3.org/.../xmlmime" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
<model>
<keys>
<assettag type="String">12335</assettag>
</keys>
<instance recordid="12335" uniquequery="assettag=&quot;12335&quot;">
<assettag type="String">12335</assettag>
<exportstatus type="String">TESTSTATUS</exportstatus>
<faultdesc type="String">FAULTTEST</faultdesc>
<productcode type="String">TESTPC</productcode>
<serialnumber type="String">testsn</serialnumber>
<site type="String">CAI2010</site>
<smuser type="String">wfm0</smuser>
<state type="String">testState</state>
<vendor type="String">VENDOR</vendor>
<wonumber type="String">WOTEST</wonumber>
</instance>
</model>
</AddCompanySparePartIntegrationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Your help is much appreciated