<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to avoid the Error Http Status Code 409?</title><link>https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409</link><description>&lt;p&gt;Scenario:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;user1 authenticates and starts a task;&lt;/li&gt;
&lt;li&gt;Then, user1 closes the browser window with the task open;&lt;/li&gt;
&lt;li&gt;Finally, authenticates again and try to do the task.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Then, it throw the Error: "Error Http Status Code 409",  ConflictRequestException:  "You cannot work on the task '305 - User 1 - Task 1 - ' with the identifier '41' because the user 'user1' is currently working on it.". &lt;/p&gt;
&lt;p&gt;The simulation doesn't start before the error, so I am wondering if it could be just a configuration on Axon Ivy. My Question is &lt;strong&gt;How to avoid the Error Http Status Code 409?&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;Any help is appreciated.&lt;/p&gt;
&lt;p&gt;Notes: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In my user application, the tasks are showing using the approach explained in &lt;a href="http://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-state"&gt;findWorkTasks() never returns tasks in TaskState.RESUMED state&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;Since it's not reliable in all browsers, I am avoiding to handle the window closing: &lt;a href="http://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog"&gt;Detecting when the user closes the window or tab of the browser in a Html Dialog&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;It seems that the Portal handles the action differently for RESUMED and SUSPENDED tasks, that's my plan B;&lt;/li&gt;
&lt;li&gt;Engine Version 6.0.5;&lt;/li&gt;
&lt;/ul&gt;</description><atom:link href="https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 30 Jul 2024 07:12:15 -0000</lastBuildDate></channel></rss>