<?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: How to solve conversion error when loading from qvd with QlikviewComponents? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777406#M1046722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check your SQL Code? Did you run your SQL query on the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 12:20:24 GMT</pubDate>
    <dc:creator>qlikconsultant</dc:creator>
    <dc:date>2014-11-24T12:20:24Z</dc:date>
    <item>
      <title>How to solve conversion error when loading from qvd with QlikviewComponents?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777405#M1046721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use an incremental load to reduce my loading time.&lt;BR /&gt;To accomplish this I am using Qlikview Components v9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The very first load is executed succesfully (i.e the first creation of the QVD).&lt;/P&gt;&lt;P&gt;When I reload a second time, I get the following message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="padding-left: 30px;"&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;SQL SELECT *&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;FROM GTISMVREPL.dbo."JOBCALL_ABNAMRO" WHERE JOBCALL_JOB_DATE &amp;gt;='19-11-14'&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;How can I resolve this?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14164011839915388" jivemacro_uid="_14164011839915388"&gt;
&lt;P&gt;SET Qvc.Loader.v.QvdDirectory= 'qvd';&lt;/P&gt;
&lt;P&gt;LET Qvc.Loader.v.BaseValue = Num(MakeDate(2014));&lt;/P&gt;
&lt;P&gt;SET Qvc.Loader.v.ModField.Type=Datetime;&lt;/P&gt;
&lt;P&gt;SET Qvc.Loader.v.StoreMaxModFieldValue = 0;&lt;/P&gt;
&lt;P&gt;SET Qvc.Loader.v.DatabaseDatetimeMask = 'D-M-Y';&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14164012764981171" jivemacro_uid="_14164012764981171"&gt;
&lt;P&gt;CALL Qvc.IncrementalSetup ('Meldingen_SMV', 'JOBCALL_JOB_DATE', '%Melding.ID');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=True;User ID=QlikViewABNAMRO;Initial Catalog=GTISMVREPL;Data Source=ARN-BBA-S002;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=N31006334;Use Encryption for Data=False;Tag with column collation when possible=False] (XPassword is ************);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[$(Qvc.Loader.v.Tablename)]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber(JOBCALL_JOB_NR &amp;amp; ' ' &amp;amp; JOBCALL_JOB_DATE) as %Melding.ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; JOBCALL_JOB_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; JOBCALL_JOB_NR as [Melding.Nummer SMV],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Floor(JOBCALL_CALL_DATE)) as [Melding.Datum verstuurd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Time(Frac(JOBCALL_CALL_DATE)) as [Melding.Tijd verstuurd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(JOBCALL_CALL_DATE, 'DD-MM-YYYY hh:mm:ss') as [Melding.Moment verstuurd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Floor(JOBCALL_REACTION_DATE)) as [Melding.Datum geaccepteerd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Time(Frac(JOBCALL_REACTION_DATE)) as [Melding.Tijd geaccepteerd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Timestamp(JOBCALL_REACTION_DATE, 'DD-MM-YYYY hh:mm:ss') as [Melding.Moment geaccepteerd];&lt;/P&gt;
&lt;P&gt;SQL SELECT *&lt;/P&gt;
&lt;P&gt;FROM GTISMVREPL.dbo."JOBCALL_ABNAMRO" WHERE $(Qvc.Loader.v.IncrementalExpression);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CALL Qvc.IncrementalStore&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD * &lt;/P&gt;
&lt;P&gt;FROM $(QVD_DIR)\Meldingen_SMV.qvd(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[Map.Melding.Moment_verstuurd]:&lt;/P&gt;
&lt;P&gt;MAPPING LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Melding.Nummer SMV],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Melding.Moment verstuurd]&lt;/P&gt;
&lt;P&gt;RESIDENT [Meldingen_SMV];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 12:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777405#M1046721</guid>
      <dc:creator />
      <dc:date>2014-11-19T12:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve conversion error when loading from qvd with QlikviewComponents?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777406#M1046722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check your SQL Code? Did you run your SQL query on the database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777406#M1046722</guid>
      <dc:creator>qlikconsultant</dc:creator>
      <dc:date>2014-11-24T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve conversion error when loading from qvd with QlikviewComponents?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777407#M1046723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.7272720336914px; color: #3d3d3d; font-family: 'courier new', monospace;"&gt;SET Qvc.Loader.v.&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', monospace; font-size: 12.7272720336914px; line-height: 1.5em;"&gt;DatabaseDatetimeMask = 'D-M-Y';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', monospace; font-size: 12.7272720336914px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', monospace; font-size: 12.7272720336914px; line-height: 1.5em;"&gt;Defines the literal format that the database uses, not the Qlikview Application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', monospace; font-size: 12.7272720336914px; line-height: 1.5em;"&gt;After removing this line, the error is no more.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-solve-conversion-error-when-loading-from-qvd-with/m-p/777407#M1046723</guid>
      <dc:creator />
      <dc:date>2014-11-24T12:25:37Z</dc:date>
    </item>
  </channel>
</rss>

