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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Nested data access loop found in method

(0) ShareShare
ReportReport
Posted on by 230
Hi Team,
 
I have created one custom View ABC_CustPackingSlipTrans.
 
If i use ABC_CustPackingSlipTrans with while select, getting below BP Warning.
 
Nested data access loop found in method in D365FO.
 
Please let me know how to solve this.
I have the same question (0)
  • Martin Dráb Profile Picture
    239,484 Most Valuable Professional on at
    You have two options: either you somehow resolve the nested looks, such as by using joins. Or you decide that you must use your current design and you'll suppress the warning.
     
    If you you don't know whether your code can be changed and you want ask us for help, not that you'll need to show, or at least describe, your current code.
  • GirishS Profile Picture
    27,843 Moderator on at
    Hi,
     
    Refer to this documentation for list of BP warnings and how to fix them.
    Also please show us the code you have written so we can give better suggestions.
     
    Thanks,
    Girish S.
  • CU21091228-0 Profile Picture
    230 on at
    Below code i am using.
  • Martin Dráb Profile Picture
    239,484 Most Valuable Professional on at
    Instead of running a while-select loop for every SalesTable record returned by the query, you could create a single query returning all the data at once.
     
    But I wonder why you need the outer loop at all. I see that you filter the inner query by deliveryDate date too, so I assume this is covered. Are you saying that your CustPackingSlipTransView returns also records with OrderAccount values that aren't the ID of related sales orders? Or why do you need to fetch the list of customers before querying custPackingSlipTransView?

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 621

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 575 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans