Hi Henk,
Thank you for your response. In the meanwhile I'm a bit off the governor theory.
In our case queryvalue used in a data module is sometimes searching for the lookup-table in the wrong data module when multiple data modules are used in the same report (validation phase before database connect). The error is very unstable and occurs mostly in reports with many data modules and queries. My tries to contruct an easy example for Armin Kamal didn't succeed. I can "fix" it if I copy all lookup tables in all data modules but this is no good solution. Do you have any idea?
By the way (and not neccessarily relevant for the solution here): Jens Bäumler found that you can indeed use governors in data modules if you include a FM (dummy) package with a governor set in the data module and then it applies for the whole data module. I haven't tried but it appears to be a nice trick :-)
https://www.cognoise.de/warum-governors-wichtig-sind-und-wie-man-sie-auch-in-cognos-datenmodulen-nutzen-kann-33319
Best regards,
Philipp
------------------------------
Philipp Hornung
Product Owner & BI Manager
Techniker Krankenkasse
Hamburg Germany
#IBMChampion
------------------------------
Original Message:
Sent: Tue February 03, 2026 11:59 PM
From: Henk Cazemier
Subject: queryValue() macro in Framework Manager
Hi Philipp,
The governor that was mentioned by Marc is only used by FM and only applies to FM models.
It was a way to speed up some of the validation that takes place, which was at that time quite noticeable for very large FM models (>5MB if I recall).
By default this flag is not set and reduces the size of the temporary model that is sent from FM to the Cognos instance. With the much improved speed of networks nowadays there might be less need for this size reduction. (B.t.w. computing the subset of the model takes a bit of time on the FM side as well).
@Alex, did setting that governor solve the issue with the queryValue macro ?
------------------------------
Henk Cazemier
Original Message:
Sent: Mon January 19, 2026 03:16 AM
From: Philipp Hornung
Subject: queryValue() macro in Framework Manager
Thanks Marc, Are you aware of something similar like the mentioned governor for data modules or reports? Something for "use the whole modell and not just only what you think is neccessary"?
------------------------------
Philipp Hornung
Product Owner & BI Manager
Techniker Krankenkasse
Hamburg Germany
#IBMChampion
Original Message:
Sent: Mon January 19, 2026 02:08 AM
From: Marc Reed
Subject: queryValue() macro in Framework Manager
An old post, but I thought I would share the response I had from IBM support on using queryvalue in framework manager. I tried loggin a bug but this is design intent. I think this also affects quite a few of the newer macro functions, such as include...
The calculation with the macro references an item in another query subject. When DQM submits the query to DQM, it submits only the portion of the model it thinks is required to satisfy the query. So the underlying table is not sent up to DQM in this case, hence the error. When you publish the package, it includes the referenced query subject and so DQM has enough information to unwind the macro.
The good news is, there is a Governor in FM, Process the entire model when publishing, that will allow you to test the macro in FM. You can toggle this on when testing in FM. You can also turn it off before publishing if you don't want the governor on for the published package. Here is more info on the governor.
https://www.ibm.com/docs/en/cognos-analytics/12.1.0?topic=behavior-governors#SetGovernors__title__19
------------------------------
Marc Reed
Reporting Lead
Original Message:
Sent: Tue September 14, 2021 01:10 PM
From: Alex Santamarta
Subject: queryValue() macro in Framework Manager
Hello, using here Cognos Analytics 11.1.5 and Framework Manager 11.1 with a model with DQM.
Anybody knows if the queryValue() macro is supported in Framework Manager. I'm trying to use it but I always get this error:
XQE-V5-0005 Identifier not found
I have tried with
#sq(queryValue('[Namespace].[Query Subject].[Query Item]'))#
and
#queryValue('[Namespace].[Query Subject].[Query Item]')#
If I try the query item without the macro it works:
[Namespace].[Query Subject].[Query Item]
------------------------------
Alex Santamarta
------------------------------
#CognosAnalyticswithWatson