<?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>article System.Byte[] Error when Loading Binary Data Type in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/ta-p/1717170</link>
    <description>&lt;P&gt;The error&amp;nbsp;System.Byte[] was occurring when attempting to load data from a binary data type column from MS SQL Server database.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;BR /&gt;Qlik Sense Enterprise on Windows any version&lt;/P&gt;
&lt;H3&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;This issue was resolved by creating a new column in the SQL Server database and converting the column to be &lt;SPAN&gt;varchar &lt;/SPAN&gt;data type. Then this new &lt;SPAN&gt;varchar &lt;/SPAN&gt;column could be read into Qlik Sense without any error.&lt;BR /&gt;&lt;BR /&gt;This type of conversion function was used in the database in the process to create the new column:&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT face="courier new,courier"&gt;Convert(NVARCHAR(MAX), "FieldName", 1) as Varchar_FieldName&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/data-types.htm" target="_self"&gt;Data Types&lt;/A&gt;&amp;nbsp;for available Data Types in Qlik Sense.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 07:39:42 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-10-28T07:39:42Z</dc:date>
    <item>
      <title>System.Byte[] Error when Loading Binary Data Type</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/ta-p/1717170</link>
      <description>&lt;P&gt;The error&amp;nbsp;System.Byte[] was occurring when attempting to load data from a binary data type column from MS SQL Server database.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;BR /&gt;Qlik Sense Enterprise on Windows any version&lt;/P&gt;
&lt;H3&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;This issue was resolved by creating a new column in the SQL Server database and converting the column to be &lt;SPAN&gt;varchar &lt;/SPAN&gt;data type. Then this new &lt;SPAN&gt;varchar &lt;/SPAN&gt;column could be read into Qlik Sense without any error.&lt;BR /&gt;&lt;BR /&gt;This type of conversion function was used in the database in the process to create the new column:&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT face="courier new,courier"&gt;Convert(NVARCHAR(MAX), "FieldName", 1) as Varchar_FieldName&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/data-types.htm" target="_self"&gt;Data Types&lt;/A&gt;&amp;nbsp;for available Data Types in Qlik Sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 07:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/ta-p/1717170</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-10-28T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: System.Byte[] Error when Loading Binary Data Type</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/tac-p/2059537#M8918</link>
      <description>&lt;P&gt;I was able to extract varchar(max) binary as base64&amp;nbsp; into qlik via this select&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;select id,&lt;BR /&gt;cast('' as xml).value(&lt;BR /&gt;'xs:base64Binary(sql:column("tbl_data.BINARYDATA"))', 'varchar(max)'&lt;BR /&gt;) as Data_binary&lt;BR /&gt;from "db".dbo."tbl_data";&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 11:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/tac-p/2059537#M8918</guid>
      <dc:creator>janyf</dc:creator>
      <dc:date>2023-04-12T11:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: System.Byte[] Error when Loading Binary Data Type</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/tac-p/2525959#M16208</link>
      <description>&lt;P&gt;Hi, I had this Error when using QvODBCConnectorPackage in QlikView and trying to Select a timestamp-Field (The data type "timestamp" is kind of a binary value and has nothing to do with DateTime or Time) from a MSSQL-Database.&lt;/P&gt;&lt;P&gt;Unfortunately every table in the database has a timestamp field in it. So SELECT * was not possible without getting above Error-Message in the connector log.&lt;/P&gt;&lt;P&gt;In the install folder of the connector package there is a config file, which lets you specify how different data types are interpreted by the connector.&lt;BR /&gt;C:\Program Files\Common Files\QlikTech\Custom Data\QvODBCConnectorPackage\qlikview.qliksourceconfig&lt;/P&gt;&lt;P&gt;Here I found the node&amp;nbsp;&amp;lt;SourceConfiguration id="mssql" displayName="Microsoft SQL Server"&amp;gt; and within this node there are all TypeMappings to be found.&lt;BR /&gt;For the SourceType "timestamp" I changed the QvxFieldType from "Time" to "String".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the error is gone, but in QV now every value in the timestamp fields is 'System.Byte[]'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We don't need the field anyway. But at least for our QV legacy QVD generators SELECT * is working again. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/System-Byte-Error-when-Loading-Binary-Data-Type/tac-p/2525959#M16208</guid>
      <dc:creator>d-schmidt</dc:creator>
      <dc:date>2025-08-01T08:35:41Z</dc:date>
    </item>
  </channel>
</rss>

