- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-07-2011 12:49 PM
I keep getting an error message -Primary Address failed validation- when trying to add a new AR customer when using the API spARapiCustomerIns. I'm adding information into the staging table StgCustomer only. I thought that the address records would be automatically created from this one table. What information is needed for the address to work?
Thanks..
Re: AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-07-2011 01:31 PM
Have you run a trace or reviewed tdmMigrationLogWrk to see where in the validation the error occurred? The stored procedure that validates the address is sparCustAddrVal. Things checked by this procedure are the Action, CustAddrID, PriceAdj, etc. Look over this procedure to ensure you have all the data it is looking for.
e2b teknologies, inc
www.e2btek.com
Re: AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-24-2011 10:07 AM
I've tried the trace and it has no useful information about the error. The Datamigrator pdf says that a primary address will be created from the address entered. What I need is a sample of data that the api is looking for
Re: AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-25-2011 09:33 AM
You need to do a trace showing statements in the stored procedure. That will give you useful information. I suspect that this is somewhat difficult for you based on your other posts. It's likely you can save tons of time by asking your reseller. They'll either have someone on staff who can help or will be able to find someone. I imagine it would only take a couple of hours to find out why it doesn't work.
John
Re: AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-23-2011 08:08 AM
I found the problem. In the AR options for test company 'COA', the box for "Track sales tax on sales" was unchecked.
It looked like the API-(spARapiCustomerIns) was wanting this checked regardless of what was put in the STaxSchID column in the StgCustomer table . I couldn't check the 'COA' company because I keep getting the message "The Track sales tax on sales field cannot be changed with open invoices in process" - different issue. So I changed to test company 'SOA' that had the box checked and the test customer was inserted. Nothing to it!
Re: AR Customer Import error using API - spARapiCus tomerIns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-28-2011 07:26 AM
Hi,
I would like to be able to create customers and vendors from an application I'm building and would like to know what is involved. If you could share how you did this I would be very grateful! It seems simple but a walk through or documentation would be great.
Thanks in advance for your help,
Jamey


