2250 views

Description

When altering an existing column by changing the field type or the field length, data loss can occur if the field has duplicate storage aliases. On an affected version, the logic that safeguards against data loss fails to account for data in fields that are aliases of the field being modified. The following workflow illustrates the issue:

  1. The user accesses a field on a table that is configured as an extension of another table (Table per Hierarchy).
  2. The user then alters the field by changing either its Type or its Length.
  3. The execution logic tests for data loss in that table only (not the entire hierarchy for the field).

Because the test does not detect any data in other tables that are also extensions of that same base table, the workflow continues to execute, causing data loss for that field in the other tables.

Steps to Reproduce

 

ServiceNow does not recommend any attempt on the part of the customer to reproduce the issue. If you have made a change to a field definition and have experienced data loss, please escalate to the ServiceNow support team for their assistance with an investigation.

ServiceNow is executing a maintenance change that will add a logical test to the workflow to cleanly abort when the risk of data loss is present. You may see one of the errors below when attempting to execute the workflow after the guardrail is in place:

  • Element is using storage alias. Cannot modify this element's type because it shares a storage alias. _alias_
  • Element is using storage alias. Cannot shrink this element's length because it shares a storage alias. _alias_
  • Update aborted because duplicate storage aliases defined for element [_name_._element_]

Workaround

No workaround is possible, an upgrade is required. The issue was fixed in the available product releases listed in the Fixed In section below.


Related Problem: PRB674257

Seen In

Eureka Patch 1 Hot Fix 2
Geneva Patch 1
Geneva Patch 3 Hot Fix 2
Geneva Patch 4
Geneva Patch 5
Geneva Patch 6
Geneva Patch 6 Hot Fix 2
Geneva Patch 7
Geneva Patch 7 Hot Fix 1
Geneva Patch 9
Helsinki Patch 0 Hot Fix 1
Helsinki Patch 3
Helsinki Patch 4
Helsinki Patch 5

Fixed In

Geneva Patch 6 Hot Fix 2
Geneva Patch 7
Geneva Patch 8
Helsinki Patch 1
Helsinki Patch 2
Istanbul

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-03-08 02:43:42
Published:2018-03-08