Question

I am getting an error when adding a customer with contacts. The CustomerAdd method has the following lines to add additional contact:

IContacts Contacts4965=CustomerAddRq.ContactsList.Append();
Contacts4965.Salutation.SetValue("ab");
//Set field value for FirstName
Contacts4965.FirstName.SetValue("ab");
....

When I try to add I get the following error:

20130712.211803 E   1508    XercesSAXErrorHandler   Unknown element 'Contacts' -- error at line 24, column 10 in XML data. 
20130712.211803 I   1508    MsgSetHandler   Parser error, finishing.

Also, as a side note the method has these two lines for adding "AdditionalContactRefList"

IQBBaseRef AdditionalContactRef4966=Contacts4965.AdditionalContactRefList.Append();
AdditionalContactRef4966.ContactName.SetValue("ab");
AdditionalContactRef4966.ContactValue.SetValue("ab");

but in my case I do not have ContactName or ContactValue only fullname is available:

IQBBaseRef AdditionalContactRef4 = Contacts3.AdditionalContactRefList.Append();
AdditionalContactRef4.FullName.SetValue("ab");

So I am guessing that the library and the reference are different versions, but the contact section compiles and generates the error mentioned above. The website refernce has Max SDK Version 12.0 set, and my library has Interop.QBFC12 so it seems to me both are version 12 b so why is there a difference.

Thanks.

Was it helpful?

Solution

There were a number of features included in the QuickBooks SDK 12 which have not yet been implemented in QuickBooks. So they appear in the spec and they compile, but they don't work (this was mentioned in the SDK12 release notes, but we've never gotten full details, to my knowledge). Customer contacts is one of these features. See the legacy SDK forum for a discussion of this issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top