Adding Contacts to an Order - Error Saving Person
Posted: Wed Jan 27, 2010 5:33 pm
I've got a program that programatically adds a Contact to an order. Everything works perfectly for all contact types except one: Hazard Insurance Agent. Adding a new IHazardInsuranceAgent isn't the problem, adding the Person seems to work fine. However, when the record is saved I get the following error:
"Cannot insert the value NULL into column 'OrderContactID' ...."
I've validated that my Person record as an ID (I'm using HazardInsuranceAgent.Person.CreateNew), and the same code works for all the other types with no problems.
Any insight you can provide would be helpful,
Thanks,
"Cannot insert the value NULL into column 'OrderContactID' ...."
I've validated that my Person record as an ID (I'm using HazardInsuranceAgent.Person.CreateNew), and the same code works for all the other types with no problems.
Any insight you can provide would be helpful,
Thanks,