Custom report API error
While trying to modify an existing report, I keep getting the following error every time I try to run it
Flex4 API ERROR :: 500 Server Error: "cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'."
-
Official comment
Hey Bill,
Custom reports aren't covered by our Training or Support departments due to the intricacies of using third-party software but I can offer a little assistance.
First, I recommend downloading the source code from the original OOC report again and starting over. I ran a test for myself to be sure that if I downloaded the code, entered it into Jaspersoft, and re-uploaded it as a Custom Report, it'd work in Flex, so it sounds like something minor may have changed. I've accidentally scrolled over a setting in Jaspersoft without realizing that ultimately caused a similar error.
In my test, I noticed that the direct source code generated a blank document. I fixed this by adding a Business Location parameter since the original version also has one. You can add a parameter by clicking on the 3 dots next to the custom report and then clicking "Configure Parameters". The parameter that I added was captioned "Location", the Key is "LOCATION_ID" (this can be found within the source code of the report), and the Type is "Business Location". Lastly, the parameter in Jaspersoft was set to isForPrompting="false" ...I found that it needed to be true to work correctly.
Hope that helps!
Nick Nazario - Customer Success Manager
Comment actions -
Thanks Nick. The report I'm trying to modify is the Serialized Container Manifest (global) report. Nothing wrong with the one that came with Flex, I just don't like the way it looks. (The printing is too small and the logo is too big). None of the suggestions you gave me helped, But I sure appreciate you taking the time to respond. I'll keep kicking it around and see what I can come up with. Thanks again.
-
Hey Bbowers, might be a library issue. If you want some 3rd party help, let me know. I offer custom reports as a service. Thanks.
Aaron Horn
Flex Consultant (endorsed by Flex)
aaronjhorn@gmail.com -
Did you make sure that you changed the compatibility mode in Jaspersoft Studio to be 6.1.1?
From the online Flex manual in the Designing Custom Reports section:
1. Download and Install Jaspersoft Studio
While the engine used to render reports is JasperReports and it's possible to create report source files by directly editing the XML, most people prefer to use a report design tool. For JasperReports, this tool is called Jaspersoft Studio. Jaspersoft Community offers free-to-download software, but does require a free account to do. Download the correct version for your operating system here.
Once installed, be sure to change the compatibility mode to match the version in Flex, which is currently 6.1.1 - instructions to change this are available here.
Please sign in to leave a comment.
Comments
7 comments