To use Cognos product documentation, you must enable JavaScript in your browser.

Cognos ReportNet Model Upgrade

Upgrading a model prepares the model to take advantage of the new features in Cognos 8.

To upgrade your model, follow these steps:

Verifying the Model in Cognos ReportNet

The upgrade process does not resolve any problems that existed in your model prior to upgrading. Before upgrading the model, we recommend that you verify your model and fix any reported problems in your existing environment.

When upgrading from Cognos ReportNet to Cognos 8.3, you must ensure that dimension information is set correctly in the Cognos ReportNet model and then verify the model and fix errors.

How Dimension Information Changed

In Cognos ReportNet, dimension information combined the concept of uniqueness with the concept of dimensional hierarchies. In Cognos 8, the concept of dimension information is divided between determinants and hierarchies for regular dimensions. Determinants control uniqueness and granularity. This control is required for relationally-based query subjects, particularly multiple-fact, multiple-grain queries . Hierarchies for regular dimensions address dimensional concepts of hierarchies, levels, keys, and attributes for all data sources.

When you upgrade the model, you can use the dimension information to create query subjects with determinants or regular dimensions. Thus you must ensure that dimension information was specified correctly in your ReportNet model. When reviewing dimension information, you must understand how the dimension information is applied to the query subject and how you will use the query subject in the Cognos 8 model.

Before upgrading the model to Cognos 8, we recommend that you review your ReportNet model using the Modeling in Framework Manager for Predictable Queries and Results paper, which is available from the Cognos support Web site (http://support.cognos.com).

Opening and Upgrading the Model

When you open an older model in Framework Manager, you are notified that the model must be updated.

When upgrading from Cognos ReportNet to Cognos 8.3, you should

If you are upgrading a model that is segmented or linked, see Upgrading Segmented and Linked Projects.

Governors for a Cognos ReportNet Upgrade

Several governors are set automatically during the upgrade process:

Data Types

Cognos 8 added support for additional data types. This may change how data types are mapped between Cognos and the source data on metadata import.

Mapping of these data types varies by data source vendor.

The primary areas of change are as follows:

Data Type in Cognos ReportNetData Type in Cognos 8
charnChar
decimalnumeric
varCharnVarChar
varChartimestampTZ
varCharIntervalTZ

Data types are stored in the model so that Cognos 8 can avoid going to the data source to determine the data types for query items, resulting in improved performance.

Some query items may appear broken after the upgrade, particularly calculations. For example, the data type of the underlying items for a calculation changed so it is not possible to automatically assign a data type to the calculation. Another example is you saved a calculation that uses a prompt without testing it. For these cases, test the calculation or query item that is affected to correct the data type.

Query Subjects Based on SAP BW Metadata

A query subject that is based on SAP BW metadata is not converted to a dimension. Instead, the upgrade process creates a hidden dimension and a new model query subject that have the same name and query items as the original query subject. The model query subject points to the newly created hidden dimension, which is used to maintain compatibility with existing reports.

Prior to upgrading, conformed dimensions are represented by query subject shortcuts. During upgrade, the conformed dimensions are not altered. The query subject shortcuts are left intact, but the targeted SAP BW query subjects are replaced by model query subjects corresponding to the hidden dimension.

Model query subjects that do not contain levels and hierarchies are converted to measure dimensions.

After upgrading, review the model to ensure that the newly created regular and measure dimensions meet your analysis and reporting requirements. You should only conform dimensions as required to fulfill your reporting and analysis needs.

If you are developing a new application based on an existing model and you are not required to support existing content, you can delete conformed dimensions and re-import the objects from your SAP BW data source. This creates regular dimensions without the underlying query subjects.

Verifying and Repairing the Upgraded Cognos ReportNet Model

After updating the metadata, Framework Manager prompts you to verify the model. You will see at least one warning for each object that contains dimension information or one of the data types listed previously . We recommend that you check one namespace at a time in large models. You can also check an individual object.

Verifying the model separately from the upgrade process offers a number of advantages. You can open an existing model and upgrade and publish without any changes in query functionality. You can take the time to reassess model requirements. You can continue to design the production model and publish it without dimensional information. For models created with Cognos ReportNet, you can move to dimensions and determinants gradually.

When upgrading from Cognos ReportNet to Cognos 8.3, you need

If you make changes to the model before verifying it, you should not change the determinants. Doing so may result in losing the dimension information, which will prevent a successful model verification later.

Converting Dimension Information to Determinants or Dimensions

In Cognos ReportNet, dimension information combined the concept of uniqueness with the concept of dimensional hierarchies. In Cognos 8, the concept of dimension information is divided between determinants and hierarchies for regular dimensions. Determinants control uniqueness and granularity. This control is required for relationally-based query subjects, particularly multiple-fact, multiple-grain queries. Hierarchies for regular dimensions address dimensional concepts of hierarchies, levels, keys, and attributes for all data sources.

Query subjects with dimension information are not converted to determinants or dimensions during the upgrade. The metadata previously specified by dimension information is preserved in the model and continues to exist for query subjects until those query subjects are repaired. You cannot change this dimension information in Cognos 8. You can upgrade the dimension information to determinants or dimensions. Until you upgrade the query subject, Cognos 8 uses the dimension information previously specified in Cognos ReportNet.

If you decide to make changes to the model without verifying it after the upgrade, do not make changes to the determinants because you may lose the dimensional information.

Determinants

Use determinants if you want to preserve existing reports while extending your application.

Determinants reflect granularity by representing subsets or groups of data in a query subject and are used to ensure correct aggregation of this repeated data. Determinants are most closely related to the concept of keys and indexes in the data source and are imported based on unique key and index information in the data source.

Unlike dimension information, model query subjects inherit determinants that are specified for the underlying query subjects. We recommend that determinants be specified as early as possible in the model, typically on the data source query subject. In cases where different determinants are specified for different granularity control, you should either create multiple instances of the data source query subject or remove determinants from the data source query subject and create new determinants on each model query subject requiring different granularity control.

Dimensions

Use dimensions if you want to use your model in Analysis Studio, enable drilling up and down in reports, or access member functions in the studios. Only regular dimensions are created. During upgrade, sufficient metadata does not exist to create measure dimensions so you must create them manually. You can then relate the dimensions to the measures by setting scope in the model.

It is important to understand that if you upgrade query subjects to dimensions, the names of the query items in your model are changed. For example, a query item previously qualified as namespace.query subject.query item now has the name namespace.dimension.hierarchy.level.query item.

Because this name change is likely to invalidate existing reports, we recommend upgrading query subjects to dimensions only when you want to leverage an existing model to build a new application that requires dimensional capability.

How Dimension Information Is Mapped

Dimension information is mapped to determinants and dimensions as follows.

Dimension information

Determinants

Dimensions

Hierarchies

For relational data sources, the first hierarchy is used to create the determinant.

Hierarchies

For SAP BW data sources, alternate hierarchies are upgraded to alternate hierarchies of a dimension.

Levels

Determinants, either uniquely identified or group by

Levels

The first level of the hierarchy is automatically defined as the All level. It contains a single root member, which represents the top level of the hierarchy.

You cannot delete or move the All level. You can change its name, description, and screen tip.

Keys

If Unique Key is not selected, key segments from higher levels are included in the key.

_businessKey role

 

If Unique Key is selected, only the key segment, or segments, for the level are included in the key.

Unique Level

Alphabetically first text attribute

 

_memberCaption role

Attributes

Attributes

Unassociated attributes are assigned to the last determinant, which generally corresponds to the lowest level.

Can be manually assigned to be _memberDescription role, custom role, or no role

Things to Review After Converting

After converting query subjects with dimension information to query subjects with determinants, you must review the following:

After converting query subjects with dimension information to dimensions, you must review the following:

Selecting and Repairing Objects in the Upgraded Cognos ReportNet Model

The repair process first evaluates all selected items. This evaluation automatically resolves issues with new data types and prompts you to repair dimension information in the model.

You can select one or more check boxes of items and repair them.

The following warnings may appear when you verify and repair an upgraded model:

WarningDescription
Needs reevaluation

This message is most often related to data type changes.

The majority of items with this warning can be selected for repair. The repair option provides options for evaluating and upgrading specific elements of metadata.

Join expression conflicts with the determinant information defined in the query subjectSometimes the index and key information specified for a query subject implies a level of granularity that does not match the relationships specified on a query subject.
None of the query items in this level have a caption role specified

When defining levels, you must ensure that a business key and caption roles are specified. These roles are needed for member functions in the Cognos 8 studios and to assist in the member-oriented tree in Analysis Studio.

All captions must have the string data type. If there is no attribute of this type available, create a calculation that is a string data type and assign the member caption role to the new item. This is primarily an issue for Analysis Studio.

One or more determinants that describe the keys and attributes of the query subject should be specified

Determinants are based on key information in the data source. It is possible that no determinants exist for a query subject upgraded from Cognos ReportNet, especially for a model query subject. We recommend that you use determinants to specify the granularity of the data in the query subject and the functional dependencies between query items. However, it is not mandatory to specify determinants for query subjects that represent a single level or fact data.