<?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: QVD Generator Non Select Query in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612508#M4299</link>
    <description>&lt;P&gt;Does the stored procedure return anything? I wonder if it returning something it is forgoing the '&lt;SPAN class="code"&gt;_skip_loading (string __empty_field)'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="code"&gt;In the meantime you could do two things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. Update the stored proc to return the table at the end.&lt;/P&gt;&lt;P&gt;2. Though it is kind of hacky, you could skip the error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set ErrorMode = 0;

SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors !EXECUTE_NON_SELECT_QUERY;

Set ErrorMode = 1;

Invoices:

Load * ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 15:07:20 GMT</pubDate>
    <dc:creator>treysmithdev</dc:creator>
    <dc:date>2019-08-14T15:07:20Z</dc:date>
    <item>
      <title>QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1610751#M4285</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a simple QVD generator app that works perfectly while in the Qlik Desktop Client but when I run it within the QMC, it errors. Here are the details.&lt;/P&gt;&lt;P&gt;This is on the April 2019 release.&lt;/P&gt;&lt;P&gt;There are two parts to the load script. The first is to run an ETL stored procedure in SQL Server:&lt;/P&gt;&lt;P&gt;LIB Connect To DB;&lt;/P&gt;&lt;P&gt;SQL EXECUTE sp_RevRecLoadInvoices&lt;BR /&gt;!EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;The second part loads the results from a table into QVD:&lt;/P&gt;&lt;P&gt;Invoices:&lt;BR /&gt;Load *;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM dbo.Invoices;&lt;BR /&gt;STORE Syringes INTO [lib://FileSystem/Invoices.qvd] (qvd);&lt;BR /&gt;DROP TABLE Invoices;&lt;/P&gt;&lt;P&gt;This works perfectly in the Desktop Client. When I load it into the QMC and try to run it, I get the following error:&lt;/P&gt;&lt;P&gt;2019-08-07 23:19:27 0026 !EXECUTE_NON_SELECT_QUERY&lt;BR /&gt;2019-08-07 23:19:27 Error: Connector reply error: SQL##f - SqlState: 37000, ErrorCode: 102, ErrorMsg: [Microsoft][SQL Server Native Client 11.0][SQL Server]I&lt;STRONG&gt;ncorrect syntax near '!'.&lt;/STRONG&gt;&lt;BR /&gt;2019-08-07 23:19:27 Execution Failed&lt;BR /&gt;2019-08-07 23:19:27 Execution finished.&lt;/P&gt;&lt;P&gt;On both the desktop and server I made sure that the value for running non select queries was set within the&amp;nbsp;QvOdbcConnectorPackage.exe.config file.&lt;/P&gt;&lt;P&gt;&amp;lt;appSettings&amp;gt;&lt;BR /&gt;&amp;lt;add key=&lt;STRONG&gt;"allow-nonselect-queries" value="True"&lt;/STRONG&gt; /&amp;gt;&lt;/P&gt;&lt;P&gt;On existing forum posts and online documentation, I did not ready anything that the syntax would be different on the server.&lt;/P&gt;&lt;P&gt;Your help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 20:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1610751#M4285</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2021-12-28T20:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612216#M4292</link>
      <description>&lt;P&gt;Have you tried restarting the Qlik services since changing the settings file?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 02:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612216#M4292</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-08-14T02:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612333#M4294</link>
      <description>&lt;P&gt;Hi Brandonblaine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has you cheked this points?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/ODBC_connector_help/Content/Connectors_ODBC/How-to-load-without-SELECT.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/ODBC_connector_help/Content/Connectors_ODBC/How-to-load-without-SELECT.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Juan P Barroso&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 10:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612333#M4294</guid>
      <dc:creator>jubarrosor</dc:creator>
      <dc:date>2019-08-14T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612481#M4296</link>
      <description>&lt;P&gt;Hi yes. I mentioned in my original post&amp;nbsp; that I had made sure the config file was setup.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612481#M4296</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-14T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612482#M4297</link>
      <description>&lt;P&gt;I will try that next. Thanks for the suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612482#M4297</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-14T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612497#M4298</link>
      <description>&lt;P&gt;I restarted the server and there is some progress. The new error is:&lt;/P&gt;&lt;P&gt;22019-08-14 14:52:53 0030 SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors&lt;BR /&gt;2019-08-14 14:53:29 1 fields found: *,&lt;BR /&gt;2019-08-14 14:53:29 &lt;STRONG&gt;Error: QVX_UNEXPECTED_END_OF_DATA: Unable to get column information for the fields that are used in the query:&lt;/STRONG&gt;&lt;BR /&gt;2019-08-14 14:53:29 Object reference not set to an instance of an object.&lt;BR /&gt;2019-08-14 14:53:29 Execution Failed&lt;BR /&gt;2019-08-14 14:53:29 Execution finished.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So it successfully ran the procedure but then failed when it thought it needed a result set.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612497#M4298</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-14T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612508#M4299</link>
      <description>&lt;P&gt;Does the stored procedure return anything? I wonder if it returning something it is forgoing the '&lt;SPAN class="code"&gt;_skip_loading (string __empty_field)'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="code"&gt;In the meantime you could do two things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. Update the stored proc to return the table at the end.&lt;/P&gt;&lt;P&gt;2. Though it is kind of hacky, you could skip the error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set ErrorMode = 0;

SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors !EXECUTE_NON_SELECT_QUERY;

Set ErrorMode = 1;

Invoices:

Load * ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 15:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612508#M4299</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2019-08-14T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612512#M4300</link>
      <description>&lt;P&gt;Smart. I'll let you know what happens.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 15:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612512#M4300</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-14T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612678#M4303</link>
      <description>LIB Connect To CPRSQL_Live;&lt;BR /&gt;SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors;&lt;BR /&gt;&lt;BR /&gt;And, it worked! Makes no sense. I need to test a few more times with other apps before I call it good. I'm pretty sure that won't work in the desktop client. We'll see.</description>
      <pubDate>Thu, 15 Aug 2019 00:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612678#M4303</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-15T00:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Generator Non Select Query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612679#M4304</link>
      <description>&lt;P&gt;This is really strange...&lt;/P&gt;&lt;P&gt;Within the same app,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; LIB Connect To CPRSQL_Live;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SQL EXECUTE ais.sp_RevRecLoadInvoiceFirstPayment;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; //!EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; LIB Connect To SQLProd1_Live;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;//!EXECUTE_NON_SELECT_QUERY;&lt;/P&gt;&lt;P&gt;The first call finishes just fine and the second gets the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 2019-08-15 00:38:08 1 fields found: *,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2019-08-15 00:38:08 Error: QVX_UNEXPECTED_END_OF_DATA: Unable to get column information for the fields that are&amp;nbsp; &amp;nbsp; &amp;nbsp;used in the query:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;2019-08-15 00:38:08 Object reference not set to an instance of an object.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2019-08-15 00:38:08 Execution Failed&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 2019-08-15 00:38:08 Execution finished.&lt;/P&gt;&lt;P&gt;I made sure I had&amp;nbsp;SET NOCOUNT ON; and when I run it in SSDT, it doesn't return anything.&lt;/P&gt;&lt;P&gt;So I tried this. At the end of the stored procedure I added:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT 'Finished' AS Field&lt;/P&gt;&lt;P&gt;And then changed the load script to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;TempPerDiemPayers:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Load *;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SQL EXECUTE Qlikdb.ais.sp_LoadPerDiemPayors;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Drop Table TempPerDiemPayers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then it worked. It is two different database servers that this script is using but I would think that should't matter.&lt;/P&gt;&lt;P&gt;Frustrating to spend a lot of time figuring out the glitches. Is the latest release better?&lt;/P&gt;&lt;P&gt;I'll make do until we get our new ETL tool stood up. We are looking at MuleSoft. Then the challenge will be to set the dependencies between MuleSoft and the QMC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone who has chimed in. I appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 00:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/QVD-Generator-Non-Select-Query/m-p/1612679#M4304</guid>
      <dc:creator>brandonblaine</dc:creator>
      <dc:date>2019-08-15T00:50:53Z</dc:date>
    </item>
  </channel>
</rss>

