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)

Join two tables in Query and View results by creating View

(0) ShareShare
ReportReport
Posted on by 507

Hi all,

I have create a simple query on dept and employee tables on emp.dept_id == dept.dept_id.

Now I have created a view and dragged the simple query to Meta data of view. I have added fields of view from

emp and dept table.

Now if try to open the view it is showing error.

Error:

SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'EMP_NAME'.

It is showing results when fields only  from dept or emp  table  . But when I mix dept and emp table fields following error shown.

4353.ax-error.PNG

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    First of all, make sure that the database in synchronized with your changes in the application.

  • Safeer PS Profile Picture
    507 on at

    I didnt get you..

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

    That will be the problem then...

    Right-click the view and choose Synchronize. That will add your new view to database - you can try to use it before that.

  • Safeer PS Profile Picture
    507 on at

    Now colmns from emp table showing columns from dept shows as "unretrieved"

    ax-error-2.PNG

  • Safeer PS Profile Picture
    507 on at

    OKAY i got iT..

    Thank u ver much

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