[nt:unstructured] is not allowed under [nt:folder] error

Avatar

Avatar
Validate 1
Level 1
srikoll
Level 1

Likes

3 likes

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
srikoll
Level 1

Likes

3 likes

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
srikoll
Level 1

05-07-2020

Hi,

 

We are trying to import a package from our live environment into a local machine, and we are receiving a [nt:unstructured] is not allowed under [nt:folder] error. We are not doing any migration, but only importing this package. We are also receiving this error when trying to build a package on the local machine.

 

Does anyone know why this error might occur?

 

Regards,

Sri

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

232 likes

Total Posts

294 posts

Correct reply

67 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

05-07-2020

@srikoll it could be because of the mismatch of node types in production and local instance.

 

For /content/a/b/c structure you might have already have part of your structure (ex:/content/a) in local and aem trying to create the rest.

 

If possible either delete the whole structure and import the package or compare the high level node types between production and local, modify it accordingly 

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

05-07-2020

Please note that:

A nt:unstructured node CANNOT be created under the type ‘nt:folder’. You can try it, it’s not gonna save the changes ! But it can be created under folder.

Capture.JPG

 

I tried a quick test by creating a node of type nt:unstructured under nt:folder but ended up getting the above exception.

 

You can deploy your codebase to a new instance. By deploying to a new instance, these exceptions can be avoided. When you deploy the packages, please delete the old structure.

 

 

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

05-07-2020

Hi @srikoll 

 

Like @Shashi_Mulugu  suggested it must be an node mismatch issue between local and production. 

Upload the package on fresh instance/delete the mismatched node, you should not be seeing above error. Also use force upload option when you are uploading the package.