When you open a template, you might receive a Problems
detected in the loaded template message. These problems
often occur during the replacement of data source schema from older
versions of Rational® Publishing Engine.
From the Problems view, you can identify and address any data reference
errors that exist in your template before you generate a document.
Before you begin
- In the Document Studio application, open a template.
- If errors exist in the template, a Problems detected
in the loaded template message is displayed.
- Click OK. The Problems view opens by default.
- Expand the Errors list.
About this task
Template errors usually occur in these situations:
- A query or attribute is no longer available in the selected data
source schema
- An abbreviated version of the query or attribute name is used
when the full path is required
- A property of a query or attribute that is used in a condition
or script expression is no longer available in the template
Important: Until the errors are fixed, you
cannot generate the template into a document from the Launcher 1.2.1
or later application or from another product that incorporates the Rational Reporting for Document
Generation 1.2.1
or later core component. You might be able to use the templates in
versions earlier than 1.2.1, but the results of those document generations
might vary.
Procedure
To fix these common template errors:
- Invalid data reference reference_name in
condition
- In the error description, note the data reference name
that is suggested for the incorrect data reference.
- Right-click the error.
- Click Open in Editor. The Set condition for current element window
opens.
- Replace the name of the data reference in your script
expression with the suggested data reference name.
- Invalid data reference reference_name in
content
- In the error description, note the data reference name
that is suggested for the incorrect data reference.
- Right-click the error.
- Click Open in Editor. The Set condition for current element window
opens.
- Replace the name of the data reference in your script
expression with the suggested data reference name.
What to do next
After you fix the issues,
run the verification tool to ensure
that the template no longer contains any errors.