Index creation fails for ScaledDecimals or Fractions outside SmallInteger range
If an index is created with a last element class of ScaledDecimal or Fraction, and the ScaledDecimal or Fraction contains a denominator outside the SmallInteger range (larger than 1152921504606846975), then index creation will fail with the error:
ObjErrCorruptObj - The object with object ID 20 is corrupt. Reason: 'FetchSmallInt_ bad value'
Normalize the ScaledDecimal or Fraction to reduce the denominator to less than 1152921504606846975.