You should be able to define a set operation (UNION, INTERSECT or EXCEPT) involving two or more "flat files".
As with relational systems, a set operation requires that the the number of projected columns is the same and that the types are compatible.
Where compatible means there is a "super type" that can be used to represent the different data types that the column from each "table" may contain.
Do you have a support ticket open where you provided a copy of your report/model?
As a reference, see the rules re appending where file upload considers the types of the existing table vs the new data being added.
https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=files-data-type-compatibility-while-replacing-appending
------------------------------
NIGEL CAMPBELL
------------------------------
Original Message:
Sent: Wed January 29, 2025 11:20 AM
From: Bob Smith
Subject: Report Error (RQP-DEF-0537) When Creating Query Union
Hank, Is it possible to create a union between two uploaded files in a data module? I have two simple upload files that have the same structure with just different data values in each. I can easily create a report which has a union of two files and shows the resulting union data. I would like to do that in a data module and thought that I could create a Table using SQL in my data module. Unfortunately I can't seem to do that. Bottom line is I want to be able to leverage the union of the two uploads across the CA platform not by just creating a report with the union. Is this at all possible or is the idea of using the functionality in a data module to do that not appropriate or possible with uploaded files. Thanks.
------------------------------
Bob Smith
Original Message:
Sent: Wed September 01, 2021 12:06 AM
From: HENK CAZEMIER
Subject: Report Error (RQP-DEF-0537) When Creating Query Union
Hi Cesar,
Would you be able to share the report specification where this error appears.
This is definitely a concept that is allowed.
// Henk
------------------------------
Kind regards,
HENK CAZEMIER
Original Message:
Sent: Tue August 31, 2021 01:47 PM
From: Cesar Garcia
Subject: Report Error (RQP-DEF-0537) When Creating Query Union
I'm creating a very basic report where I do a union on two queries from the same source but different filters. When I try to do a union between them I get the following error:
RQP-DEF-0537 SubQuery 'Query1' used in a set operation cannot use members or member functions.
Is this something that's just not allowed? I double-checked that the column are of the same type and there are no custom fields. I have no issues when using a DataModule/Dataset.
Cesar
------------------------------
Cesar Garcia
------------------------------
#CognosAnalyticswithWatson