<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/discussions/f/integrations/24873/update-web-service-calls-failing-due-to-random-3-milli-seconds-difference</link><description>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 &amp;quot; LastModifiedDate&amp;quot; which holds Date</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96519?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 05:38:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f392d02-142a-4911-8962-5fd9b133d376</guid><dc:creator>srivallin</dc:creator><description>&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We did reached out to Appian, waiting for response.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96269?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 06:50:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c7653a3-f8bf-4e1d-9839-f47cb0273dd8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. I tried to reproduce your case using this code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!xml: &amp;quot;&amp;lt;PersonName&amp;gt;
    &amp;lt;First&amp;gt;Edward&amp;lt;/First&amp;gt;
    &amp;lt;Last&amp;gt;Denton&amp;lt;/Last&amp;gt;
&amp;lt;Date&amp;gt;2002-05-30T09:30:10.543&amp;lt;/Date&amp;gt;
  &amp;lt;/PersonName&amp;gt;&amp;quot;,
  local!cdt: torecord(local!xml, &amp;#39;type!{urn:com:appian:types:SSH}SSH_XmlTest&amp;#39;()),
  toxml(local!cdt)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The output is&lt;/p&gt;
&lt;p&gt;&amp;lt;n1:SSH_XmlTest xmlns:n1=&amp;quot;urn:com:appian:types:SSH&amp;quot;&amp;gt;&amp;lt;First&amp;gt;Edward&amp;lt;/First&amp;gt;&amp;lt;Last&amp;gt;Denton&amp;lt;/Last&amp;gt;&amp;lt;Date&amp;gt;2002-05-30T09:30:10.540Z&amp;lt;/Date&amp;gt;&amp;lt;/n1:SSH_XmlTest&amp;gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I suggest to contact Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96268?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 06:37:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:485374cf-25ed-44a5-911e-69b48dc70478</guid><dc:creator>srivallin</dc:creator><description>&lt;p&gt;Yes, i sent with the current time&amp;nbsp;but it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;As per API, we are not supposed to modify the LastModifiedDate. Need to perform GetMerchant and&amp;nbsp;not try to re-use the object&amp;nbsp;we built initially, because the system will think the object is out of date and refuse it. The date has to match what is on the server during the Update operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96267?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 06:23:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3156b02d-4f8a-4bde-b658-2ed6f7a6b3b6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK, got it. This is about SOAP web services.&lt;/p&gt;
&lt;p&gt;So the issue is that the date is being rounded down and the API refuses a returned date earlier than the sent one. Did you try to just overwrite the timestamp with the current time? This way the sent date will always be later that the received one.&lt;/p&gt;
&lt;p&gt;But in the end, you might have to check the requirements of the called API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96266?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 06:07:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98d9a94f-4418-42d8-8b3c-8ddbdabdf056</guid><dc:creator>srivallin</dc:creator><description>&lt;p&gt;I am using &amp;quot;Call Web Service Smart Service&amp;quot;, generates the WSDL CDT. The field &amp;quot;LastModifiedDate&amp;quot; received as Date Time.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.2/Call_Web_Service_Smart_Service.html#node-outputs"&gt;https://docs.appian.com/suite/help/22.2/Call_Web_Service_Smart_Service.html#node-outputs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I update a different&amp;nbsp;field and call &amp;quot;UpdateMerchant&amp;quot; to modify the respective change. But the field &amp;quot;LastModifiedDate&amp;quot; has 3 milliseconds difference when the API receive the request.&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;API end stored format -&amp;nbsp;2022-06-09 12:43:49.233&lt;/p&gt;
&lt;p&gt;Get operation returned &amp;quot;LastModifiedDate&amp;quot; -&amp;nbsp;6/9/2022 12:43 PM GMT+00:00&lt;/p&gt;
&lt;p&gt;API received during Update operation -&amp;nbsp;&lt;span&gt;2022-06-09 12:43:49.230&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96265?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 05:49:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14fc53ea-c01d-4dc8-8a8a-7cd671ac210d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.2/Integration_Object.html#http-integration-definition"&gt;https://docs.appian.com/suite/help/22.2/Integration_Object.html#http-integration-definition&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I mean &amp;quot;Response Body Parsing&amp;quot;. If enabled, Appian will convert the JSON formatted data into an Appian dictionary. Did you check whether there are any deviations in the JSON timestamps and the parsed timestamps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96263?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 03:55:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a78064c6-98f7-4c77-ba04-a6f2d0ea4702</guid><dc:creator>srivallin</dc:creator><description>&lt;p&gt;Could you please&amp;nbsp;explain what do you mean &amp;quot;&lt;span&gt;Appian will only parse the data if you enable it&amp;quot;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update Web Service Calls Failing Due to random 3 milli seconds difference</title><link>https://community.appian.com/thread/96250?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 16:37:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a3f9e04-a501-44b4-90ff-99701dd0fe56</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you post some details? BTW, Appian will only parse the data if you enable it. Might be an idea to disable that to understand what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>