Error while importing project
Asked by jackchan:

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


Answers:
author: AhmadDanial
body: 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.


author: AhmadDanial
body: 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.

comments: author: Eugene D Bethel
body: Is this te ONLY resolution there is?


Tags: confluence