Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,290
Community Members
 
Community Events
165
Community Groups

Error while importing project

Encounter an issue with error output:

com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: not null property references a null or transient value: com.atlassian.crowd.model.user.InternalUserAttribute.user

2 answers

0 votes
AhmadDanial Atlassian Team Jul 25, 2018

Hi, Jackchan.

Since the error that you shared is related to Confluence, I went ahead and added a Confluence tag to this question for clarity. I hope you are fine with that.

Meanwhile, the error shown during the import indicates that the property user is missing from the class InternalUserAttribute within the package com.atlassian.crowd.model.user. 

In the XML backup, I noticed that there are a few XML backup that does not contain the user property. An example of a broken class:

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user">
<id name="id">10977281</id>
<property name="directory" class="DirectoryImpl" package="com.atlassian.crowd.model.directory"><id name="id">294914</id>
</property>
<property name="name"><![CDATA[invalidPasswordAttempts]]></property>
<property name="value"><![CDATA[14]]></property>
<property name="lowerValue"><![CDATA[14]]></property>
</object>

On the other hand, an example with the user property will look like this:

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user">
<id name="id">9011201</id>
<property name="user" class="InternalUser" package="com.atlassian.crowd.model.user"><id name="id">426023</id>
</property>
<property name="directory" class="DirectoryImpl" package="com.atlassian.crowd.model.directory"><id name="id">294914</id>
</property>
<property name="name"><![CDATA[invalidPasswordAttempts]]></property>
<property name="value"><![CDATA[4]]></property>
<property name="lowerValue"><![CDATA[4]]></property>
</object>

Notice the absence of user in the first example.

Moving forward, can you go through the entities.xml file to locate the missing attribute and remove the whole object class for each bad entry and try to import again?

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user">... 
...
...
...
</object>

Let me know it goes on your end. Thanks.

0 votes
AhmadDanial Atlassian Team Jul 25, 2018

Hi, Jackchan.

Since the error that you shared is related to Confluence, I went ahead and added a Confluence tag to this question for clarity. I hope you are fine with that.

Meanwhile, the error shown during the import indicates that the property user is missing from the class InternalUserAttribute within the package com.atlassian.crowd.model.user. 

In the XML backup, I noticed that there are a few XML backup that does not contain the user property. An example of a broken class:

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user">
<id name="id">10977281</id>
<property name="directory" class="DirectoryImpl" package="com.atlassian.crowd.model.directory"><id name="id">294914</id>
</property>
<property name="name"><![CDATA[invalidPasswordAttempts]]></property>
<property name="value"><![CDATA[14]]></property>
<property name="lowerValue"><![CDATA[14]]></property>
</object>

On the other hand, an example with the user property will look like this:

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user">
<id name="id">9011201</id>
<property name="user" class="InternalUser" package="com.atlassian.crowd.model.user"><id name="id">426023</id>
</property>
<property name="directory" class="DirectoryImpl" package="com.atlassian.crowd.model.directory"><id name="id">294914</id>
</property>
<property name="name"><![CDATA[invalidPasswordAttempts]]></property>
<property name="value"><![CDATA[4]]></property>
<property name="lowerValue"><![CDATA[4]]></property>
</object>

Notice the absence of user in the first example.

Moving forward, can you go through the entities.xml file to locate the missing attribute and remove the whole object class for each bad entry and try to import again?

<object class="InternalUserAttribute" package="com.atlassian.crowd.model.user"> 
...
...
...
until
</object>

Let me know it goes on your end. Thanks.

Is this te ONLY resolution there is?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

170 views 1 3
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