Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

QueryObjects: ROQL - Non-existant column error (1 Comment)

$
0
0

Topic by Gaurav

Hi,

I'm trying to call QueryObjects function & pass below query:

SELECT Incident.PrimaryContact.ParentContact FROM Incident WHERE Incident.PrimaryContact.ParentContact = 'abc@xyz.pqr'

But i'm getting error as below:-

Non-existant column: 'ParentContact'

Below is my soap request xml, and response xml from right now:

Request SOAP XML:-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <ns7:ClientInfoHeader soapenv:mustUnderstand="0" xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:AppID>Sample Client</ns7:AppID>
      </ns7:ClientInfoHeader>
      <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
            <wsse:Username>UserName</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Password</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <ns7:QueryObjects xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
         <ns7:Query>SELECT Incident.PrimaryContact.ParentContact FROM Incident WHERE Incident.PrimaryContact.ParentContact = 'abc@xyz.pqr'</ns7:Query>
         <ns7:ObjectTemplates xsi:type="ns4:Contact" xmlns:ns4="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ns4:Notes/>
         </ns7:ObjectTemplates>
         <ns7:PageSize>10000</ns7:PageSize>
      </ns7:QueryObjects>
   </soapenv:Body>
</soapenv:Envelope>

 

Response XML from rightnow:-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <n0:QueryObjectsResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1="urn:faults.ws.rightnow.com/v1_2">
         <n0:Result>
            <n0:RNObjectsResult/>
            <n0:Paging>
               <n0:ReturnedCount>0</n0:ReturnedCount>
               <n0:StartIndex>0</n0:StartIndex>
               <n0:QueryHandle/>
            </n0:Paging>
            <n0:Fault>
               <n1:exceptionCode>INVALID_REQUEST</n1:exceptionCode>
               <n1:exceptionMessage>Non-existant column: 'ParentContact'</n1:exceptionMessage>
            </n0:Fault>
         </n0:Result>
      </n0:QueryObjectsResponse>
   </soapenv:Body>
</soapenv:Envelope>

Please help.

- Gaurav


Viewing all articles
Browse latest Browse all 2504

Trending Articles