AX 2012 R3: No Sales Orders Show Up in the All Sales Order List Page

By Tom Branca | January 9, 2015

Ax 2012 r3:  no sales orders show up in the all sales order list page

If you can only see one customer’s sales orders or no sales orders show up in the All Sales Order List Page this blog can help you out. I’ve had this problem multiple times since AX 2012 has come out when using the Contoso Demo Dataset and finally I gave in and figured out why the heck the problem was occurring on my instance.

Here is what I knew:
1. I didn’t have an external relation setup on my user account.
    a. External Relations are what is setup to filter the AX so you can only see you’re customer account records.  This is primarily used with external users.

 

 

All Sales Order List Page

 

2. I didn’t have anything else setup that I thought was going to cause a problem.
Here is what I found:
I started out with finding what class was tied to the SalesTableListPage form and it was a class called SalesTableListPageInteraction.
This class has a method called “InitializeQuery” which kept pushing me down a path on line 8.  I shouldn’t even hit line 8 because I don’t have the external relationship setup which the ‘if condition’ checks for as seen in the screenshot below.

 

Initialize Query

 

I started to dig into where the “IsCustomer” variable is set and I was brought to Classes\EP\isCustomer.  I kept falling into the ‘else’ on line 35 which runs a select statement that checks to see if you have a user account with a user relation setup which I do.  Then it looks to see if that user relation has a customer associated to it which I don’t but the system said I did.

 

Classes Editor

The funny part here is the comment in the code says that it is checking to see if you are a contact person for a customer account.
Anyway, I ran a select statement in SQL and it showed that my user relationship was associated with a customer in USSI which is a company that I had never used.  I took a look in the application at this customer’s account and I didn’t find that I was a contact on the customer or that I had any association with the customer other than in the backend.  I’m going to assume this error is due to data damage or a coincidence with the demo dataset.  I removed the customer from USSI as they had no transactional data and then went back to USMF Company and I could see all the sales orders again.  Woohoo!

Summary: 

If you can only see one customer’s sales orders or zero sales orders when viewing the All Sales Order List Page this blog can help you out.  It points you to the “external relationship” which is where you can setup what customer you are associated with.  Not having an external relationship should give you access to all sales orders.  This article also shows you what classes to look at to help troubleshoot the issue.

Related Posts

Recommended Reading:

Manage U.S. Use Tax on Purchase Orders in Dynamics 365 Finance and Operations

  Managing sales tax requirements on your business purchase can be complicated, but Dynamics 365 Finance and Operations can help […]

Read the Article
5.19.22 Dynamics CRM

How to Write a Great Support Ticket in the Stoneridge Support Portal

Submitting a support ticket through the Stoneridge Support Portal is a quick and effective way to get assistance for any […]

Read the Article

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article
5.5.22 Dynamics GP

The Real Story about the Long-Term Future of Dynamics GP Support

I’ve seen a number of people put forward comment that Dynamics GP is going away and you have to get […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Financial Enhancements

The Dynamics 365 Businses Central 2022 Wave 1 Release has a lot of new and exciting features to help your […]

Read the Article
4.29.22 Dynamics GP

Dynamics GP Transaction Removals: Bank Reconciliation

  This is part 2 of a 3 part series on Dynamics GP Transaction Removals. These quick tips will hopefully […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X