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

by | Updated August 15, 2016 | Dynamics AX

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

6 Comments

  1. Kathy

    THANK YOU!!! I have just spent the last 4 hours doing everything in my power to figure out why my user could not see sales orders. I was almost to the point of deleting him out of AX and adding him back in again, but then we’d have to set him up as a new user and he’d lose all his personalizations, etc.. I thought it might be something with relationships, but when I looked at his employee record, it showed no external relationships. That code really helped me find out where the problem was. I was not able to delete the customer or the contact record, but I just changed the expiration date on his contact relationship record and that fixed it. Again, really appreciate you posting this!

  2. Brandon Carmichael

    Hi Kathy,

    Thank you for the comment, it is nice to hear that our blog articles were able to help you out.
    Cheers,
    Brandon

  3. Marijn

    And what was the SQL statement??

  4. Brandon Carmichael

    Hello Marijn,

    Hello, after talking with Tom, he stated all he did was refactored the select statement that he highlighted in the blog, for an employee.

    Thanks,
    Brandon

  5. Anna Petersen

    Thank you SO MUCH! This saved me countless hours of frustration when we hired someone who used to work for one of our customers and could not figure out why they couldnt see any sales orders

  6. Leah Baker

    Very glad this blog was able to help you out! Thanks for reading.

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

july

01jul11:00 am12:00 pmConfab Live with Stoneridge – Dataverse Virtual Entities

14jul12:00 pm12:30 pmBeyond Reporting - What Business Intelligence Can Do For Your Agribusiness

15jul10:00 am11:00 amMastering the Production Floor

21jul10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

21jul12:00 pm1:00 pmIs it Worth it to Upgrade to Dynamics 365 Finance and Supply Chain Management? - Everything AX Users Need to Consider

28jul10:00 am10:30 amLot Management for Batch Manufacturers in Life Sciences, Chemical and Food

28jul2:00 pm2:30 pmConsiderations for Successful Testing Plans for Major Releases of Dynamics 365 Finance and Supply Chain Management

29jul11:00 am12:00 pmConfab Live with Stoneridge – Integration Strategies for End User Success

august

04aug2:00 pm2:30 pmSimplifying Payroll and HR Management with ADP Workforce Now

10aug(aug 10)8:00 am11(aug 11)11:00 amPower BI for Dynamics 365 - Online Workshop

11aug10:00 am10:30 amThe Modern Manufacturer - Enterprise Asset Management

11aug12:00 pm12:30 pmBusiness Intelligence with Dynamics 365 Finance and Supply Chain Management – Game Changing Insights and Analytics

11aug2:00 pm2:30 pmUsing Technology to Manage Complex Sales Pricing, Commission, and Rebate Programs

18aug10:00 am11:00 amTop Five Reasons Why NOW is the Right Time to Move from Salesforce to Dynamics 365 Customer Engagement

18aug10:00 am12:00 pmIntro to Power BI for Dynamics 365 Business Central – Online Workshop

18aug12:00 pm1:00 pmSolving the Biggest Challenges in Agribusiness Through Innovation and Technology

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X