Hello,
I'm trying to add lines to a phone using executeSQLUpdate and seem to be running into an issue. I'm resorting to the sql method since the updatePhone method has some unexpected behavior (it erases all other lines on a phone when I add a line, yikes!). Here's my message and the error response:
Message:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body>
<executeSQLUpdate xmlns="AXLAPI.wsdl">
<sql xsi:type="xsd:string">insert into devicenumplanmap (fkdevice,fknumplan,numplanindex,label,labelascii,display,displayascii,e164mask,logmissedcalls) values ("e31bbc7d-10ae-90ab-948a-cc89842cee39","ec6d081e-31d9-968a-97c9-9d0f149393bf","2","123456","123456","test entry","test entry","2025551212","t")</sql></executeSQLUpdate>
</soap:Body>
</soap:Envelope>
Error:
Missing key in referenced table for referential constraint (informix.fk_devicenumplanmap_fknumplan)
If I copy/paste the SQL message into the CUCM CLI (adding run sql, of course) it works.
Can anyone spot what I might be missing on this one? Maybe an API version thing?
Thanks!
Marty