Category Archives: Uncategorized

ISV code aborted the operation.

Published by:

When writing a Microsoft Dynamics CRM plugin, you might come across the dreaded “ISV code aborted the operation” (isvaborted) error – code -2147220891 or 80040265.

In my experience this means the plugin is calling itself. For example, if your plugin fires on change of estimatedvalue on Opportunity, and your plugin updates estimatedvalue, you’re going to get an infinite loop.

Nip it in the bud with this simple line:

if (context.Depth > 1) {
                trace.Trace("Plugin has called itself. Exiting.");
                return;
            }