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)

The joined cursor has been used in another SELECT statemen

(0) ShareShare
ReportReport
Posted on by 916

Dear all,

After upgrade R2  CU7 to R2 CU9 , we are getting the bellow error when starting export by batch:

Error executing code: The joined cursor has been used in another SELECT statement.
Stack trace
(S)\Classes\DMFStagingWriter\execute - line 288
(S)\Classes\DMFStagingWriter\runOnServer - line 40
(C)\Classes\DMFStagingWriter\run - line 42

Thank you in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You are talking about AX 2012 R2, while you use current version in your tags which stands for Dynamics 365 for Finance and Operations Enterprise edition. Please edit your post to reflect the correct application version to avoid confusion.

    Also you did not provide details on where exactly do you receive the errors, so it is hard to tell by the context. Provide additional details on what exactly are you trying to do.

    Also they have discussed similar issue where they were unable to use the next keyword on a record buffer, and had to do a workaround solution for that:

    community.dynamics.com/.../14553

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Also they have released hotfixes on LCS already for similar issues, did you try the issue search for the object you are having problem with to see if there has been an updated KB released for it? Based on the object the DMFStagingWriter belongs to Data Import Export Framework, for which Microsoft did a lot of patching.

    community.dynamics.com/.../105880

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please take your time to mark helpful answers next to each post in order to resolve the thread and assist others with finding the correct reply for similar questions.

  • Riswan Profile Picture
    107 on at

    I also faced same error while I used the tablebuffer.clear() within the while loop.

    I commented the code wrote the logic with a new buffer resolved the issue.

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