Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

While adding the metadata node to the Image component I am facing the following issue during the build of Image component's content.xml

Avatar

Level 1

[Fatal Error] :32:114: The prefix "granite" for attribute "granite:class" associated with an element type "dynamicmediaGroup" is not bound. [ERROR] ValidationViolation: "jackrabbit-docviewparser: Invalid XML found: The prefix "granite" for attribute "granite:class" associated with an element type "dynamicmediaGroup" is not bound.", filePath=jcr_root/apps/zb-corporate/components/content/image/.content.xml, nodePath=/apps/zb-corporate/components/content/image

 

Can anyone please suggest on how to resolve it ?

5 Replies

Avatar

Level 4

Hi @DeepikaRoy ,

 

Can you share the content.xml file here ?

Avatar

Community Advisor

Hi,

Please check

The prefix "granite" for attribute "granite:class" associated with an element type "dynamicmediaGroup" is not bound.

 

Example of correct XML namespaces
https://github.com/adobe/aem-core-wcm-components/blob/8fbb5674a7170c7caaac1604ac9849eff1ea83a7/conte... 

better to share your dialog xml.



Arun Patidar

Avatar

Level 1

Hi,

Thank you all for your supporting comments. But, I can't share my dialog xml due to company privacy policies.

Avatar

Community Advisor

@DeepikaRoy  Their is some error in your xml. So if you can share the content.xml file it would be easy

Avatar

Administrator

@DeepikaRoy Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni