SP.Field.update() Method

Applies to: SharePoint Foundation 2010

Commits changed properties of the field.

SP.Field.update();

Applies To

SP.Field Class

Exceptions

Exceptions

Descriptions

SPException

Field does not exist. Error code: -2130575340.

SPException

Changing the type of the field is not supported. Error code: -2130575301.

SPException

Formula in FieldCalculated.Formula or data validation criteria in Field.ValidationFormula is not supported. Error code: -2130575295.

SPException

Formula in FieldCalculated.Formula or data validation criteria in Field.ValidationFormula refers to a field that is not supported. Error code: -2130575272.

SPException

Formula in FieldCalculated.Formula or data validation criteria in Field.ValidationFormula contains a circular reference or a self-reference. Error code: -2130575271.

SPException

Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula contains a syntax error. Error code: -2130575270.

SPException

Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula refers to a field that does not exist. Error code: -2130575160.

SPException

Type of the field is changed for an indexed field. Error code: -2130246331.

SPException

AllowDuplicateValues is set to false on a field that is not an indexed field. Error code: -2130246240.

SPException

Field is set to not be an indexed field, and AllowDuplicateValues is false. Error code: -2130246239.

SPException

AllowDuplicateValues is set to false and an existing list item in the list contains duplicate values in the field. Error code: -2130246238.

SPException

Type of the field is being changed and AllowDuplicateValues of the field is false. Error code: -2130246237.

SPException

Type of the field is set to Boolean and AllowDuplicateValues is false. Error code: -2130246236.

SPException

AllowDuplicateValues of the lookup field which is indexed, is set to true. Error code: -2130246223.

SPException

Total number of fields (2) in the list exceeds the limit. Error code: -2130246219.

SPQueryThrottledException

Throttling limit is exceeded by the operation. Error code: -2147024860.

UnauthorizedAccessException

The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.Field Methods

SP.Field Properties

SP Namespace