
Hey everyone
I'm trying to set up some of the base data in a new, multi company install of AX. When I try and add an address format in any of the companies I get the message :
Cannot create a record in Address format (AddressFormatHeading).
Insert operations are not allowed across companies. Please use changecompany keyword to change the current company before inserting the record.
I've tried using the Tools, Options, Usage Data, Reset, and it doesn't make any difference.
Any ideas what's causing this, and how to get around it?
Thanks, Allison.
*This post is locked for comments
I have the same question (0)I think it may relate to a bug as i faced a similar situation in a bit different case. AX throws this error when you insert/update records in different companies using the same table buffer. To fix this you may have to do a bit customization, though not sure if you have some work arround other than this.
In my situation it was a different case, i was inserting the records through code in multiple compinies using the same table buffer and i had to assing null to the table buffer after switching the company to resolve this issue as it was not assigning the buffer to null as expected.