<?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: OLEDB Query execution from data item in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62740#M15790</link>
    <description>Hi Dave&lt;BR /&gt;I have tried all possible scenarios and yes you are correct.&lt;BR /&gt;When i have the query directly within the Get Collection i do have quotations around. But within the data item i'm not placing quotations, calling the data item [Final SQL Section 1] and getting the below error.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not execute code stage because exception thrown by code stage: Syntax error near '(end of line)' on line 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mario Fortunato&lt;BR /&gt;RPA Manager&lt;BR /&gt;FirstRand&lt;BR /&gt;Africa/Windhoek&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Nov 2019 13:01:00 GMT</pubDate>
    <dc:creator>mfortunato</dc:creator>
    <dc:date>2019-11-19T13:01:00Z</dc:date>
    <item>
      <title>OLEDB Query execution from data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62738#M15788</link>
      <description>Dynamically generating a query and placing it within the data item.&lt;BR /&gt;When trying to run the Data - OLEDB --&amp;gt; Get Collection and calling the data item, i get the below error message.&lt;BR /&gt;&lt;BR /&gt;Could not execute code stage because exception thrown by code stage: Syntax error near '(end of line)' on line 1&lt;BR /&gt;&lt;BR /&gt;But if i copy the query from the data item and place it within the Get Collection expression, it works perfectly.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mario Fortunato&lt;BR /&gt;RPA Manager&lt;BR /&gt;FirstRand&lt;BR /&gt;Africa/Windhoek&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62738#M15788</guid>
      <dc:creator>mfortunato</dc:creator>
      <dc:date>2019-11-19T12:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Query execution from data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62739#M15789</link>
      <description>Do you have extra quotations when it's in the data item? You may know this already, but I'll explain just in case.&lt;BR /&gt;&lt;BR /&gt;If you put the Query into the SQL input of the Get Collection action, it has to have quotations around it like "SELECT * FROM tblTable", but if you put it in a data item it should not have the quotes around it but instead should be like SELECT * FROM tblTable.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62739#M15789</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-11-19T12:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Query execution from data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62740#M15790</link>
      <description>Hi Dave&lt;BR /&gt;I have tried all possible scenarios and yes you are correct.&lt;BR /&gt;When i have the query directly within the Get Collection i do have quotations around. But within the data item i'm not placing quotations, calling the data item [Final SQL Section 1] and getting the below error.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not execute code stage because exception thrown by code stage: Syntax error near '(end of line)' on line 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mario Fortunato&lt;BR /&gt;RPA Manager&lt;BR /&gt;FirstRand&lt;BR /&gt;Africa/Windhoek&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62740#M15790</guid>
      <dc:creator>mfortunato</dc:creator>
      <dc:date>2019-11-19T13:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Query execution from data item</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62741#M15791</link>
      <description>The only other thing I can think would involve character escaping. Any chance you could paste your SQL here, and I could try it as well.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Query-execution-from-data-item/m-p/62741#M15791</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-11-19T13:24:00Z</dc:date>
    </item>
  </channel>
</rss>

