How to create a Report Specification for a Custom Report Template

Technote (troubleshooting)


Problem(Abstract)

This document describes how to create a report specification for a custom report template.

Symptom

Following message may appear:

RSV-VAL-0010 Failed to load the report specification CCL_ASSERT(getName().empty() != TRUE);
and
the model is not loaded when the template is applied.

The lines shown in bold are resolving this.


Resolving the problem

Open Report Studio.

  1. Create a new report. For more information, see the Report Studio Professional Authoring User Guide.
  2. From the File menu, click Convert to Template.
  3. From the Tools menu, click Copy Report to Clipboard to save the report specification XML.
  4. Paste the report specification into an XML editor or text editor.
  5. Delete the following information, which Report Studio adds to the XML file and which is not necessary for the template:
    • The xmlns attribute of the report element.
    • The template attribute of the report element.
    • The value of the name attribute of the query element. Delete the value, but leave the double
    • quotation marks.
    • The value of the name attribute of the page element. Delete the property name. It should look then like <page>.
    • The value of the refQuery attribute of the list element.
  6. Add a new template element as a parent of the report element.
  7. Add a name attribute for the template element. Administration and Security Guide 495, Chapter 31:
    Customizing the Appearance of IBM Cognos 8
    The name you enter appears as the name of the template in the new report dialog box.
  8. After the template tag add <modelPath/>
  9. Save the report specification.
Here is an example of the initial part of a report specification created in Report Studio. The portions
to delete appear in bold.
<template name="List - corporate">
<modelPath/>
...
<report xmlns=" http://developer.cognos.com/schemas/report/4.0/"expressionLocale="en"
template="true">
<queries>
<query name="Query1">
<source>
<model/>
</source>
<selection/>
</query>
</queries>
<layouts>
<layout>
<reportPages>
<page>
<pageBody class="pb">
<contents>
<list class="ls" refQuery="Query1">
<style>
<CSS value="border-collapse:collapse"/>
</style>
</list>
.................
</report>
</template>

Related information

Administration and Security Guide

Cross Reference information
Segment Product Component Platform Version Edition
Business Analytics Cognos Business Intelligence Report Studio Windows 8.4

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Cognos 8 Business Intelligence
Report Studio

Software version:

8.4

Operating system(s):

Windows

Reference #:

1413200

Modified date:

2009-12-02

Translate my page

Machine Translation

Content navigation