Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Custom metadata for asset with custom namespace

Avatar

Level 6

I have created a new custom namespace for the asset metadata.  I am able to add the custom metadata to the asset. But while retrieving using asset,getMetadata it comes as ns2:<customname>

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi Ganesh,

In order for the custom namespace to be saved, the namespace has to be registered in AEM. Please look at the document -> Namespace | Content Management under the heading "Register namespace via CRX Console" and follow the steps.

Regards,

Aneet Arora

5 Replies

Avatar

Correct answer by
Level 5

Hi Ganesh,

In order for the custom namespace to be saved, the namespace has to be registered in AEM. Please look at the document -> Namespace | Content Management under the heading "Register namespace via CRX Console" and follow the steps.

Regards,

Aneet Arora

Avatar

Level 10

Nice response and helpful pointing to the related docs.

Avatar

Level 6

It is already added in namespace editor interface. Adding the custom metadata is not an issue. Retrieving it using asset.getMetadata() is causing the issue

Avatar

Level 6

Issue resolved after server restart

Avatar

Level 10

Glad to hear it was resolved.