Intermittent "[ProvideX][ODBC Driver]Internal error"

I am encountering an intermittent "[ProvideX][ODBC Driver]Internal error" within an Excel workbook containing several worksheets, each of which contains a Microsoft Query (MSQuery) to various Sage 100 Advanced v. 2019 PU 2 files/tables. The query results from each of the worksheets to the right of the first (the master) are pulled into the master via VLOOKUP or INDEX-MATCH. From day to day, after running MRP Generation, I open the most recent Excel workbook and refresh the data on each of the worksheets from right to left.

Every so often, and for no appreant reason, I encounter the "Internal error" message cited above. Sometimes, I am able to close Excel, reopen the workbook, and proceed without error. At other times, I am not able to get past the error by this method, but, while the workbook is still open, I am able to access the data by simply opening MSQuery and running the query without changing anything. But I am still not able to return the results to the corresponding Excel worksheet.

Today, I even restarted Windows 10 to see if that would resolve the problem, but it didn't.

This particular error seems not to be documented in the Knowledgebase or Sage City. Any help will be appreciated. Thank you!

Doug

  • The SOTAMAS90 DSN is ok but can't handle anything complex. Best thing to do link the tables in Access or use Pass Through Queries and then base your Excel files on the Access database.

  • MRP is old framework.  I haven't worked with that module before but had to do some work-around processes for custom reports based on WO tables (which is / was also old framework) because old framework files are a less-than-optimal design. 

    BigLouie's MS Access / PTQ suggestion is good... personally I prefer setting up mirror tables in SQL Express using linked tables, but whatever works for you.

  • With PowerQuery in Excel and the issues with the providex odbc driver not being able to efficiently handle large tables when more than one table is involved, i find it best to only query a single table into a worksheet, repeat as need for each table you need so they are each on their own sheet.  Limit columns and apply filters if applicable to limit amount of data returned to excel.  If complex filters are required or you need to wait until another point, that is fine.  Just make sure you only query one table per sheet.  Then you can use PowerQuery to merge the returned data and apply grouping, sorting, filters, aggregates, left/right joins, etc all through PowerQuery.

    Another issue you might be encountering is that a lot of those legacy files can be locked by certain sage 100 tasks so you might need to narrow down which task might be causing it by looking at Master Console when the error occurs.

  • Thanks everyone for your replies. I intend to act on your advice. For now, I'm happy to report that, though the errors still occurred just before running MRP Generation tonight, the ProvideX ODBC driver internal errors disappeared when refreshing the queries right after MRP Generation.