cvc-complex-type.3.2.2 attribute 'uuid' is not allowed to appear in element 'jasperreport'

Viewed 51493

Downloaded iReport-4.6.0 for Linux and when creating a new report via the File->New... menu, the new report is not shown in the preview, but the error message cvc-complex-type.3.2.2 attribute 'uuid' is not allowed to appear in element 'jasperreport' instead.

The same error message happens even when choosing compatibility 4.5.0 in the options. The same error message happens also when opening a report file that was being produced by other users of iReport-4.6.0 (Windows).

The report files have their schema to http://jasperreports.sourceforge.net/xsd/jasperreport.xsd, but this schema file doesn't mention any uuid.

What could be the problem?

11 Answers

In my case I just removed uuid="63f04b11-4b7e-4cf1-99b5-a5ec6db799d6" I generated a sample report for testing it worked perfectly

So you can try by removing uuid=" "

You can always set the Compability to an older version, It worked for me.

Tools > Options > iReport > General > Compability

enter image description here

After this go to xaml and change any thing and save again then run report to remove all uuid .

Strictly speaking this fix is only for Jaspersoft Studio, however this question is the first result when searching for the attribute 'uuid' is not allowed error.

For Jasper Server version <= 4.5.0 and Jaspersoft Studio 6.11:

  1. Right click on the jrxml file in the Project Explorer -> Properties -> Jaspersoft Studio -> Compatibility -> Source .jrxml Version -> JasperReports 4.5.0
  2. Right click on the server in the Repository Explorer -> Edit JasperReports Server Connection -> Advanced Settings -> JasperReports Library Version -> JasperReports 4.5.0

The second step is important if you are using Jaspersoft Studio to publish to the server.

Related