The answer to your question, "The data the data module is getting is a varchar containing the value '<unsupported: bit>' rather than 1 or 0, true or false?" is yes.
The method to create a SQL table is as follows:
1. Select the module node of the metadata tree.
2. Click on the more button and bring up the context menu.
3. Choose table with SQL.

4. Write the SQL which you want to use.
5. Select the SQL type from the SQL type drop down list.

6. Select the data source from the data source drop down. If the data source is not in the drop down list it probably means that there is
nothing in the module which uses that data source so you would need to add something from it to the module.
This is second best to having a view where the column whose data type is unsupported has been cast to a supported data type. This is because the computation of the conversion has already been done when the view is created.
------------------------------
IAN HENDERSON
------------------------------
Original Message:
Sent: Fri May 21, 2021 03:31 PM
From: Douglas Pulse
Subject: DataModule support for "bit" datatype?
I am having the same problem in 11.1.7. I think it's odd that when I use cast(columnname, int) I get...
Conversion failed when converting the varchar value '<unsupported: bit>' to data type int.
...instead of Bit data type is unsupported. The data the data module is getting is a varchar containing the value '<unsupported: bit>' rather than 1 or 0, true or false?
In the Data Module editor, I don't see the option to create a table based on pass-through SQL. Both the plus sign at the top of the "Data module" pane and the "Create custom table" button on the Custom tables tab want me to select tables that are available through the data source. How do I get to that screen? Do I need to change a setting somewhere to get that option?
------------------------------
Douglas Pulse
Original Message:
Sent: Fri January 29, 2021 04:29 AM
From: Sandeep Dhirad
Subject: DataModule support for "bit" datatype?
I just verified it works using pass-through SQL and converting boolean data, that isn't supported by Cognos, type to int, so believe it works for bit as well.

------------------------------
Sandeep Dhirad
Elkjøp Nordic
Original Message:
Sent: Thu January 28, 2021 03:28 PM
From: Richard Mabjish
Subject: DataModule support for "bit" datatype?
I'm using Cognos 11.1.6.
I'm creating a new DataModule based on tables and views from an SQL Server database. I'm noticing the DataModule does not support columns that are "bit" datatype in the database, instead of displaying data, it shows "<unsupported: bit>" message (see below).
Any ideas how to fix this? Any idea how to change the datatype from within the module to "integer"?
Thanks!

#CognosAnalyticswithWatson