Invalid Type on TransactionSearchAdvanced

I’m trying to retrieve a certain saved search using the SOAP Webservices API, but I’m not being able due to an Invalid Type error.


<soap:Envelope xmlns:platformFaults="urn:faults_2017_2.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2017_2.platform.webservices.netsuite.com" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:platform_2017_2.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sales="sales_2017_2.transactions.webservices.netsuite.com">

<soap:Header>

<tokenPassport>

<account>{oauth_creds["account"]}</account>

<consumerKey>{oauth_creds["consumerKey"]}</consumerKey>

<token>{oauth_creds["token"]}</token>

<nonce>{oauth_creds["nonce"]}</nonce>

<timestamp>{oauth_creds["timestamp"]}</timestamp>

<signature algorithm="HMAC-SHA256">{oauth_creds["signature"]["_value_1"]}</signature>

</tokenPassport>

</soap:Header>

<soap:Body>

<search>

<searchRecord xsi:type="sales:TransactionSearchAdvanced" savedSearchId="803" />

</search>

</soap:Body>

</soap:Envelope>

Above is the payload I’ve crafted in Python. Below is the response I’m getting

<?xml version="1.0" encoding="UTF-8"?>

<Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Body>

<Fault>

<faultcode>

soapenv:Server.userException

</faultcode>

<faultstring>

org.xml.sax.SAXException: Invalid type: {sales_2017_2.transactions.webservices.netsuite.com}TransactionSearchAdvanced

</faultstring>

<detail>

<hostname xmlns:ns1="http://xml.apache.org/axis/">

HOSTNAMEHERE

</hostname>

</detail>

</Fault>

</Body>

</Envelope>
Rookie Asked on December 4, 2023 in SuiteTalk.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor