<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculating Dates in Pro using Tasks: Additional Actions in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-dates-in-pro-using-tasks-additional/m-p/288169#M12551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured this out immediately after posting my original question. I think the value for&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;EM&gt;!assignedDate!&lt;/EM&gt; isn't actually saved back to the feature service before the task attempts to run the next calculate of&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;!assignedDate!+datetime.timedelta(days=14)&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Instead I simply calc&amp;nbsp;&lt;EM&gt;!assignedDate!&lt;/EM&gt;&amp;nbsp; using&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;datetime.datetime.now()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and &lt;EM&gt;!&lt;/EM&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;dueDate! using&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;datetime.datetime.now()&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;+datetime.timedelta(days=14)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 02:10:14 GMT</pubDate>
    <dc:creator>AndrewHargreaves2</dc:creator>
    <dc:date>2019-02-08T02:10:14Z</dc:date>
    <item>
      <title>Calculating Dates in Pro using Tasks: Additional Actions</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-dates-in-pro-using-tasks-additional/m-p/288168#M12550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/space/2151"&gt;ArcGIS Pro&lt;/A&gt;‌ team &amp;amp; &lt;A href="https://community.esri.com/group/1981"&gt;ArcGIS Pro Tasks&lt;/A&gt;‌ team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the additional actions‌ steps to calculated fields‌ when exiting a step. I followed&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field-examples.htm"&gt;this documentation&amp;nbsp;&lt;/A&gt;&amp;nbsp;to&amp;nbsp;Calculate the current date into my &lt;EM&gt;assignedDate&lt;/EM&gt; field using:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;time.strftime("%m/%d/%Y")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;I then attempt&amp;nbsp;to add 14 days to the current date and calculate that value into my &lt;EM&gt;dueDate&lt;/EM&gt; field. According to the same page I should be able to use:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;!assignedDate!+datetime.timedelta(days=14)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If i perform the field calculation manually this works fine. However, when using the exact same expression in my additional actions‌ I get&amp;nbsp;the below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="436874" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/436874_pastedImage_12.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 01:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-dates-in-pro-using-tasks-additional/m-p/288168#M12550</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2019-02-08T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Dates in Pro using Tasks: Additional Actions</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculating-dates-in-pro-using-tasks-additional/m-p/288169#M12551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured this out immediately after posting my original question. I think the value for&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;EM&gt;!assignedDate!&lt;/EM&gt; isn't actually saved back to the feature service before the task attempts to run the next calculate of&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;!assignedDate!+datetime.timedelta(days=14)&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Instead I simply calc&amp;nbsp;&lt;EM&gt;!assignedDate!&lt;/EM&gt;&amp;nbsp; using&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;datetime.datetime.now()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and &lt;EM&gt;!&lt;/EM&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;dueDate! using&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;datetime.datetime.now()&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;+datetime.timedelta(days=14)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 02:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculating-dates-in-pro-using-tasks-additional/m-p/288169#M12551</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2019-02-08T02:10:14Z</dc:date>
    </item>
  </channel>
</rss>

