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 :
Microsoft Dynamics AX (Archived)

Menu item could not be opened

(0) ShareShare
ReportReport
Posted on by

Hello guys, 

I have just made some adjustments: created new field in form to enter information, updated logic to take the value and save together with other values in HcmEmployment table, as well as creating additional field in that table for the new value. Everything built well, but as I try to access it through client, I get  "The menu item with name hcmworkerlistpage could not be opened". Thanks for ideas in advance.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi!

    Check the menu and menu item

  • Community Member Profile Picture
    on at

    What do you exactly mean by check :) ? I found menu in AOT and all the menuItems (HcmWorkerListPage_Employees, HcmWorkerListPage_Contractors, HcmWorkerListPage_Workers, etc) but they contain nothing. BTW, I cannot open none of them, I think it might be related to the changed HcmEmployment table, since all menuItems use that table.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Does it happen also when you run the menu item from Visual Studio?

    Have you tried to debug the form, such as adding a breakpoint at the beginning of init()?

  • Community Member Profile Picture
    on at

    As I debug, I see that that the created new field in the HcmEmployment table  (WorkerCategory) has some problem, maybe its not visible or smt: [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'WORKERCATEGORY'.

  • Verified answer
    Basheer17 Profile Picture
    2,720 on at

    You might have done it already, but just to confirm have you synchronized the DB after adding the new field?

  • Community Member Profile Picture
    on at

    :/ nooo, I hadn't had synced it, but i have just did it and it works. I am noob and didn't know it :) thanks

  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    To give you some explanation, just adding a field in Visual Studio doesn't automatically change the database. You need the synchronization to apply your changes to database, such as running ALTER TABLE command to add your new field. You can configure VS to run synchronization on build, but it slows down builds, so people usually prefer doing it manually when needed.

    What happened was that the form knew it should display your new field and asked the database for it, but it didn't exist there.

    By the way, when your questions is answered, please close the thread by marking the reply (or replies) containing the answer (using Did this answer your question? > Yes beside replies).

  • Basheer17 Profile Picture
    2,720 on at

    If your issue is resolved. Please mark the answer as verified.

  • Community Member Profile Picture
    on at

    yes :) sorry about that

  • Community Member Profile Picture
    on at

    sure :)

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans