Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Error: 3170 Cannot merge list elements.Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Error: 3170 Cannot merge list elements. 
 Author   Message 
  damartman 
  
 Group: Members 
 Posts: 7 
 Joined: 2006-10-27 
 Profile
 Posted : 2006-11-01 14:48:22

This very simple update statement throws an error...

UPDATE Vendor SET Name = CompanyName

[QODBC] Error: 3170 - There was an error when modifying a Vendor list, element "10000-1162316208". QuickBooks error message: Cannot merge list elements.

I cannot get this simple statement to work in the VB Demo or in ColdFusion using <cfquery>

Thanks,
Marty

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-11-01 21:19:01

Sorry, you forgot the WHERE condition. This should work:

UPDATE Vendor SET Name = CompanyName where CompanyName <> Name

 

  Top 
  damartman 
  
 Group: Members 
 Posts: 7 
 Joined: 2006-10-27 
 Profile
 Posted : 2006-11-02 06:30:30

I wish it were that simple, but adding the WHERE clause did not work.  I also tried just updating one record, but it failed as well:

UPDATE  Vendor
SET  Name = CompanyName
WHERE VendorTypeRefListID = 'A0000-1162316191'

Any other ideas why I can't update the name field in the Vendor table?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-11-02 09:08:44

I actually got:

UPDATE Vendor SET Name = CompanyName where CompanyName <> Name

to work last night from home using the Australian version of QuickBooks. But you are correct, operations such as these gave me errors using QuickBooks 2006 Sample Rock Castle Construction sample company file and QODBC v7.00.00.199 at work today:

UPDATE  Vendor
SET  Name = CompanyName
WHERE VendorTypeRefListID = '40000-933272658'

[QODBC] Error: 3190 - Cannot clear the element in the Name field.

UPDATE  Vendor
SET  Name = CompanyName
WHERE name = 'A-2'

[QODBC] Error: 3190 - Cannot clear the element in the Name field.

Even though I got the following to execute without errors, it did not update the Vendor name in QuickBooks:

UPDATE  Vendor
SET  Name = 'A2 Sanitation Service'
WHERE name = 'A-2'

The problem has been logged.

 

  Top 
  KofK 
  
 Group: Members 
 Posts: 43 
 Joined: 2006-04-04 
 Profile
 Posted : 2007-01-30 03:28:06
Is this fixed? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-30 08:40:44

I have run the following statements using QODBC v7.00.00.207 and QuickBooks 2006 Premier (USA version):

UPDATE  Vendor
SET  CompanyName = 'A-2'
WHERE name = 'A-2 Sanitation Service'

UPDATE  Vendor
SET  Name = CompanyName
WHERE name = 'A-2 Sanitation Service'

UPDATE  Vendor
SET  Name = CompanyName
WHERE name = 'A-2'

UPDATE  Vendor
SET  Name = 'A2 Sanitation Service'
WHERE name = 'A-2'

and all ran without error and correctly executed the changes in my company file.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to