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 :
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,827 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,827 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,797 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,827 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
    301,020 Super User 2025 Season 2 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans