Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error and XML file . . .help needed

Deleted user Jul 18, 2019

I'm hoping someone who knows XML can help:  can someone decifer the error:

"An error occurred:

javax.xml.bind.UnmarshalException

- with linked exception:

[org.xml.sax.SAXParseException; LineNumber: 353; columnNumber:34; cvc-complex-type.2.4.a: Invalid content was found starting with element 'allProjects'. One of '{context, applicableIssueType, customeFieldConfiguration, config}' is expected.] "

It appears to say 2 different things to me

1) a '{context, applicacableIssueType, customeFIeldConfiguration, config}' is expected - i.e., it's missing   OR   2) possibly the date format is incorrect . . . .

here's the section from the XML file the error refers to - line 353 column 34-37 is bold

<customField>
<type>com.atlassian.jira.plugin.system.customfieldtypes:datepicker</type>
<name>Date Found</name>
<description>Date that the problem or observation was found</description>
<searchTemplate>com.atlassian.jira.plugin.system.customfieldtypes:daterange</searchTemplate>
<customFieldConfigScheme>
<name>Default Configuration Scheme for Date Found</name>
<description>Default configuration scheme generated by JIRA</description>
<allProjects>true</allProjects>

<applicableIssueType><issueType>Bug</issueType>
<customFieldConfiguration>Default Configuration for Date Found</customFieldConfiguration>
</applicableIssueType>

THERE WERE MULTIPLE <applicableIssueType> </applicableIssueType> blocks all saying the same thing but with different IssueTypes


<config>
<name>Default Configuration for Date Found</name>
<description>Default configuration generated by Jira</description>
<defaultValue>
<singularValue>18/Jul/19</singularValue>
</defaultValue>
</config>
</customFieldConfigScheme>
</customField>

2 answers

1 accepted

1 vote
Answer accepted

@[deleted] you need to ensure that the Project Configurator versions match on both the export and import servers. I found that the export (3.0.4) and the import (3.0) was causing this issue, so upgraded the import server to 3.0.4 and it worked

Deleted user Aug 02, 2019

Thank You.

1 vote
Thomas Deiler Community Leader Jul 18, 2019

Dear @[deleted] ,

I have read your post twice to figure out what you plan to do with this XML - I failed. Can you please tell us what you wanna do with this XML and where/when this exception is thrown?

So long

Thomas

Deleted user Jul 19, 2019

Hi Thomas,

What happened is they were trying to do an import into JIRA whe they got the error mentioned above which referenced the XML file.

That's all I know, unfortunately.  I asked specifically how and when the error was generated but was only told the information I just relayed to you.

Jim

Thomas Deiler Community Leader Jul 19, 2019

Dear @[deleted] ,

I cannot recommend to fix the DB dump manually - even if it is readable as XML, until you exactly know what you do.

Is the Jira version, where you try to import, the same with which the dump was created?

So long

Thomas

Deleted user Jul 24, 2019

Hi THomas.

Yes, they were the same versions.  

You can forget about my question for now.  An import was occuring, an error was enountered that referenced the XML file.   To me, it seems clear what they were trying to do - an import.

I'm unable at this time to provide any other details - let's drop it for now.

Thank you for your help.

Jim

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,346 views 22 31
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you