When adding a customer using code the address is forced to be 'real'

When adding a customer through code like this:

IDOUpdateItem uItem = null;
UpdateCollectionRequestData request = new UpdateCollectionRequestData("SLCustomers");
uItem = new IDOUpdateItem(UpdateAction.Insert);

uItem.SetOrAdd("CustNum", NewCustNum, true);
uItem.SetOrAdd("CustSeq", 0, true);
uItem.SetOrAdd("Name", Name, true);
uItem.SetOrAdd("Addr_1", Addr1, true);
uItem.SetOrAdd("Addr_2", Addr2, true);
uItem.SetOrAdd("City", City, true);
uItem.SetOrAdd("Country", SLCountry, true);
uItem.SetOrAdd("State", State, true);
uItem.SetOrAdd("Zip", Postal, true);
uItem.SetOrAdd("CurrCode", Currency, true);
uItem.SetOrAdd("TaxCode1", TaxCode1, true);
uItem.SetOrAdd("TaxCode2", TaxCode2, true);


request.Items.Add(uItem);
this.Context.Commands.UpdateCollection(request);

I get thrown an error if the address is not a real address (if the address is a real address the above code works fine), for example a dummy city like 'test city' returns an error 'The city could not be determined.' and the customer is not added.  When adding a customer through the user interface it allows bad addresses.  Is there a flag or something I need to set to avoid forcing the address to be a 'real' address?

Parents Reply Children
No Data