Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Build failing with Constraint violation Exception

Avatar

Former Community Member

Hello,

The Jenkins build fails with the following exception in the error logs - 

[ERROR] Request failed: com.day.jcr.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: /etc/designs/banners/master/css/fonts/clrndnc-webfont.svg/jcr:content: mandatory property {http://www.jcp.org/jcr/1.0}data does not exist (500)

Please help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

So here is the thing, for files data gets store jcr:content/jcr:data, This jcr:data will be a property in jcr:content. When you upload a svg file, jcr:data will store svg content which you see when you open same svg file in Notepad++. Now you will be see in "view" option, click on it and a file will be downloaded with name jcr%3content, open this in notepad++, you might not be able to see svg  file content properly. Please re upload the working version on svg file.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi,

So here is the thing, for files data gets store jcr:content/jcr:data, This jcr:data will be a property in jcr:content. When you upload a svg file, jcr:data will store svg content which you see when you open same svg file in Notepad++. Now you will be see in "view" option, click on it and a file will be downloaded with name jcr%3content, open this in notepad++, you might not be able to see svg  file content properly. Please re upload the working version on svg file.

Avatar

Level 2

Thanks for suggestions ! We are trying both the workarounds listed here :)

Avatar

Level 10

what is the jcr:primaryType of the font node ?? can you post the xml or the screenshot of the properties for the same 

Avatar

Administrator

Hi sonalik93977297

 

Please have a look at the link :- https://forums.adobe.com/thread/1091504?tstart=0

Vaultclipse to import to eclipse creates .dir folder.  After removing these .dir folder and creating package it worked. So remove any extra folder been created. check if this works.

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni