<?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 Excel - Invalid Sql Statement in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79158#M31099</link>
    <description>Hi Jonathan,&lt;BR /&gt;Good Day!!&lt;BR /&gt;The syntax would be "&lt;STRONG&gt;Select * from [Excel&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Sheet$]".&lt;BR /&gt;&lt;/STRONG&gt;The sheet names would be suffixed with a $ symbol.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rajath G&lt;BR /&gt;Sr. Blueprism Developer&lt;BR /&gt;ITC Infotech&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajath Gopal&lt;BR /&gt;Associate IT Consultant&lt;BR /&gt;ITC Infotech&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;8904867411&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Dec 2019 05:13:00 GMT</pubDate>
    <dc:creator>RajathGopal</dc:creator>
    <dc:date>2019-12-26T05:13:00Z</dc:date>
    <item>
      <title>OLEDB Excel - Invalid Sql Statement</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79156#M31097</link>
      <description>&lt;SPAN&gt;I'm trying to pull a simple ---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select * From [Excel Sheet]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not execute code stage because exception thrown by code stage: Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use various versions of the following statement. With [Excel Sheet] data item being the excel sheet MCDR with a $ after. So [MCDR$]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"select"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"*"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"from"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;amp;"'"&amp;amp;[Excel Sheet]&amp;amp;"'"&amp;amp;"""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Holstine&lt;BR /&gt;Systems Accountant&lt;BR /&gt;Interior Business Center&lt;BR /&gt;America/Denver&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Dec 2019 14:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79156#M31097</guid>
      <dc:creator>JonathanHolstin</dc:creator>
      <dc:date>2019-12-24T14:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Excel - Invalid Sql Statement</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79157#M31098</link>
      <description>&lt;DIV class="uconBody"&gt;&lt;DIV dir="auto"&gt;Hi Jonathan,&lt;DIV dir="auto"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV dir="auto"&gt;Can you please do the get worksheet names first and check is there any difference in worksheet names?&lt;/DIV&gt;&lt;DIV dir="auto"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV dir="auto"&gt;Regards&lt;/DIV&gt;&lt;DIV dir="auto"&gt;Sutirtha Gupta&lt;/DIV&gt;&lt;DIV dir="auto"&gt;TCS,Kolkata&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------Original Message------&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to pull a simple ---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select * From [Excel Sheet]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not execute code stage because exception thrown by code stage: Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use various versions of the following statement. With [Excel Sheet] data item being the excel sheet MCDR with a $ after. So [MCDR$]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"select"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"*"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"from"&amp;amp;NewLine()&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;amp;"'"&amp;amp;[Excel Sheet]&amp;amp;"'"&amp;amp;"""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Holstine&lt;BR /&gt;Systems Accountant&lt;BR /&gt;Interior Business Center&lt;BR /&gt;America/Denver&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2019 03:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79157#M31098</guid>
      <dc:creator>sutirtha.gupta</dc:creator>
      <dc:date>2019-12-26T03:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Excel - Invalid Sql Statement</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79158#M31099</link>
      <description>Hi Jonathan,&lt;BR /&gt;Good Day!!&lt;BR /&gt;The syntax would be "&lt;STRONG&gt;Select * from [Excel&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Sheet$]".&lt;BR /&gt;&lt;/STRONG&gt;The sheet names would be suffixed with a $ symbol.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rajath G&lt;BR /&gt;Sr. Blueprism Developer&lt;BR /&gt;ITC Infotech&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajath Gopal&lt;BR /&gt;Associate IT Consultant&lt;BR /&gt;ITC Infotech&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;8904867411&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2019 05:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79158#M31099</guid>
      <dc:creator>RajathGopal</dc:creator>
      <dc:date>2019-12-26T05:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Excel - Invalid Sql Statement</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79159#M31100</link>
      <description>Thanks Rajath. Looks like it was that simple.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;When I ran it using Microsoft.Jet.OLEDB.4.0 I got it to go through but it could not find the file. I was wondering if that is because I'm on a new version and the Jet appears to be for older excel. In trying to change to the ACE connection I am running into problems of not conforming. Details below. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Could not execute code stage because exception thrown by code stage: Format of the initialization string does not conform to specification starting at index 130.&lt;BR /&gt;&lt;BR /&gt;"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='P:\Libraries\FSB\AOBRobotics\MCC\Invoices - MCDR\NPL CIF MCDR - November 2019.xls';&lt;BR /&gt;Extended Properties='Excel 12.0 Xml;"&lt;BR /&gt;&lt;BR /&gt;Any ideas on this....?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Holstine&lt;BR /&gt;Systems Accountant&lt;BR /&gt;Interior Business Center&lt;BR /&gt;America/Denver&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2019 15:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79159#M31100</guid>
      <dc:creator>JonathanHolstin</dc:creator>
      <dc:date>2019-12-26T15:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: OLEDB Excel - Invalid Sql Statement</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79160#M31101</link>
      <description>&lt;SPAN&gt;Hi Jonathan,&lt;BR /&gt;&lt;/SPAN&gt;Looks like a few parameters are missing in your connection string. Try using the below connection string :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=&lt;STRONG&gt;"FilePath";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extended Properties=""Excel12.0;HDR=Yes;IMEX=1;"""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rajath Gopal&lt;BR /&gt;Associate IT Consultant&lt;BR /&gt;ITC Infotech&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;8904867411&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2019 23:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Excel-Invalid-Sql-Statement/m-p/79160#M31101</guid>
      <dc:creator>RajathGopal</dc:creator>
      <dc:date>2019-12-26T23:25:00Z</dc:date>
    </item>
  </channel>
</rss>

