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)

Why would database index maintenance result in "could not complete cursor operation"

(0) ShareShare
ReportReport
Posted on by

I'm a DBA for an AX deployment, and lately some of our nightly AX batch jobs have been failing.  The developers have been asking me about index maintenance, which, due to the highly volatile nature of our data, I do run nightly (but only on indexes which meet the thresholds for fragmentation).  The error is "Could not complete cursor operation because the table schema changed after the cursor was declared."

This doesn't make sense to me, because I don't take any tables offline, and this is SQL 2014 Enterprise Edition.  I'm taking pagelocks, but that's it. I'm not adding or dropping indexes. At most, there could be some extended blocking - perhaps some data could move to a different page, but I would expect a different error.

What's the best way to get index maintenance in, AND get the nightly batch jobs done? They both have to happen.

Any insight would be appreciated!

*This post is locked for comments

I have the same question (0)

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans