<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Wrong format when extract boolean column in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444258#M10756</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234504"&gt;@pbellonch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There is no BOOLEAN data type in SQL Server, I think you are using &lt;A title="BIT data data type" href="https://learn.microsoft.com/en-us/sql/t-sql/data-types/bit-transact-sql?view=sql-server-ver16&amp;amp;redirectedfrom=MSDN" target="_blank" rel="noopener"&gt;BIT data data type&lt;/A&gt; in your tables.&lt;/P&gt;
&lt;P&gt;By default Qlik Replicate &lt;A title="maps the BIT to Boolean" href="https://help.qlik.com/en-US/replicate/November2023/Content/Replicate/Main/SQL%20Server/SQLServerDB_source_DataTypes.htm#ar_sqlserverds_1727505754_1656412:~:text=Microsoft%20SQL%20Server%20data,BOOLEAN" target="_blank" rel="noopener"&gt;maps the BIT to Boolean&lt;/A&gt; data type that's why you get the behavior.&lt;/P&gt;
&lt;P&gt;You may change the data type in transform from default BOOTEAN to INT1. In my labs the table was created as:&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;CREATE TABLE testboolean (id integer NOT NULL PRIMARY KEY,name char (20), bl bit);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;insert into testboolean values (2,'test',1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;insert into testboolean values (3,'test',0);&lt;/FONT&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;So I changed the column "bl" data type to INT1 as:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1713950400495.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164595i018B4D52A99E3AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1713950400495.png" alt="john_wang_0-1713950400495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then in the File target I got:&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;"id:INT4","name:STRING(20)","bl:INT1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2,"test",1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3,"test",0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 09:29:46 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2024-04-24T09:29:46Z</dc:date>
    <item>
      <title>Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444197#M10750</link>
      <description>&lt;P&gt;HEllo,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I extract one table that have one column in the database using 1 or 0 (boolean). During the extarction, Qlik modify this value and write False or True. Could you help to fix this, the business team wants 0 or 1.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pau&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 07:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444197#M10750</guid>
      <dc:creator>pbellonch</dc:creator>
      <dc:date>2024-04-24T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444208#M10751</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234504"&gt;@pbellonch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Welcome to Qlik Community forum and thanks for reaching out here!&lt;/P&gt;
&lt;P&gt;Would you please share what's the source and target endpoints database type? We'd like to confirm the behavior for you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 07:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444208#M10751</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-24T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444209#M10752</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234504"&gt;@pbellonch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Welcome to Qlik Community forum and thanks for reaching out here!&lt;/P&gt;
&lt;P&gt;Would you please share what's the source and target endpoints database type? We'd like to confirm the behavior for you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 07:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444209#M10752</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-24T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444239#M10753</link>
      <description>&lt;P&gt;Hello John, yes the target endpoint is a file (csv) and the source is&amp;nbsp;&lt;SPAN&gt;Amazon RDS for SQL Server.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Pau&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444239#M10753</guid>
      <dc:creator>pbellonch</dc:creator>
      <dc:date>2024-04-24T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444241#M10754</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234504"&gt;@pbellonch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the information, please allow me some minutes.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444241#M10754</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-24T08:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong format when extract boolean column</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444258#M10756</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/234504"&gt;@pbellonch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There is no BOOLEAN data type in SQL Server, I think you are using &lt;A title="BIT data data type" href="https://learn.microsoft.com/en-us/sql/t-sql/data-types/bit-transact-sql?view=sql-server-ver16&amp;amp;redirectedfrom=MSDN" target="_blank" rel="noopener"&gt;BIT data data type&lt;/A&gt; in your tables.&lt;/P&gt;
&lt;P&gt;By default Qlik Replicate &lt;A title="maps the BIT to Boolean" href="https://help.qlik.com/en-US/replicate/November2023/Content/Replicate/Main/SQL%20Server/SQLServerDB_source_DataTypes.htm#ar_sqlserverds_1727505754_1656412:~:text=Microsoft%20SQL%20Server%20data,BOOLEAN" target="_blank" rel="noopener"&gt;maps the BIT to Boolean&lt;/A&gt; data type that's why you get the behavior.&lt;/P&gt;
&lt;P&gt;You may change the data type in transform from default BOOTEAN to INT1. In my labs the table was created as:&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;CREATE TABLE testboolean (id integer NOT NULL PRIMARY KEY,name char (20), bl bit);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;insert into testboolean values (2,'test',1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;insert into testboolean values (3,'test',0);&lt;/FONT&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;So I changed the column "bl" data type to INT1 as:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1713950400495.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164595i018B4D52A99E3AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1713950400495.png" alt="john_wang_0-1713950400495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then in the File target I got:&lt;/P&gt;
&lt;TABLE style="border-style: none; width: 100%; background-color: lightgrey;" border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT face="courier new,courier"&gt;"id:INT4","name:STRING(20)","bl:INT1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2,"test",1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3,"test",0&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 09:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Wrong-format-when-extract-boolean-column/m-p/2444258#M10756</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-04-24T09:29:46Z</dc:date>
    </item>
  </channel>
</rss>

