# TDP crashes when attempting to query Excel

**URL:** <https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [January 22, 2020, 7:18pm UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795 "2020-01-22T19:18:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_mcg](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@b\_mcg](https://forums.toadworld.com/u/b_mcg)\
**Post date:** [January 22, 2020, 7:18pm UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795/1 "2020-01-22T19:18:40Z")

</div>

Toad Data Point 5.1.2.166 (64 bit)

Using TDP I am able to successfully connect to Excel data sources and create a visual query in the query builder, but when I attempt to execute the query I receive the following Windows error and then TDP closes:

"Toad Data Point has stopped working  
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

I have already tried uninstalling and reinstalling with no luck. Any other ideas?

![image](https://global.discourse-cdn.com/quest/original/2X/4/45b24593d4a6638289809cea3962f217e2e818f3.png)

---

<div class="post-metadata">

**Author:** ![Filip.Cevela](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/filip.cevela/32/200_2.png) [@Filip.Cevela](https://forums.toadworld.com/u/Filip.Cevela)\
**Post date:** [January 23, 2020, 11:17am UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795/2 "2020-01-23T11:17:49Z")

</div>

Can you tell me what Office version and what bitness do you have?

Also, can you describe to me a little bit more your query? Are you using some joins or some conditions?  
If TDP crash without any exception you should be able to see error in Event Viewer which is part operation system.  
Filip

---

<div class="post-metadata">

**Author:** ![b\_mcg](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@b\_mcg](https://forums.toadworld.com/u/b_mcg)\
**Post date:** [January 23, 2020, 2:44pm UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795/3 "2020-01-23T14:44:53Z")

</div>

Office 2016, 64 bit

For troubleshooting purposes, I am attempting a very simple query, no joins or filter conditions (though the more typical "real world" use case would be a cross-connection query with Oracle db).

Event Viewer lists two associated events:

**.NET Runtime**  
Application: toad.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: System.AccessViolationException  
at Quest.Toad.NativeOdbc.OdbcAPI.SQLDriverConnectW(Quest.Toad.NativeOdbc.OdbcHandle, IntPtr, System.String, Int16, System.Text.StringBuilder, Int16, Int16 ByRef, DRIVER\_COMPLETION\_MODES)  
at Quest.Toad.NativeOdbc.OdbcDriverManager.PerformConnectionWithCompletionMode(Quest.Toad.NativeOdbc.OdbcHandle, IntPtr, System.String, DRIVER\_COMPLETION\_MODES)

Exception Info: Quest.Toad.Exceptions.DatabaseException  
at Quest.Toad.NativeOdbc.OdbcDriverManager.PerformConnectionWithCompletionMode(Quest.Toad.NativeOdbc.OdbcHandle, IntPtr, System.String, DRIVER\_COMPLETION\_MODES)  
at Quest.Toad.NativeOdbc.NativeOdbcConnection.Open()  
at Quest.Toad.NativeOdbc.NativeOdbcConnection.GetSupportedDataTypes()  
at Quest.Toad.NativeOdbc.UnManagedColumnDescriptor.get\_DatabaseType()  
at Quest.Toad.Db.Connection.CreateTable(System.Data.IDataReader, Quest.FastData.FastReadOptions)  
at Quest.Toad.Db.ToadDataAdapter.InternalReadBackground()  
at Quest.Toad.Db.ToadDataAdapter.InternalFillBackground()  
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)  
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)  
at System.Threading.ThreadHelper.ThreadStart()

**Application Error**  
Faulting application name: toad.exe, version: 5.1.2.166, time stamp: 0x5dd270a3  
Faulting module name: KERNELBASE.dll, version: 10.0.18362.418, time stamp: 0xfba22159  
Exception code: 0xe0434352  
Fault offset: 0x000000000003a839  
Faulting process id: 0x2724  
Faulting application start time: 0x01d5d1fae581d805  
Faulting application path: C:\Program Files\Quest Software\Toad Data Point 5.1\toad.exe  
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll  
Report Id: e26637cd-3838-46fc-bfd9-4b631d899152  
Faulting package full name:  
Faulting package-relative application ID:

---

<div class="post-metadata">

**Author:** ![Filip.Cevela](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/filip.cevela/32/200_2.png) [@Filip.Cevela](https://forums.toadworld.com/u/Filip.Cevela)\
**Post date:** [January 24, 2020, 11:16am UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795/4 "2020-01-24T11:16:13Z")

</div>

From the error you send me it looks like there is some issue with ODBC driver. This driver is installed with your office and Toad using it for get data from your workbook.

You can check your ODBC driver in system first:  
 ![image](https://global.discourse-cdn.com/quest/original/2X/b/b075981ec62dfe49300e1476fea69a9a9aa48564.png)

Then you can try Office installer and check if you check ODBC driver and .NET Programmability Support.  
Filip

---

<div class="post-metadata">

**Author:** ![b\_mcg](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@b\_mcg](https://forums.toadworld.com/u/b_mcg)\
**Post date:** [January 27, 2020, 8:16pm UTC](https://forums.toadworld.com/t/tdp-crashes-when-attempting-to-query-excel/48795/5 "2020-01-27T20:16:10Z")

</div>

ODBC and .NET seemed fine as far as I could tell.

Research on KERNELBASE.dll error led me to eventually reset Windows via Recovery in Settings. This appears to have fixed the problem.
