<?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>Querying task details... too quickly??</title><link>https://community.appian.com/discussions/f/process/39575/querying-task-details-too-quickly</link><description>We are on Appian 24.1. 
 I have a process model with a user task followed by a write to a RecordType. The RecordType keeps track of task performance (i.e. how long it takes users to complete the user task) for long-term trending and reporting needs. </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Querying task details... too quickly??</title><link>https://community.appian.com/thread/150728?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 13:00:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d57a054-e776-4aef-bed6-fb89027acd98</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;Thank you, all, for your input.&amp;nbsp; I will give the timer node a try (I had been thinking along the lines of Sleep(5) but Appian doesn&amp;#39;t run DOS Batch commands)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Querying task details... too quickly??</title><link>https://community.appian.com/thread/150723?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 07:50:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:093ac310-235d-4196-ad64-726cff5d1fea</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Yes, Your speculation seems appropriate! By the time Save Task Performance ran task completion was not marked complete in report, hence the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This can be handled&amp;nbsp;in 2 ways:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Adding a script task to query process report and an XOR node.&amp;nbsp;Before the&amp;nbsp;write records node system should check if data is available or not before Save Task Performance is executed. If its blank then process can retry the query.&lt;/p&gt;
&lt;p&gt;2. If you are querying in the UIT then adding a timer between the User Input Task and Save Task Performance node.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Querying task details... too quickly??</title><link>https://community.appian.com/thread/150722?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 06:06:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a894b22-d943-4c7b-a57e-2e39fc547e5f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yes, this is a race condition where the data from the process execution engine is synced to the process analytics engines slightly after the next node was started. As far as I know, there is no transactional guarantee that exec and analytics are in sync.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Querying task details... too quickly??</title><link>https://community.appian.com/thread/150717?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 04:16:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:071d147d-02c5-48c9-98e7-164e8de3e928</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;After a user task completes, queryProcessAnalytics sometimes returns null data when queried immediately, but works fine when retried later.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="113611" url="~/discussions/f/process/39575/querying-task-details-too-quickly"]speculation:&amp;nbsp; &amp;quot;It appears as if the part of Appian that marked the task as complete was lagging behind and Save Task Performance ran before the task completion was marked internally...&amp;nbsp; The task wasn&amp;#39;t found by the report since it wasn&amp;#39;t marked complete yet and thus the expression that builds the record had no data to include&amp;quot;[/quote]
&lt;p&gt;Yes, your speculation is correct - there&amp;#39;s a timing gap between task completion and when the data becomes available in queryProcessAnalytics. Task completion and analytics data sync aren&amp;#39;t instantaneous.&lt;br /&gt;&lt;br /&gt;I would recommend,&amp;nbsp;Add a 2 second timer node between the user task and the &amp;quot;Save Task Performance&amp;quot; node to allow time for data synchronization.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/24.4/Process_Reports.html"&gt;Process Analytics operates on a separate server that aggregates information.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>