JasperSoft Report Error Attribute 'textAdjust' is not allowed to appear in element 'textField'.
search cancel

JasperSoft Report Error Attribute 'textAdjust' is not allowed to appear in element 'textField'.

book

Article ID: 262454

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

We are seeing an error with one of our reports in Jasper Studio,

cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.

We are running version 7.5. I checked line 880 which is throwing this error.

<textField textAdjust="StretchHeight" hyperlinkType="Reference" hyperlinkTarget="Blank">

*********************

Jaspersoft 7.9 sserver and Jasper Studio is 7.5

Environment

Release : 17.3

Resolution

Edit the source.xml file and remove ALL textAdjust properties.

For example

<textField textAdjust="StretchHeight" hyperlinkTarget="Blank">
                                    <reportElement x="0" y="0" width="80" height="30" uuid="72574ed5-ada3-45ca-825e-5613d2ac38d6"/>
                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>
                                    <textFieldExpression><![CDATA[$F{in.priority_symbol}]]></textFieldExpression>
                                </textField>

will become

<textField hyperlinkTarget="Blank">
                                    <reportElement x="0" y="0" width="80" height="30" uuid="72574ed5-ada3-45ca-825e-5613d2ac38d6"/>
                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>
                                    <textFieldExpression><![CDATA[$F{in.priority_symbol}]]></textFieldExpression>
                                </textField>

save the change and run the report again