Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Update Web Service Calls Failing Due to random 3 milli seconds difference

Certified Lead Developer

Hello,

I am using a WebService query smart service to do Get and Update Merchant. We do a Get call to get the latest data,  modify the returned object, and update using the UpdateMerchant call. Thers is an attribute "LastModifiedDate" which holds Date Time, not supposed be modified. I am just passing without any change. But there is a random 3 milliseconds difference during the Get and Update. I am seeing random success response but its intermittent.

Becasue of this difference, the Update call is throwing an error with "Unable to add due to typical Microsoft CRUD design - Status - OutOfDate..

I am not sure how Appian gets the raw data. I could only see data once it is converted into an Object. Did anyone face this issue or what could explain the error?

Thanks

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to srivallin

    OK. I tried to reproduce your case using this code

    a!localVariables(
      local!xml: "<PersonName>
        <First>Edward</First>
        <Last>Denton</Last>
    <Date>2002-05-30T09:30:10.543</Date>
      </PersonName>",
      local!cdt: torecord(local!xml, 'type!{urn:com:appian:types:SSH}SSH_XmlTest'()),
      toxml(local!cdt)
    )

    The output is

    <n1:SSH_XmlTest xmlns:n1="urn:com:appian:types:SSH"><First>Edward</First><Last>Denton</Last><Date>2002-05-30T09:30:10.540Z</Date></n1:SSH_XmlTest>

    Appian seems to ignore the last digit of the timestamps millisecond value. This seems to happen when parsing the ISO datetime value from XML to internal.

    I suggest to contact Appian.

Children