<?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/"><channel><title>KB-2191 Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2191 Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi</link><pubDate>Thu, 17 Jun 2021 06:28:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 6/17/2021 6:28:31 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a Web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;ENDPOINT NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A Web API with the same endpoint and HTTP method already exists in the environment. The &lt;a href="https://docs.appian.com/suite/help/latest/Designing_Web_APIs.html#creating-a-web-api"&gt;combination of the HTTP method and endpoint for the Web API must be unique across all Web APIs in the system&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the endpoint and/or HTTP method of the Web API to be unique. This can be the endpoint of the Web API being created/imported or the existing Web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/7</link><pubDate>Thu, 17 Jun 2021 00:00:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Tom Ryan on 6/17/2021 12:00:46 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a Web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;ENDPOINT NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A Web API with the same endpoint and HTTP method already exists in the environment. The &lt;a href="https://docs.appian.com/suite/help/latest/Designing_Web_APIs.html#creating-a-web-api"&gt;combination of the HTTP method and endpoint for the Web API must be unique across all Web APIs in the system&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the endpoint and/or HTTP method of the Web API to be unique. This can be the endpoint of the Web API being created/imported or the existing Web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/6</link><pubDate>Tue, 15 Jun 2021 13:48:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Zach Puderbach on 6/15/2021 1:48:38 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;ENDPOINT NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A web API with the same endpoint and HTTP method already exists in the environment. Web API endpoint and HTTP method combinations names are saved to the primary database, and &lt;a href="https://docs.appian.com/suite/help/latest/Designing_Web_APIs.html#creating-a-web-api"&gt;the combination of the HTTP method and endpoint must be unique across all web APIs in the system&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the endpoint of the web API to be unique. This can be the endpoint of the web API being created/imported or the existing web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/5</link><pubDate>Tue, 08 Jun 2021 13:36:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Zach Puderbach on 6/8/2021 1:36:38 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;ENDPOINT NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A web API with the same endpoint already exists in the environment. Web API endpoint names are saved to the primary database and must be unique.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the endpoint of the web API to be unique. This can be the endpoint of the web API being created/imported or the existing web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/4</link><pubDate>Tue, 08 Jun 2021 04:05:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 6/8/2021 4:05:24 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;EXTENSION NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A web API with the same extension already exists in the environment. Web API extension names are saved to the primary database and must be unique.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the extension of the web API to be unique. This can be the extension of the web API being created/imported or the existing web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing Web API fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/3</link><pubDate>Tue, 08 Jun 2021 04:03:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 6/8/2021 4:03:45 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a web API in Appian Designer&amp;nbsp;fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;EXTENSION NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A web API with the same extension already exists in the environment. Web API extension names are saved to the primary database and must be unique.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the extension of the web API to be unique. This can be the extension of the web API being created/imported or the existing web API.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, application design, web api&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing WebAPI fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/2</link><pubDate>Fri, 04 Jun 2021 20:42:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Zach Puderbach on 6/4/2021 8:42:15 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a webAPI in /design fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;br /&gt;Caused by: java.sql.SQLException: Duplicate entry &amp;#39;&amp;lt;EXTENSION NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39; for key &amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A WebAPI with the same extension already exists in the environment. WebAPI extension names are saved to the primary database and must be unique.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Rename the extension of the WebAPI to be unique. This can be the extension of the WebAPI being created/imported, or the existing WebAPI.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration, webAPI&lt;/div&gt;
</description></item><item><title>DRAFT KB-[SP-6076] Creating or importing WebAPI fails with error "could not insert: [com.appiancorp.webapi.WebApi]"</title><link>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi/revision/1</link><pubDate>Fri, 21 May 2021 21:34:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049005e-634d-4d83-839f-c48eaf0333e2</guid><dc:creator>Zach Puderbach</dc:creator><comments>https://community.appian.com/support/w/kb/2386/kb-2191-creating-or-importing-web-api-fails-with-error-could-not-insert-com-appiancorp-webapi-webapi#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Zach Puderbach on 5/21/2021 9:34:24 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Creating or importing a webAPI fails with the following error in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;webApi &amp;lt;UUID&amp;gt; &amp;quot;&amp;lt;WEBAPI_NAME&amp;gt;&amp;quot;: An error occurred while creating webApi [uuid=&amp;lt;UUID&amp;gt;]: org.hibernate.exception.ConstraintViolationException: could not insert: [com.appiancorp.webapi.WebApi] (APNX-1-4071-007)&lt;br /&gt;...&lt;/pre&gt;
&lt;pre class="code-java"&gt;Caused by: java.sql.SQLException: Duplicate entry &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;EXTENSION NAME&amp;gt;-&amp;lt;HTTP METHOD&amp;gt;-0&amp;#39;&lt;/span&gt; &lt;span class="code-keyword"&gt;for&lt;/span&gt; key &lt;span class="code-quote"&gt;&amp;#39;webapi_aliasmethod_idx&amp;#39;&lt;/span&gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;A WebAPI with the same extension already exists in the environment. WebAPI extension names are saved to the primary database and must be unique.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section is optional and should only be used as an alternative action if there is a massive technical debt associated with performing the action in the above section for customers (such as upgrading). It can also be used if there is a solution to the issue in the article but is more inconvenient to implement or it causes other undesirable behavior and wouldn&amp;rsquo;t warrant being an action.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section includes any relevant version information for Appian or other third/party configurations. Some examples of valid affected versions are as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;May&amp;nbsp;2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: integration&lt;/div&gt;
</description></item></channel></rss>