Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Table does not exist error

(0) ShareShare
ReportReport
Posted on by

Hello guys, 

my project has model that extends Application Suite package, but in the same solution I have to customize different package, so I created a project with different model that extends that Directory package. The problem is that this second project has table (DirPerson) that references to other (CustomMade) table, but DirPerson cannot see it as I build the solution and throws an error. Do I have to deploy it in someway or what? Thanks in advance for your ideas.

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    233,626 Most Valuable Professional on at
    RE: Table does not exist error

    Thank you for the explanation. Talking about creating a new model inside a package as "extending a package" is confusing, because that's a customization - an extension is the other approach (creating a separate package and create a reference).

    So you have Model1 inside Application Suite package and Model2 inside Directory package. Now you want refer from the Directory package to a table defined in Application Suite package.

    If you look at references between those packages, you'll find that Application Suite depends on Directory, therefore Application Suite can use all objects from Directory, but not the other way around. The Directory packages knows nothing about existence of Application Suite and can't access anything defined there.

    You can't solve it by changing references between packages. Now they're logically correct, so there is nothing to fix, and if VS allowed you to add the circular reference, the solution couldn't ever be built (compiling Directory would require compiling Application Suite first, which would require compiling Directory first, which would require compiling Application Suite...).

    What you have to fix is the flaw in your architecture. If you need accessing objects from the Application Suite package, you can't ever do it from the Directory package. Move your code to a custom package referring to Application Suite or (if necessary) to Application Suite package itself.

  • Community Member Profile Picture
    on at
    RE: Table does not exist error

    Martin, yes these are customizations, I just don't know how its properly called, the first model is in Application Suite package

  • Community Member Profile Picture
    on at
    RE: Table does not exist error

    :) but I have already referenced Directory from Application Suite model. And both models are the same layer VAR if it matters.

  • Basheer17 Profile Picture
    2,720 on at
    RE: Table does not exist error

    Application Suite refers Directory, Directory can't refer Appliction Suite. :)

  • Community Member Profile Picture
    on at
    RE: Table does not exist error

    I have just noticed that in Directory package model there is even no reference to Application Suite package available

  • Suggested answer
    Basheer17 Profile Picture
    2,720 on at
    RE: Table does not exist error

    Reason could be you are trying to access model elements from higher package in model present in lower package.

    Please refer ax.help.dynamics.com/.../understanding-the-model-split

    community.dynamics.com/.../ax-7-breaking-dependencies-part-1

  • Community Member Profile Picture
    on at
    RE: Table does not exist error

    I have a solution with 2 projects: first one uses a model that extends Application Suite package, the other project uses a model that extends Directory package.

  • Martin Dráb Profile Picture
    233,626 Most Valuable Professional on at
    RE: Table does not exist error

    The model name in your last reply suggests that it's a customization. I'll call it Model2 - it's inside the Directory package, correct?

    What about your first model?

  • Martin Dráb Profile Picture
    233,626 Most Valuable Professional on at
    RE: Table does not exist error

    I'm struggling to understand how your packages look like. When you say that you extended a package because you need a customization, it sounds like a contradiction to me.

    Do you have separate packages with references to standard packages (extensions) or did you put your models to existing packages (customization)?

  • Community Member Profile Picture
    on at
    RE: Table does not exist error

    Path: [AxEdtInt64/ASC_HcmEmployeePFA_DOS/ReferenceTable]:Table 'ASC_EmployeesPFA_DOS' does not exist. HDD_FieldsMappingProjectsDir_DOS (VAR) [Overlaying Package HRMFDD Directory]

    It seems that it tries to look only in the Directory model, doesn't find it and throws it.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans