Part 4 of 5 in a series on our Cognos Analytics 11.2.4 to 12.1.3 upgrade. Previous part: Moving Cognos off DB2: content store in one PostgreSQL database, reports in another
Our Framework Manager projects are still the 11.x projects. The file names still carry the 11 suffix. We open them in Framework Manager 12 and publish to a Cognos Analytics 12.1.3 server that runs Dynamic Query Mode against PostgreSQL. Verify Model is green, and reports still fail. This is the list we now walk before we call a publish done.
Why
Compatible Query Mode forgave a lot of DB2 shapes: many-to-many joins, a query item named sign, two physical data sources that differ only by case. Dynamic Query Mode plans the SQL and then PostgreSQL parses it. Both are stricter than 11.2.4 was.
The goal
- Publish the same model to 12.1.3 without
MFW-UT-1003.
- Have one physical data source per table.
- Know which breaks are still report fixes after the model is published.
Architecture, in one line
Framework Manager on a Windows machine, dispatcher URI pointed at the 12.1.3 server, JDBC drivers only in that server's drivers folder, model published as the package the reports already use.
Prerequisites
- Framework Manager 12 in its own directory, not over the top of the FM 11 install.
- WebView2 Runtime, installed with admin rights. FM 12.1 needs it.
- If any package is still Compatible Query Mode, the database client on the Framework Manager machine. Dynamic Query Mode uses the drivers on the Cognos server instead.
- Dispatcher URI for external applications:
http://<12-host>:<port>/bi/api/soap.
- A copy of the project. We never verified the only copy.
Part 1: What we had to sort out
1. Drivers live in one directory
On the 12.1.3 server the PostgreSQL driver is postgresql-42.7.x.jar in <install>/drivers. DB2, when we still needed it, was db2jcc4.jar in that same folder. A second copy under webapps/p2pd/WEB-INF/lib or v5dataserver/lib is a different driver than the one you think you configured. Test the data source in the portal first. If the portal test fails, Framework Manager is not the place to debug it.
2. Two data source names that differ only by case
The published package died with:
MFW-UT-1003 Unexpected duplicate ID for a physical node:
[:physicalSources].[MYDATA].[].[<schema>].[<TABLE>]
The project had mydata and MYDATA as two physical data sources over the same schema. Cognos resolves both to the one content-store data source, because that lookup is case-insensitive. Deleting a data source in the portal does nothing to this error. The duplicate has to go inside the project: move the remaining references onto one name, delete the other physical definition, publish again.
3. currentSchema is part of the model, even though it is a JDBC parameter
Every query subject in our project resolves to the compatibility schema. The session search path is set only by currentSchema= on the JDBC URL. Verify Model can succeed and the first report still fails to find locate or an uppercase view when this parameter is missing. Confirm it on the data source, then publish.
4. Names PostgreSQL will not accept
sign is a PostgreSQL function. A query item with that name produced SQL that PostgreSQL rejected, and reports failed with XQE-V5-0005 or XQE-GEN-0005 because they still said [sign]. We gave the query item a new name in the model and then in the reports that referenced it. Do the model first, publish, then fix the reports. The other way round, the report points at a name the package does not have yet.
SYSDUMMY1 has to be in the published package and bound to the same data source as the rest of the model. A helper subject left on a second data source comes back as a duplicate physical node or as XQE-PLN-0011.
Query-subject and column case have to match the database. A mismatch is XQE-PLN-0012.
5. Cardinality and aggregates that 11.2 allowed
Dynamic Query Mode rejects relationships it will not plan:
XQE-PLN-0227 many-to-many. We set those cardinalities to 0:1 and published again.
XQE-PLN-0240 when a query item aggregate is notApplicable. The report fix was to set the aggregate to none.
A clean publish does not freeze layout behaviour. On 12.1.3 we still saw list totals change, crosstab row edges change, and prompt discovery fail with XQE-PLN-0019. Those are report fixes after the model is up. Smoke-test a report that aggregates and a report that uses a prompt macro. Do not stop at Verify Model.
6. The project file on a laptop is not the published package
We keep a download of the Framework Manager project in git. It goes stale the day someone publishes from the Windows machine. The proof that a publish landed is a report run on the 12.1.3 server, or the package timestamp in the content store. "I don't see it in the XML on my laptop" has sent us looking in the wrong place more than once.
Part 2: Publish checklist
Step 1. Install Framework Manager 12 in a new directory. Set the dispatcher URI to http://<12-host>:<port>/bi/api/soap. Confirm WebView2 is installed.
Step 2. Put the JDBC driver only in <cognos-install>/drivers on the 12.1.3 server. Test the data source in the portal.
Step 3. Copy the project. Open the .cpf. Run Tools → Verify Model.
Step 4. Search the project for two physical data sources that differ only by case. Keep one. Republish only after the duplicate is gone.
Step 5. Confirm the JDBC URL ends with currentSchema= set to the schema the query subjects use. Confirm SYSDUMMY1 is in the package and on that data source.
Step 6. Publish the live package. Leave the previous published package in the content store as the rollback copy.
Step 7. Run one report that hits the warehouse, one that aggregates, and one that uses a multi-select prompt. The model can be published and those three can still fail. The failures belong to the report specification, which is the next post.
-------------------------------------------------------
Anand kushwaha
https://www.linkedin.com/in/anandkushwaha064/
Senior Software Engineer
AMVARA CONSULTING S.L.
Barcelona
-------------------------------------------------------