web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Warning Nested data access loop found in run method

(0) ShareShare
ReportReport
Posted on by

Good day, I'm doing a code migration and I'm in the following situation:

1. I have two tables, Table1 and Table2

2. I must go through all the records in Table1 and see all the records in Table2.(there is no relationship between the two tables)

5621.Table.PNG

3. The following warning appears

5148.war.PNG


I appreciate your help to solve it with a best practice

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Good day Sakrut,

    I am doing this because I have to insert a data in a third table (Table 3), where all the possible combinations between the keys fields of the two tables must be (Table1 and Table2), in addition there are more fields in the third table (Table3) which are calculated values.

    Thanks for your help. I'm waiting for your comments

  • Douglas Noel Profile Picture
    3,905 on at

    Hi,

    can't you use a single cursor on a crossjoin betweem table1 and table2 using only one while select?

    Maybe you can combine this (if possible, don't know your calculations) selct with an insert_recordset command to fill table3?

    Regards Douglas

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Ah, another duplicate thread... :( There is a parallel discussion in the Finance and Operations forum.

  • Community Member Profile Picture
    on at

    Martin, You're right, but I have not managed to delete the post.

    :(

  • Jie G Profile Picture
    on at

    Just replied with the same post... The best practice is not to do so.

    It's unreasonable to do so like this. If it's an actual requirement, I believe you should be able to solve it by adding relationship between the two tables and make use of query clause.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans