web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

changecompany keyword?

(0) ShareShare
ReportReport
Posted on by 1,000

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)
  • Community Member Profile Picture
    on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans