<?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 ODBC--call failed in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/ODBC-call-failed/m-p/84526#M35654</link>
    <description>&lt;SPAN&gt;&lt;SPAN&gt;Hi, I am trying to get data from MS Access into collection using code stage at that time I am facing an issue ODBC--call failed.&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;BR /&gt;I am using the below code.&lt;BR /&gt;&lt;BR /&gt;message="";&lt;BR /&gt;dt = new DataTable();&lt;BR /&gt;isSuccess=true;&lt;BR /&gt;string connStr= Connection_String;&lt;BR /&gt;OleDbConnection conn = new OleDbConnection(connStr);&lt;BR /&gt;OleDbDataAdapter objAdapter = new OleDbDataAdapter();&lt;BR /&gt;try{&lt;BR /&gt;conn.Open();&lt;BR /&gt;OleDbCommand cmd = new OleDbCommand();&lt;BR /&gt;cmd.Connection = conn;&lt;BR /&gt;cmd.CommandType = CommandType.Text;&lt;BR /&gt;cmd.CommandText = Input_Query;&lt;BR /&gt;cmd.CommandTimeout=80000;&lt;BR /&gt;objAdapter.SelectCommand = cmd;&lt;BR /&gt;objAdapter.Fill(dt);&lt;BR /&gt;}&lt;BR /&gt;catch(Exception e)&lt;BR /&gt;{&lt;BR /&gt;isSuccess=false;&lt;BR /&gt;message+=e.Message+e.StackTrace;&lt;BR /&gt;}&lt;BR /&gt;finally{&lt;BR /&gt;conn.Close();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;using the below connection string&lt;BR /&gt;Provider=Microsoft.ACE.OLEDB.12.0;Data Source= [FilePath] ;&lt;BR /&gt;&lt;BR /&gt;Have any of you guys came across this type of issue. If yes, what should be done to avoid this issue.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Deepya Kakumanu&lt;BR /&gt;Program Analyst Trainee&lt;BR /&gt;Cognizant&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Feb 2021 10:59:00 GMT</pubDate>
    <dc:creator>DeepyaKakumanu</dc:creator>
    <dc:date>2021-02-17T10:59:00Z</dc:date>
    <item>
      <title>ODBC--call failed</title>
      <link>https://community.blueprism.com/t5/Product-Forum/ODBC-call-failed/m-p/84526#M35654</link>
      <description>&lt;SPAN&gt;&lt;SPAN&gt;Hi, I am trying to get data from MS Access into collection using code stage at that time I am facing an issue ODBC--call failed.&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;BR /&gt;I am using the below code.&lt;BR /&gt;&lt;BR /&gt;message="";&lt;BR /&gt;dt = new DataTable();&lt;BR /&gt;isSuccess=true;&lt;BR /&gt;string connStr= Connection_String;&lt;BR /&gt;OleDbConnection conn = new OleDbConnection(connStr);&lt;BR /&gt;OleDbDataAdapter objAdapter = new OleDbDataAdapter();&lt;BR /&gt;try{&lt;BR /&gt;conn.Open();&lt;BR /&gt;OleDbCommand cmd = new OleDbCommand();&lt;BR /&gt;cmd.Connection = conn;&lt;BR /&gt;cmd.CommandType = CommandType.Text;&lt;BR /&gt;cmd.CommandText = Input_Query;&lt;BR /&gt;cmd.CommandTimeout=80000;&lt;BR /&gt;objAdapter.SelectCommand = cmd;&lt;BR /&gt;objAdapter.Fill(dt);&lt;BR /&gt;}&lt;BR /&gt;catch(Exception e)&lt;BR /&gt;{&lt;BR /&gt;isSuccess=false;&lt;BR /&gt;message+=e.Message+e.StackTrace;&lt;BR /&gt;}&lt;BR /&gt;finally{&lt;BR /&gt;conn.Close();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;using the below connection string&lt;BR /&gt;Provider=Microsoft.ACE.OLEDB.12.0;Data Source= [FilePath] ;&lt;BR /&gt;&lt;BR /&gt;Have any of you guys came across this type of issue. If yes, what should be done to avoid this issue.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Deepya Kakumanu&lt;BR /&gt;Program Analyst Trainee&lt;BR /&gt;Cognizant&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Feb 2021 10:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/ODBC-call-failed/m-p/84526#M35654</guid>
      <dc:creator>DeepyaKakumanu</dc:creator>
      <dc:date>2021-02-17T10:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: ODBC--call failed</title>
      <link>https://community.blueprism.com/t5/Product-Forum/ODBC-call-failed/m-p/84527#M35655</link>
      <description>Have you tried using Data - OLEDB Business Object to connect MS Access. Provided by Blue Prism officially.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11673.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11844i5C5D6B6FA3AD12B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="11673.png" alt="11673.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if you would like to use ODBC still.&lt;BR /&gt;I think in your post "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= [FilePath] ;", Look like your connection string is using for OLEDB instead of ODBC.&lt;BR /&gt;See also: &lt;BR /&gt;&lt;A href="https://www.connectionstrings.com/microsoft-access-odbc-driver/" target="test_blank"&gt;https://www.connectionstrings.com/microsoft-access-odbc-driver/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.connectionstrings.com/access/" target="test_blank"&gt;https://www.connectionstrings.com/access/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pete Y&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Feb 2021 02:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/ODBC-call-failed/m-p/84527#M35655</guid>
      <dc:creator>pitchaya.yamprai</dc:creator>
      <dc:date>2021-02-18T02:06:00Z</dc:date>
    </item>
  </channel>
</rss>

