0
Answered

Error writing to Cisco

Peter Wass 12 years ago in UNIFYBroker/Cisco Unified Communications Manager updated by anonymous 8 years ago 7

Occasionally the CISCO connector produces the error below. At the moment its affected 4 out of 256. I will try those 4 again to see if its random and report more.

Error:

20120401,07:52:20,Cisco communicator,Update,Error,"Exception occured after [00:00:00.1250000] duration.

System.Exception: Response does not contain the {http://www.cisco.com/AXL/API/7.1}updateDeviceProfileResponse element:

<SOAP-ENV:Body xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"">
  <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>A syntax error has occurred.</faultstring>
    <detail>
      <axl:Error xmlns:axl=""http://www.cisco.com/AXL/API/7.1"">
        <axl:code>-201</axl:code>
        <axl:message>A syntax error has occurred.</axl:message>
        <request>updateDeviceProfile</request>
      </axl:Error>
    </detail>
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>
   at Unify.Framework.CiscoCommunicatorBase`1.CheckUpdateResponse(Stream responseStream)
   at Unify.Framework.CiscoCommunicatorBase`1.UpdateEntity(IConnectorEntity entity)
   at Unify.Framework.CiscoCommunicatorBase`1.Update(IConnectorEntity entity)",Verbose
20120401,07:52:20,Save entities to connector failed.,Connector,Warning,"Save entities [Count:1] to connector Cisco Device Profile Connector failed with reason Response does not contain the {http://www.cisco.com/AXL/API/7.1}updateDeviceProfileResponse element:

<SOAP-ENV:Body xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"">
  <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>A syntax error has occurred.</faultstring>
    <detail>
      <axl:Error xmlns:axl=""http://www.cisco.com/AXL/API/7.1"">
        <axl:code>-201</axl:code>
        <axl:message>A syntax error has occurred.</axl:message>
        <request>updateDeviceProfile</request>
      </axl:Error>
    </detail>
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>. Duration: 00:00:00.6093750
Error details:
System.Exception: Response does not contain the {http://www.cisco.com/AXL/API/7.1}updateDeviceProfileResponse element:

<SOAP-ENV:Body xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"">
  <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>A syntax error has occurred.</faultstring>
    <detail>
      <axl:Error xmlns:axl=""http://www.cisco.com/AXL/API/7.1"">
        <axl:code>-201</axl:code>
        <axl:message>A syntax error has occurred.</axl:message>
        <request>updateDeviceProfile</request>
      </axl:Error>
    </detail>
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>
   at Unify.Framework.CiscoCommunicatorBase`1.CheckUpdateResponse(Stream responseStream)
   at Unify.Framework.CiscoCommunicatorBase`1.UpdateEntity(IConnectorEntity entity)
   at Unify.Framework.CiscoCommunicatorBase`1.Update(IConnectorEntity entity)
   at Unify.Framework.CiscoReadWriteConnectorBase`1.SaveEntity(IConnectorEntity entity)
   at Unify.Framework.CiscoReadWriteConnectorBase`1.SaveEntities(IEnumerable`1 entities)
   at Unify.Framework.ConnectorToWritingConnectorBridge.SaveEntities(IEnumerable`1 entities)
   at Unify.Framework.EventNotifierWritingConnectorDecorator.SaveEntities(IEnumerable`1 entities)
   at Unify.Framework.Adapter.SaveEntities(IEnumerable`1 entities, Boolean reflect)
   at Unify.Framework.Adapter.SaveEntity(IAdapterEntity entity, Boolean reflect)
   at Unify.Framework.CompositeAdapter.SaveEntity(IAdapterEntity entity)
   at Unify.Framework.AdapterNotifierDecorator.SaveEntity(IAdapterEntity entityToSave)
   at Unify.Framework.LDIFAdapter.ExportAdapterEntity(IAdapterEntity adapterEntity, Guid adapterId)
   at Unify.Framework.LDIFAdapterServiceHostDecorator.ExportAdapterEntity(IAdapterEntity adapterEntity, Guid adapterId)
   at SyncInvokeExportAdapterEntity(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)",Normal

The issue keeps occurring with those 4 objects.

They are all device profiles. Over a hundred device profiles were successfully done.

Investigating data

Can't say I've seen that one before. My only guess is that there's something special about the data and it might need to be encoded or something in the XML before being sent. Let me know when you've found the sample data.

The issue appears to be an apostrophe in the device name. I'm fine with screening that in the sync engine but something to be aware of.

Not sure what to do about this one Peter - the apostrophe seems to be a legal character as you can create records through the admin console with it, and in fact even when you get a syntax error via the connector the profile is created anyway (and subsequent attempted exports complain about duplicate keys in Cisco).

Ok, seems to actually be a Cisco bug. See http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/1709339

Issue number is CSCtc72474, but I can't see the status of it as "Your Cisco Guest Login is not entitled to use Bug Toolkit.". Lovely.

Issue resolved