Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error message when import xml backup in JIRA DC

Vikrant Yadav
Community Champion
October 6, 2022

Hi Guys,

 

Need one help in importing xml backup of a JIRA FROM version 6.0.1 TO version 8.20.11.

Error Message :- 

Error importing data: java.lang.IllegalArgumentException: [GenericEntity.setString] "a_text" is not a field of

I have tried to fix this error message , by running .jar file as per the below document, 

https://confluence.atlassian.com/jirakb/xml-restore-fails-with-entityname-error-in-jira-server-317951241.html

Open Command Prompt as Administrator >> run it created a new empty entities-purged.xml instead of removing tags. 

java -jar xml-purge-1.0-SNAPSHOT.jar entities.xml > entities-purged.xml

 

 Kindly suggest. 

 

i need to remove following tags or replace following tags ?

 

TimesheetEntity
TimesheetScheme
Myaa
ReportEntity
ReportScheme
LinkEntity
LinkScheme
WorklogExt
WorklogType
KPlugins
KPluginsCfg
cfgDefaultValue
cfgLDefaultValue
cfgValue
cfgLValue
QANDAA
QANDAQ
QANDAE
a_text
q_text
jjlf_project
jjlf_config
jjlf_category
KListenerSils
JiraCapacityPlan
additionalTaskDescription
testexecutionhistory
KRSSecurity
KBlitzActions

 Thanks

1 answer

0 votes
Peter Van de Voorde
Community Champion
October 6, 2022

Hi Vikrant, 


Could it be that those fields don't exist yet in your new Jira? 
That might cause the problem.

Cheers,
Peter

Vikrant Yadav
Community Champion
October 6, 2022

@Peter Van de Voorde  In complete xml backup do i need to create all custom fields first in target instance ? Target instance is blank but is higher version then source instance. 

I don't think field is problem not 100% sure, as per the error message, tags are the problem as per the document, but after removing tag xml file invalid error coming.

.jar file is not creating correct file.  

 

Thanks

Peter Van de Voorde
Community Champion
October 6, 2022

No, if it's a completely empty instance those fields should be created automatically. 

I would try and remove those tags manually from your xml backup and see what that gives. These kind of problems are often solved through trial and error.

Vikrant Yadav
Community Champion
October 6, 2022

@Peter Van de Voorde  

Tags are like this :-

<q_text><![CDATA[Attach document is for GC .]]></q_text>


without tag :-

<><![CDATA[Attach document is for GC .]]></>

 I already tried to remove tags, but after this getting error message invalid .xml file. 

Do i need to replace tags with new tags something like textarea ? 

Peter Van de Voorde
Community Champion
October 6, 2022

You'll need to remove that line completely. 

So not just the tag name but the tags including everything in between those tags. 

So in this example you need to remove 

<q_text><![CDATA[Attach document is for GC .]]></q_text>
Vikrant Yadav
Community Champion
October 6, 2022

@Peter Van de Voorde  But it Removed the data as well. 

Francisco Gomez Balastegui October 6, 2022

Hi @Vikrant Yadav i should recomend to resotere a XML on same version instance and then upgrade, restore on a highger instance could produce some errors

Vikrant Yadav
Community Champion
October 6, 2022

@Francisco Gomez Balastegui  Thanks for the suggestion. 

But i have just tested to import backup on same jira version but getting this error :- 

Error importing data: java.lang.IllegalArgumentException: [GenericEntity.set] "a_text" is not a field of

Peter Van de Voorde
Community Champion
October 6, 2022

Do you know which app is responsible for the a_text fields? 
Maybe you can remove the plugin and do a new export?

Vikrant Yadav
Community Champion
October 6, 2022

@Peter Van de Voorde  Not sure which app have this field. 

In custom field list, no such field available. 

Vikrant Yadav
Community Champion
October 6, 2022

@Peter Van de Voorde @Francisco Gomez Balastegui  How can i clear these tags which are mentioned in document. I have notepad++ , but how to clear all in one click. 

https://confluence.atlassian.com/jirakb/xml-restore-fails-with-entityname-error-in-jira-server-317951241.html

Francisco Gomez Balastegui December 14, 2022

The best way it is to generate a regex search and then do replace all in notepad ++

 

https://www.technical-recipes.com/2020/using-regex-to-find-and-replace-text-in-notepad/

Suggest an answer

Log in or Sign up to answer