<?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: Access DB Macro | Execution fails in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100322#M47656</link>
    <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Yes I am following the sequence as below:-&lt;BR /&gt;&lt;BR /&gt;Set Connection&lt;BR /&gt;Open Connection&lt;BR /&gt;Execute&lt;BR /&gt;Close Connection&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Abhilash M&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Aug 2022 12:26:14 GMT</pubDate>
    <dc:creator>AbhilashM</dc:creator>
    <dc:date>2022-08-23T12:26:14Z</dc:date>
    <item>
      <title>Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100318#M47652</link>
      <description>Hello Dear Blue Prism Community,&lt;BR /&gt;&lt;BR /&gt;I have been sitting on an issue for quite some time now. The issue is straight forward.&lt;BR /&gt;&lt;BR /&gt;The bot tries to execute a macro available in an access database and following is the error:-&lt;BR /&gt;&lt;BR /&gt;ERROR [IM010] [Microsoft][ODBC Driver Manager] Data source name too long&lt;BR /&gt;&lt;BR /&gt;I have tried using OLEDB, ODBC VBOs but still fail to fix the issue.&lt;BR /&gt;Drivers have been verified and installed.&lt;BR /&gt;&lt;BR /&gt;Connection String : Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[FullDBPath];Persist Security Info=False;&lt;BR /&gt;&lt;BR /&gt;Any inputs in this regard will sure be helpful and appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;Abhilash M&lt;BR /&gt;RPA Developer&amp;nbsp;&lt;BR /&gt;Lowe's Companies Inc</description>
      <pubDate>Mon, 22 Aug 2022 14:46:46 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100318#M47652</guid>
      <dc:creator>AbhilashM</dc:creator>
      <dc:date>2022-08-22T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100319#M47653</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/966"&gt;@AbhilashM&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;So you're passing in your connection string. Can you show how you're building the connection string? Are you doing something like this:&lt;BR /&gt;​&lt;span class="lia-inline-image-display-wrapper" image-alt="36439.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36452iB90465DAEC4ECADF/image-size/large?v=v2&amp;amp;px=999" role="button" title="36439.png" alt="36439.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Or do you build it in the actual &lt;EM&gt;&lt;STRONG&gt;Set Connection&lt;/STRONG&gt;&lt;/EM&gt; action like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36440.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36456i29BAA4CE7520BD56/image-size/large?v=v2&amp;amp;px=999" role="button" title="36440.png" alt="36440.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 22 Aug 2022 18:36:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100319#M47653</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-22T18:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100320#M47654</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Here is the connection string formulation and the error I get from the Data - OLEDB object.​&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36441.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36450iB9F595D24B868F49/image-size/large?v=v2&amp;amp;px=999" role="button" title="36441.png" alt="36441.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Error Message:-&lt;BR /&gt;&lt;BR /&gt;Internal : Could not execute code stage because exception thrown by code stage: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Abhilash M</description>
      <pubDate>Mon, 22 Aug 2022 18:56:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100320#M47654</guid>
      <dc:creator>AbhilashM</dc:creator>
      <dc:date>2022-08-22T18:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100321#M47655</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/966"&gt;@AbhilashM&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Ok, so you call &lt;EM&gt;&lt;STRONG&gt;Set Connection&lt;/STRONG&gt;&lt;/EM&gt; first and then did you call the &lt;EM&gt;&lt;STRONG&gt;Open&lt;/STRONG&gt;&lt;/EM&gt; action next, or did you go straight to &lt;EM&gt;&lt;STRONG&gt;Execute&lt;/STRONG&gt;&lt;/EM&gt;? You need to call the &lt;EM&gt;&lt;STRONG&gt;Open&lt;/STRONG&gt; &lt;/EM&gt;action to actually create the connection to the data source. And then when you're done, make sure to call &lt;EM&gt;&lt;STRONG&gt;Close&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric​</description>
      <pubDate>Mon, 22 Aug 2022 19:18:01 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100321#M47655</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-22T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100322#M47656</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Yes I am following the sequence as below:-&lt;BR /&gt;&lt;BR /&gt;Set Connection&lt;BR /&gt;Open Connection&lt;BR /&gt;Execute&lt;BR /&gt;Close Connection&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Abhilash M&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2022 12:26:14 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100322#M47656</guid>
      <dc:creator>AbhilashM</dc:creator>
      <dc:date>2022-08-23T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100323#M47657</link>
      <description>Hi A,&lt;BR /&gt;&lt;BR /&gt;Which of the actions throws you mention (see list below) the error you get?&lt;BR /&gt;&lt;SPAN&gt;Set Connection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Open Connection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Close Connection&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Are you trying to run a &lt;STRONG&gt;macro in Access&lt;/STRONG&gt;?&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;or&lt;/SPAN&gt; &lt;BR /&gt;Are you trying to run an &lt;STRONG&gt;SQL query&lt;/STRONG&gt; in Access?</description>
      <pubDate>Wed, 24 Aug 2022 06:27:46 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100323#M47657</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-08-24T06:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100324#M47658</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;I have implemented using the different VBOs available at our disposal - the error message and at which action is described below.&lt;BR /&gt;&lt;BR /&gt;The bot is trying to execute a macro in the access DB.&lt;BR /&gt;&lt;BR /&gt;Using VBO Data OLEDB&lt;BR /&gt;&lt;BR /&gt;At Execute step : Internal : Could not execute code stage because exception thrown by code stage: Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.&lt;BR /&gt;&lt;BR /&gt;Using ODBC Database Connection&lt;BR /&gt;At Open : ERROR [IM010] [Microsoft][ODBC Driver Manager] Data source name too long&lt;BR /&gt;&lt;BR /&gt;Using Data OLEDB Extended&lt;BR /&gt;At Execute :- Internal : Could not execute code stage because exception thrown by code stage: The Microsoft Access database engine cannot find the input table or query 'Macro_CorpWrite_UpdateBook'. Make sure it exists and that its name is spelled correctly.&lt;BR /&gt;&lt;BR /&gt;The Macro is actually available and is named as is in the DB.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36442.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36451i070418B756EAF775/image-size/large?v=v2&amp;amp;px=999" role="button" title="36442.png" alt="36442.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36443.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36453i8D7BFE3D3DDCAFCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="36443.png" alt="36443.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 24 Aug 2022 11:55:14 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100324#M47658</guid>
      <dc:creator>AbhilashM</dc:creator>
      <dc:date>2022-08-24T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access DB Macro | Execution fails</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100325#M47659</link>
      <description>&lt;SPAN&gt;Hi Abhilash,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;OleDB already provides the answer: "&lt;SPAN&gt;Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;OleDB does not do any other tricks than running an SQL. If you can redefine and reformat your Macro as an SQL, you might be able to apply it. But only the Macro as-is cannot be run on OleDB. Dunno if there's another object that might be able to do that.&lt;BR /&gt;&lt;BR /&gt;Can you provide the Macro code so we can see if it would be viable to make it into an SQL?&lt;BR /&gt;&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden</description>
      <pubDate>Wed, 24 Aug 2022 13:11:05 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Access-DB-Macro-Execution-fails/m-p/100325#M47659</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-08-24T13:11:05Z</dc:date>
    </item>
  </channel>
</rss>

