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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Cannot Create New Legal Entity

(0) ShareShare
ReportReport
Posted on by 166

Hi

I am trying to create new legal entity in AX 2012 but 

pastedimage1667202200381v1.png

After clicking at "OK" I got this error.

pastedimage1667202272280v2.png

Any solution for it?

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Irshad Speaks,

    Click on view details of Country region control and check whether it has city setup.

    Also do you have any customization on this form?

    Thanks,

    Girish S.

  • Irshad Speaks Profile Picture
    166 on at

    Hi Girish,

    I did not find anything in country parameters which bind the city.

    pastedimage1667205379505v1.png

    Regards,

    Irshad

  • GirishS Profile Picture
    27,843 Moderator on at

    On the left side you have list of setup - Select "City" and check whether you have city setups.

    Also check if there is any customization done on that form.

    Thanks,

    Girish S.

  • Suggested answer
    Ramit Paul Profile Picture
    22,803 Most Valuable Professional on at

    Hi,

    Girish also mentioned about customization, did you check that?

    Note- the address table is basically same table for customer, vendor address table, hence if you in case customized for vendor and customer city is mandatory in address, there is high chance the same custom code is working in your LE creation address as well.

  • Irshad Speaks Profile Picture
    166 on at

    I've checked and cities are already there. no customization.

  • Irshad Speaks Profile Picture
    166 on at

    from AOT it did not throw any error and new legal entity created.

  • GirishS Profile Picture
    27,843 Moderator on at

    From the AOT means - are you saying creating legal entity via code?

    Try to debug the code and find out the issue. Add a debugger on the OMNewLegalEntityFormView(class) >> okCommandButtonControlClicked(Method name).

    Thanks,

    Girish S.

  • Irshad Speaks Profile Picture
    166 on at

    No, I did not use codes to create company but ran form directly from there and then it did not ask me mandatory city option. let me debug.

  • André Arnaud de Calavon Profile Picture
    303,679 Super User 2026 Season 1 on at

    Hi Irshad,

    Like mentioned above, I think there is somewhere a customization involved. This is not the behavior of the standard application.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans