Web services error when requesting field data with the 'im viewfield' command with 'Summary' field
As described in: https://www.ptc.com/en/support/article?n=CS216213
I'm seeing this error when trying to execute the 'im viewfield' command through SoapUI
- MKS170064: The command succeeded but there was an error processing the output in the web services layer
- http://webservice.mks.com/2009/Generic/fault">Invalid valuelist type: "null"
The linked article says that the bug was fixed in 10.9 but we are using version 11.2 and we still see this error for certain calls.
The 'im viewfield' command works fine for several fields such as this one:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gen="http://webservice.mks.com/2009/Generic" xmlns:sch="http://webservice.mks.com/2009/Generic/schema"> <soapenv:Header/> <soapenv:Body> <gen:command> <!--Optional:--> <arg0 TransactionId="?"> <sch:Username>myuser</sch:Username> <sch:Password>mypass</sch:Password> <sch:Application>im</sch:Application> <sch:Command>viewfield</sch:Command> <sch:Selection>Project</sch:Selection> </arg0> </gen:command> </soapenv:Body> </soapenv:Envelope>
But when trying to request data for the 'Summary' field, like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gen="http://webservice.mks.com/2009/Generic" xmlns:sch="http://webservice.mks.com/2009/Generic/schema"> <soapenv:Header/> <soapenv:Body> <gen:command> <!--Optional:--> <arg0 TransactionId="?"> <sch:Username>myuser</sch:Username> <sch:Password>mypass</sch:Password> <sch:Application>im</sch:Application> <sch:Command>viewfield</sch:Command> <sch:Selection>Summary</sch:Selection> </arg0> </gen:command> </soapenv:Body> </soapenv:Envelope>
We get a soap fault returned:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <env:Fault> <faultcode>env:Server</faultcode> <faultstring>MKS170064: The command succeeded but there was an error processing the output in the web services layer.</faultstring> <detail> <ns1:MKSException class="com.mks.api.response.APIException" implication="MKS170064: The command succeeded but there was an error processing the output in the web services layer." xmlns:ns1="http://webservice.mks.com/2009/Generic/fault">Invalid valuelist type: "null".</ns1:MKSException> </detail> </env:Fault> </env:Body> </env:Envelope>
I'm not sure why this works for some field and not for others.
Below is the Visible Fields part of the response from the 'im viewtype document' command:
<ns2:Field> <ns2:Name>visibleFields</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>Summary</ns2:Id> <ns2:ModelType>im.Field</ns2:ModelType> <ns2:DisplayId>Summary</ns2:DisplayId> <ns2:Field> <ns2:Name>groups</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>everyone</ns2:Id> <ns2:ModelType>im.Group</ns2:ModelType> <ns2:DisplayId>everyone</ns2:DisplayId> </ns2:ItemList> </ns2:Value> </ns2:Field> </ns2:ItemList> <ns2:ItemList> <ns2:Id>State</ns2:Id> <ns2:ModelType>im.Field</ns2:ModelType> <ns2:DisplayId>State</ns2:DisplayId> <ns2:Field> <ns2:Name>groups</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>everyone</ns2:Id> <ns2:ModelType>im.Group</ns2:ModelType> <ns2:DisplayId>everyone</ns2:DisplayId> </ns2:ItemList> </ns2:Value> </ns2:Field> </ns2:ItemList> <ns2:ItemList> <ns2:Id>Project</ns2:Id> <ns2:ModelType>im.Field</ns2:ModelType> <ns2:DisplayId>Project</ns2:DisplayId> <ns2:Field> <ns2:Name>groups</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>everyone</ns2:Id> <ns2:ModelType>im.Group</ns2:ModelType> <ns2:DisplayId>everyone</ns2:DisplayId> </ns2:ItemList> </ns2:Value> </ns2:Field> </ns2:ItemList> <ns2:ItemList> <ns2:Id>Shared Attachments</ns2:Id> <ns2:ModelType>im.Field</ns2:ModelType> <ns2:DisplayId>Shared Attachments</ns2:DisplayId> <ns2:Field> <ns2:Name>groups</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>everyone</ns2:Id> <ns2:ModelType>im.Group</ns2:ModelType> <ns2:DisplayId>everyone</ns2:DisplayId> </ns2:ItemList> </ns2:Value> </ns2:Field> </ns2:ItemList> <ns2:ItemList> <ns2:Id>Shared Text</ns2:Id> <ns2:ModelType>im.Field</ns2:ModelType> <ns2:DisplayId>Shared Text</ns2:DisplayId> <ns2:Field> <ns2:Name>groups</ns2:Name> <ns2:Value> <ns2:ItemList> <ns2:Id>everyone</ns2:Id> <ns2:ModelType>im.Group</ns2:ModelType> <ns2:DisplayId>everyone</ns2:DisplayId> </ns2:ItemList> </ns2:Value> </ns2:Field> </ns2:ItemList> </ns2:Value> </ns2:Field>
Does anyone know how to fix or work around this problem?
Thanks

