Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!

SOAP API call error

Avatar

Level 3

Hello,

We are testing a SOAP API call to add a new record/email in a subscription but getting an error.  It was working before but now we are getting an error. The error says “that record does not exist”, so somehow the script is looking for an existing record instead of adding a new record. If you see the script below, they are using optIn=”1” which I thought would add a new record.

We are testing this in our DEV environment. See below the Request and Response. Can you look into this?

Request:

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

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:nms:recipient"><SOAP-ENV:Body><ManageSubscription><sessiontoken>___833b4a4a-8675-45c0-8694-706def530d1f</sessiontoken><source>Micros</source><email>abasanskii+129@gorillagroup.com</email><neolaneServiceName><subscription name="tvEcommerce" optIn="1"/></neolaneServiceName><recipient emailFormat="2" firstname="QA" lastname="Basanskii" preferredStore="" birthMonth="10" tvRewardsCardNum="111" diySkillLevel="1"><location zipCode="60604-4136"/></recipient></ManageSubscription></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response:

<?xml version='1.0'?><SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring xsi:type='xsd:string'>SOP-330011 Error while executing the method 'ManageSubscription' of service 'nms:recipient'.</faultstring><detail xsi:type='xsd:string'>WDB-200001 SQL statement 'SELECT R0.iRecipientId, R0.sFirstName FROM NmsRecipient R0 WHERE (R0.sEmail = :#(1)#)' could not be executed.

  Param(0)=abasanskii+129@gorillagroup.com

WDB-200011 The requested database record does not exist.

Cannot load document of type 'Recipients (nms:recipient)' satisfying condition '([/@email] = 'abasanskii+129@gorillagroup.com')'.

SOP-330011 Error while executing the method 'ExecuteQuery' of service 'xtk:queryDef'.</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

2 Replies

Avatar

Level 10

Hi,

When you say it was working before, is it with the exact same code and method?

Or did something change in your approach or in your code?

Florent

Avatar

Level 10

Hi,

Any update on your issue?

Florent