<?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>Does task exist</title><link>https://community.appian.com/discussions/f/general/18161/does-task-exist</link><description>I have a process model that cancel a task. I am getting an error email stating that the task to cancel does not exist. We should not experience this in our production environment since we check to see if a task has been completed. In our test environment</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Does task exist</title><link>https://community.appian.com/thread/71456?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:48:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:805ca399-b291-48b4-8a04-ee069153dcea</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I don&amp;#39;t think task ID exists in the default &amp;quot;Tasks for User&amp;quot; report, but you can edit the report or create your own task report that includes the ID. Here&amp;#39;s some more information about setting up the process report to include the task ID:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Configuring_Process_Reports.html#adding-report-columns"&gt;https://docs.appian.com/suite/help/latest/Configuring_Process_Reports.html#adding-report-columns&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does task exist</title><link>https://community.appian.com/thread/71455?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:39:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7ce23ab-2b2b-4d4b-af8f-729a482a4466</guid><dc:creator>helmuta</dc:creator><description>&lt;p&gt;Peter, I was looking at the task report and I don&amp;#39;t see that it contains the task id or process id.&amp;nbsp; Is there another way to get that information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does task exist</title><link>https://community.appian.com/thread/71453?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 14:17:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18a3a137-ce13-4845-99a0-055d752fe514</guid><dc:creator>helmuta</dc:creator><description>&lt;p&gt;Thanks Peter.&amp;nbsp; I will give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does task exist</title><link>https://community.appian.com/thread/71451?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 14:10:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71f91b0f-ed27-4244-bea8-915b7955f320</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;d suggest creating a task report that you can query from that includes all tasks and a column for the task ID. You can add a filter to your query to only return a task with the given ID. Then, if no tasks are returned, then the task doesn&amp;#39;t exist. Here&amp;#39;s a sample query that you can run against your task report:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!queryProcessAnalytics(
  report: cons!MY_TASK_REPORT,
  query: a!query(
    filter: a!queryFilter(
      field: &amp;lt;your ID column here&amp;gt;,
      operator: &amp;quot;=&amp;quot;,
      value: ri!taskId
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 1
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also suggest reviewing the &lt;a href="https://docs.appian.com/suite/help/latest/Task_Report_Tutorial.html"&gt;Task Report Tutorial&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>