Hi,
I've done more testing and I would like to share the results with you. Now, I have one datasource called DW.
For this datasource, I have 2 connections DW_FRA and DW_ITA.
I ran the report with then without "Run with full interactivity", same result.
I've created a report view (please see report-view-for-dw_ita.png) and I've used DW_ITA as the current value for credential:dw. There is no difference with the report, as expected.
When I ran the report with an URL with the parameter, I had the following results:
Value for parameter is DW_ITA:
http://localhost:9300/bi/?pathRef=.my_folders%2FDataModule%2FNew%2Breport%2Bwithout%2Bcorrect%2Bdatasource%2Bconnection&prompt=false&action=run&p_credential:DW=%3Ccredential%3E%3CdataSourceConnection%20name%3D'DW_ITA'%3ECAMID(%22%3A%22)%2FdataSource%5B%40name%3D'DW'%5D%2FdataSourceConnection%5B%40name%3D'DW_ITA'%5D%3C%2FdataSourceConnection%3E%3C%2Fcredential%3E
The report runs with data from DW_FRA. UNEXPECTED behavior.
Value for parameter is DW_FRA:
http://localhost:9300/bi/?pathRef=.my_folders%2FDataModule%2FNew%2Breport%2Bwithout%2Bcorrect%2Bdatasource%2Bconnection&prompt=false&action=run&p_credential:DW=%3Ccredential%3E%3CdataSourceConnection%20name%3D'DW_FRA'%3ECAMID(%22%3A%22)%2FdataSource%5B%40name%3D'DW'%5D%2FdataSourceConnection%5B%40name%3D'DW_FRA'%5D%3C%2FdataSourceConnection%3E%3C%2Fcredential%3E
The report runs with data from DW_FRA. Expected behavior
Value for parameter is DW_SOS (note: there is no such DW_SOS dataSourceConnection):
http://localhost:9300/bi/?pathRef=.my_folders%2FDataModule%2FNew%2Breport%2Bwithout%2Bcorrect%2Bdatasource%2Bconnection&prompt=false&action=run&p_credential:DW=%3Ccredential%3E%3CdataSourceConnection%20name%3D'DW_SOS'%3ECAMID(%22%3A%22)%2FdataSource%5B%40name%3D'DW'%5D%2FdataSourceConnection%5B%40name%3D'DW_FRA'%5D%3C%2FdataSourceConnection%3E%3C%2Fcredential%3E
The report could not run with DW_SOS. Expected behavior with the following error message:
QE-DEF-0286 Unable to find the connection 'DW_SOS' in the content store.
Best regards,
------------------------------
Patrick Neveu
BSL Consulting
IBM Champion
------------------------------
-------------------------------------------
Message d'origine:
Envoyé: Tue June 24, 2025 07:33 AM
Depuis: Patrick Neveu
Sujet: Datasource connection is not used!
Hi,
In Cognos Analytics v12.0.4 FP1, I have created one datasource DW_TST. For this datasource, I have 2 connections DW_FRA and DW_ITA.
I have 2 security groups, FRA and ITA. Both have access to DW_TST.
The DW_FRA dataSourceConnection is only available to security group FRA.
The DW_ITA dataSourceConnection is only available to security group ITA.
I've created a new data module based on the following connection:
In Data Server connection, DW_TST is the default (not modified) value. In Catalog, DW_FRA is the default (not modified) value.
When I open this data module, I have a dialog box asking to choose a connection for 'DW_TST' data source, I can choose either DW_FRA either DW_ITA.
If I choose ITA, it is weird because the 'Show query information…" option for a table do NOT display anything related to DW_ITA connection, only DW_FRA!
I can reproduce the same issue with a report. I don't understand why the datasource connection is not used in this case.
Best regards,
------------------------------
Patrick Neveu
BSL Consulting
IBM Champion
------------------------------