Hi,
I have written a customized logic to update the existing address (with reference of location Id) of the customer from AIF document service. And it works fine when i pass the xml from the SOAP UI and debug in visual studio. I can see the values are getting updated in the logistics postal address in DirParty.CreateorUpdate method, It goes to the update method. But If i remove the debugger and run the SOAP UI with same data. it throw me error "Cannot create record in addresses(LogisticsPostalAddress). Location: Line delivery address,by Centre, 81,Newgate street,london %1,EC1A 7AJ."please help me to find the solution and answer for my three questions.
1). if i debug the postaladress.update() code executes in the dirparty.createorupdate method and the address is getting update perfectly. but without debugger for the same xml data why it try to insert, because the error is something about insert.
2). Why it works perfectly while debugging and i get the error only when i run without debugger and the xml data i pass in the both cases are same.
3). Why the error shows %1 instead of country name(Ex:united kingdom). In AX work space if i go to the customer address the addresses has the value United kingdom, but in the database it is storing as the country name as %1 in the logisticspostaladdress.address field. Please help me out to fix this issue.
We have done Full compile, Full CIL after clearing the XPPIL folder, sync, cache refresh, AOS restart and Service registration etc. .
Version: AX2012 R3.
Thanks,
Muhil