Skip to main content
Solved

Quickbooks to Sql Server Replication Error

  • May 24, 2024
  • 10 replies
  • 192 views

Forum|alt.badge.img

Hi all,

I am receiving an error when I am trying to replicate a table from QuickBooks to a local SQL Server.

“[0] Failed to cache row [126934] The iteratorID "{4853b873-e75a-4f1a-a4d6-2c32253237ad}" is not valid.”

See the screenshot below. To try and address this I have: 

  1. Decreased the Pagesize property in my Quickbooks connection to 50 from 500.
  2. Enabled Persistent connections and increased the idle timeout in my Quickbooks Remote Connector from 30 to 120.

I restarted the services but none of that worked. Any suggestions?

 

 

Best answer by Ankit Singh

Hey @SalD 

This will require some investigation. Why don’t you raise a Tech Support Case with our support team along with verbose logs and screenshots at CData - Support Form?

From the prima facie, maybe reducing the Page Size on your QuickBooks connection will help.

This topic has been closed for replies.

10 replies

Forum|alt.badge.img+1

Is this a local Quickbooks database/file, or is it Quickbooks Online?

The fact that it ran for 22 minutes before failing would seem to suggest that it was partially complete before failing.  Do any rows at all get loaded?

If it’s Quickbooks Online, does QB give you any control over (or describe) the timeout period on their end?


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

Hi DougN, thank you for the quick response. It is the QuickBooks desktop. The QB, SQL Server, and CData Sync are all on the same virtual machine. The table is empty after the error. I am rerunning it once again with verbose messaging to see if I can provide a better idea of what is going on.


Forum|alt.badge.img+1

Will it load any other tables from the QB file successfully?

Be sure nobody has the file open in QB…

 


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

Yes, one of the tables was successfully loaded. The Accounts table with 479 rows was loaded, then the next 3 with 80k to 200k rows failed with the same iteratorID error for each table.

 


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

As you can see replication attempt managed to create the tables in SQL Server, but other than Accounts, the others are empty.

The file is not opened by anyone else.


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

I made one more change when I turned on verbose. It allowed me to turn on parallel processing with 2 worker pool. So far it has not errored out. Still going… I hope I haven’t jinxed myself. I’ll update with results: 

 

 


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

Hmm it shows as 0 rows affected. We shall see: 

 


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 24, 2024

😔

 

 


Ankit Singh
Forum|alt.badge.img+1
  • Employee
  • Answer
  • May 27, 2024

Hey @SalD 

This will require some investigation. Why don’t you raise a Tech Support Case with our support team along with verbose logs and screenshots at CData - Support Form?

From the prima facie, maybe reducing the Page Size on your QuickBooks connection will help.


Forum|alt.badge.img
  • Author
  • Enthusiast
  • May 27, 2024

Hi Ankit, I did reduce the page size, that was the first troubleshooting step I took. It is in my first post above. Should I reduce it lower than 50?

 

I have submitted a support ticket and am waiting for support to respond. Thanks.