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?

  • André Arnaud de Calavon Profile Picture
    293,274 Super User 2025 Season 1 on at
    RE: Cannot Create New Legal Entity

    Hi Irshad,

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

  • Irshad Speaks Profile Picture
    166 on at
    RE: Cannot Create New Legal Entity

    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.

  • GirishS Profile Picture
    27,823 Moderator on at
    RE: Cannot Create New Legal Entity

    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
    RE: Cannot Create New Legal Entity

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

  • Irshad Speaks Profile Picture
    166 on at
    RE: Cannot Create New Legal Entity

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

  • Suggested answer
    Ramit Paul Profile Picture
    22,375 Most Valuable Professional on at
    RE: Cannot Create New Legal Entity

    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.

  • GirishS Profile Picture
    27,823 Moderator on at
    RE: Cannot Create New Legal Entity

    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.

  • Irshad Speaks Profile Picture
    166 on at
    RE: Cannot Create New Legal Entity

    Hi Girish,

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

    pastedimage1667205379505v1.png

    Regards,

    Irshad

  • GirishS Profile Picture
    27,823 Moderator on at
    RE: Cannot Create New Legal Entity

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans