<?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>Duplicate Entry / process run twice</title><link>https://community.appian.com/discussions/f/process/37548/duplicate-entry-process-run-twice</link><description>Hello Folks, 
 
 I got this below error in my process. I am not updating anything in the process. Please assist 
 An error occurred while trying to write to the entity &amp;quot;EMP_CASE &amp;quot; [id=916ee3cb-938e-4931-a61b-ba630fe5a543@61527, type=EMP_CASE (id=5350</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140791?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:48:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3ef9372-787c-4e00-a42c-900b838a0daf</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Thank you so much. I will try to do this and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140790?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:47:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d2053c8-5b61-4ab1-8b89-c9d6dbf6bcbe</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;&lt;strong&gt;Deleting the unique constraint is the solution here&lt;/strong&gt;, as it allows for the insertion of multiple cases for an employee, regardless of where the data is coming from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140789?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:44:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:398b2826-162c-4186-9483-0a6a53d1d9cc</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;yes, I didn&amp;#39;t create before. But data is coming from somewhere else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140788?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:42:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20cf8283-af8e-4ae0-9faa-fbd859efc468</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;Okay, then you need to remove/delete the unique constraint from the &amp;#39;EmpID&amp;#39; column in the &amp;#39;EMP_CASE&amp;#39; table. It didn&amp;#39;t happen before, and my guess is that you might not have created multiple cases for an employee.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140786?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:37:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd4e4219-1c45-4f28-b17c-d23dad27a28c</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;One more thing, this didn&amp;#39;t happen before. It starts throwing error suddenly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140785?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 18:32:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bfb4f0d-3ca0-4158-a751-1489e002a64a</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Yes, this is a unique key in table. This is one to many relationship&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140730?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 21:57:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b4c9a52-79a6-46bc-87d6-d3a66344cbeb</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;May I ask why the &amp;#39;EmpID&amp;#39; is configured as a unique key column in the Employee case table? &lt;br /&gt;&lt;br /&gt;Since it is a unique key, it will prevent the insertion of case details with the same employee ID multiple times, meaning multiple cases cannot be created for or by the same employee. If the relationship is intended to be one-to-one, this makes sense. Otherwise, I would suggest removing the unique key constraint from the &amp;#39;EmpID&amp;#39; column in the Employee case table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140729?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 21:00:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:302e5f41-75e5-4cb7-b0b9-3c13136a0c12</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;EmpID&amp;nbsp;is unique key in this table.&amp;nbsp;&lt;br /&gt;ID is autoincremented. It is unique also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140724?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 20:02:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de93b51b-059a-4c8e-9760-b20da4414ff7</guid><dc:creator>mathurambika0708</dc:creator><description>&lt;p&gt;Hi Manjit,&lt;/p&gt;
&lt;p&gt;I believe &amp;#39;EmpID&amp;#39; is a foreign key in the &amp;#39;EMP_CASE&amp;#39; table. If that&amp;#39;s the case, could you verify whether a &amp;#39;UNIQUE&amp;#39; key constraint has been added to this column? Since this is a one-to-many relationship, where multiple cases can be raised for an employee, the unique key constraint is not required and can be removed if it has been added&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140721?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 17:33:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08d44d86-0d90-44f2-904a-dc5c56380e14</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Primary key&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140720?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 17:32:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d663e59b-8508-4a51-928e-d8663aad6017</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Yes. But MNI is not configured&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140717?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 17:02:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2fd5d12-0e23-4751-a3f4-ee1f01f57dfb</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;What is the nature of EmpId column? Is it a foreign key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140715?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 17:00:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68cdebe0-1046-45e1-a255-1f9ddd15292d</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Are you seeing multiple instance getting created when you run this process ? If yes, its quite possible that your process is configured as MNI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140714?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:51:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce1c9952-1604-4798-8484-795aac6fb944</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Did you try checking the logs for more information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140713?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:47:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d7b0616-f51a-48c4-acad-ac65196c3c0c</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1726591577912v1.png" /&gt;&lt;br /&gt;Highlighted one is autoincrement ID column and next one is EmpId column.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140712?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:44:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:972bfa61-3405-4dbe-8809-ebe51b5f2d3e</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Verify if the last record in DB and the Sequence is same or not. If not you will keep on getting this error.&lt;/p&gt;
&lt;p&gt;You can google to set the index in DB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140711?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:41:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32499791-796f-457a-9e0b-45e7febe1219</guid><dc:creator>manjit.1486</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp;DB already has record against 229.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Duplicate Entry / process run twice</title><link>https://community.appian.com/thread/140710?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 16:40:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46c5af6f-6846-409f-8eef-56b5c57b3f83</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Could you check and confirm if your DB has value already stored for EmpID:&amp;nbsp;&lt;strong&gt;229.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This happens when you have used auto increment in Appian and Database Sequence has already passed that value or contains some value for given sequence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>