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,
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
Hi Vikrant,
Could it be that those fields don't exist yet in your new Jira?
That might cause the problem.
Cheers,
Peter
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you know which app is responsible for the a_text fields?
Maybe you can remove the plugin and do a new export?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Peter Van de Voorde Not sure which app have this field.
In custom field list, no such field available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.