Zendesk Plugin creates DB schema incapable of importing valid data

A database backup of the Jira database after the ZenDesk plugin has been configured and used will fail when imported into a fresh install of Jira, due to fields that are bigger than the column's datatype allows.

1 answer

1 accepted

Applying this patch to activeobjects.xml in the backup archive before restoring it, either fixes or works around the problem by basically changing the datatype of two of the plugin fields from varchar(255) to text (unlimited length) in postgresql.

<pre>
--- activeobjects.xml.orig  2012-10-29 20:50:40.908046517 +0000
+++ activeobjects.xml 2012-10-29 20:51:16.246045775 +0000
@@ -318,7 +318,7 @@
     <column name="USER" primaryKey="false" autoIncrement="false" sqlType="12" precision="255"/>
   </table>
   <table name="AO_88DE6A_TRANSACTION_CONTENT">
-    <column name="CONTENT" primaryKey="false" autoIncrement="false" sqlType="12" precision="255"/>
+    <column name="CONTENT" primaryKey="false" autoIncrement="false" sqlType="12" precision="-1"/>
     <column name="ID" primaryKey="true" autoIncrement="true" sqlType="4" precision="10"/>
     <column name="TRANSACTION_ID" primaryKey="false" autoIncrement="false" sqlType="4" precision="10"/>
     <foreignKey fromTable="AO_88DE6A_TRANSACTION_CONTENT" fromColumn="TRANSACTION_ID" toTable="AO_88DE6A_TRANSACTION" toColumn="ID"/>
@@ -326,7 +326,7 @@
   <table name="AO_88DE6A_TRANSACTION_LOG">
     <column name="ID" primaryKey="true" autoIncrement="true" sqlType="4" precision="10"/>
     <column name="LEVEL" primaryKey="false" autoIncrement="false" sqlType="12" precision="255"/>
-    <column name="MESSAGE" primaryKey="false" autoIncrement="false" sqlType="12" precision="255"/>
+    <column name="MESSAGE" primaryKey="false" autoIncrement="false" sqlType="12" precision="-1"/>
     <column name="TIME" primaryKey="false" autoIncrement="false" sqlType="93" precision="29"/>
     <column name="TRANSACTION_ID" primaryKey="false" autoIncrement="false" sqlType="4" precision="10"/>
     <foreignKey fromTable="AO_88DE6A_TRANSACTION_LOG" fromColumn="TRANSACTION_ID" toTable="AO_88DE6A_TRANSACTION" toColumn="ID"/>
</pre>

I face a similar issue. Can you please tell me how to apply the patch that you have mentioned? Please bear with me since I am very new to all these stuff.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,782 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot