Problem Description:
We modified an invoice in QuickBooks and we are trying to get the data out in Excel, but QODBC gives us the old data still.
Why?
Solutions:
I would like to inform you that QODBC failed to return full records is usually caused by either corruption of QODBC optimizer file. I would like to inform you that Optimizer file may be corrupted if you are killing process or query while optimizer file is building. It is not advisable to kill query while it is in execution.
I kindly request you to please reset the optimizer to solve the problem.
1) Close all other applications that use QODBC.
2) Turn off QODBC optimizer (QODBC Setup Screen->”Optimizer” tab->Uncheck “Use optimizer” option)
3) Find the file with .opt extension at the path you had assigned to QODBC optimizer and delete the optimizer file.
(The default path is %UserProfile%\QODBC Driver for QuickBooks\Optimizer)
You can find optimizer folder path from QODBC Setup Screen->”Optimizer” tab. Please copy this path & navigate to this path & delete .opt file.
Or
You can directly delete .opt file from:
Start>>All Programs>> QODBC Driver for use with QuickBooks>>QODBC Setup Screen>>”Optimizer” tab>>Click "Reset Optimizer File(s)".
4) Turn on QODBC optimizer (QODBC Setup Screen->”Optimizer” tab->Check “Use optimizer” option)
5) After turning on optimizer, please run below command in VB Demo:
sp_optimizefullsync All
This command will bring some data to a local cache to increase retrieval performance for queries. I would like to suggest you to please let run above command completely. Above command may take sometime depends on your records in QuickBooks. It may take 2-5 hours or more depends on the number of records in QuickBooks company file. Please let this command run completely do not kill this command. It is not advisable to kill/close the application while its building the Optimizer file.
6) Please test again to see if the problem is still there.
7) After completing above steps, please test data from VB Demo application. If you are able to get updated data, then please refresh excel sheet so you can get updated data.