Edit online

Delete Table Row Operation Fails When Change Tracking is Enabled

Problem

I tried to delete a row in a table and I received the following error:
This operation cannot be executed on a table while change tracking is enabled.
Deactivate change tracking and try again. 

Cause

Some complex operations are blocked when change tracking in enabled to prevent breaking the table structure.

Solution

In most cases, deleting a table row should not cause an issue (for example, when deleting a table row that you added yourself with change tracking enabled). However, if the table row that you want to delete has cells that span multiple rows, the table layout may be affected by change tracking.

An administrator can set the changeTrackingBehavior parameter for the DeleteTableRowOperation with one of the following values:
  • Block - The operation is not executed when change tracking is activated.
  • Allow - The operation is executed when change tracking is activated. In the future, if complex table operations are performed, the resulting table layout may be broken.
  • Allow without change tracking - The operation is executed with change tracking disabled.
  • Allow - The editor decides which strategy to use, possibly asking the end user.