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 :
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

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

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans