Skip To Content

Feature table editing and sync error codes

In this topic

Error codes can occur in one of many hundreds of locations in the system. Sometimes the code is returned by a function deep in the stack and far removed from your code that is handling the error. Consequently, the descriptions of these codes cannot always be specific to the problem you are faced with; further investigation and analysis is often required.

The listed error codes are associated with the following two phases:

  • Editing features in a geodatabase
  • Saving edits to the feature service

Editing features in a geodatabase

Your users can edit features while online (connected) or offline (disconnected):

  • If your workflow is fully connected, then you will create and edit a Feature Service Table
  • If your workflow is disconnected, then you will create and edit a Feature Table

Both of these feature tables are physically stored within a geodatabase on the device or computer. Your users can make changes by adding new features, updating exiting features, and deleting features. The methods to add, update, and delete features and feature attachments are common to both workflows

The table below defines the error codes that can arise from any of these editing operations.

Error codeDescription

0

SQL statement is not valid.

1

Internal SQLite error.

2

Access permission to database file denied.

3

A database callback function called abort.

4

The database is locked. Did you commit a transaction while a cursor was open?

5

The table is locked.

6

Write operation attempted on a read-only database.

7

Operation terminated by an interrupt.

8

Disk I/O error.

9

The database file is corrupt.

10

SQLite encountered an invalid op code.

11

The database is full.

12

The database file can't be opened.

13

Database lock protocol error.

14

The database file is empty.

15

The database schema changed.

16

String or BLOB exceeds size limit.

17

The value falls outside a range of allowable values.

18

Database constraint violation, such as adding duplicate value to a unique field.

19

The data types are not compatible.

20

Misuse of SQLite API. Generally, using an uninitialized or closed object.

21

Feature not supported on this OS.

22

Authorization denied.

23

Auxiliary database format error.

24

Bind parameter greater than the number of binds.

25

File exists, but is not a SQLite database.

26

Function not implemented yet.

27

Called an unimplemented virtual function.

28

Invalid XML.

29

Database create was called with fail_existing and found an existing database.

30

Database was not found at this path.

31

Table, index, and field names cannot be longer than 128 characters.

32

Shape type not supported in runtime geodatabase.

33

Raster fields are not supported in the runtime geodatabase.

34

Cannot create a second relationship for the same row in a one-to-one relationship class.

35

Item not found in the database (table, domain, relationship class, and so on).

36

Value is already present in the coded value domain.

37

Value is not present in the coded value domain.

38

The wrong item type was passed to a polymorphic function.

39

OID and GlobalID fields cannot be nullable.

40

Default value not supported for this field type.

41

This table is not editable.

42

The requested field was not found.

43

The field already exists.

44

Cannot alter the type of an existing field.

45

Cannot alter the width of an existing field.

46

Cannot make nullable field not-nullable.

47

Cannot make not-editable field editable.

48

Cannot make not-deletable field deletable.

49

Cannot change geometry properties.

50

The table must be named to generate index names.

51

The type is not support by the domain.

52

The minimum of a range domain cannot be greater than the maximum.

53

Attributed relationship classes cannot have geometry or raster fields.

54

Cannot delete a key field of a relationship class.

55

Cannot extract a null row value. Call is_null to check.

56

Cannot execute multiple SQL statements in the same command.

57

No SQL statements were found in the command.

58

A query with a search geometry must specify geometry in the subfields.

59

This transaction was already started.

60

This transaction has not been started.

61

The shape must have a z-value.

62

The shape must have an m-value.

63

The shape must not have a z-value.

64

The shape must not have an m-value.

65

The shape has the wrong type for the field.

66

This field type cannot be updated.

67

The update or delete statement did not affect any rows.

68

The field has an invalid subtype.

69

The subtype field must be an integer field.

70

Subtypes are not enabled on this table.

71

The subtype already exists.

72

A table can only have one each of OID, GlobalID, and Geometry.

73

Cannot delete OID, GlobalID, Geometry fields; the subtype field; and fields that are marked not deletable.

74

The index already exists.

75

The requested index was not found.

76

The cursor is not on a row and cannot extract values.

77

An internal geodatabase error.

78

Geodatabase-managed fields, such as editor tracking fields, cannot be assigned to.

79

The item to be created already exists in the database.

80

The spatial index name is invalid. The spatial index name may be a duplicate name. Rename the table to ensure a unique name.

81

The operation requires a spatial index.

82

The name of the field is invalid as it is a reserved name.

83

Schema modifications are not supported for change tracking-enabled tables.

84

The date is invalid.

85

The database does not have changes.

86

There is no sync replica associated with this database.

87

The storage type is not supported.

88

The operation is not supported by the sync replica model.

89

There is an error with the replica client generation number(s). Check that the value has been initialized.

90

There are no uploads waiting to be acknowledged.

91

Cannot write to the database because its last write time is in the future.

92

An invalid argument was passed in.

93

The transportation network data is corrupt.

94

Could not read transportation network data.

95

There are pending edits on the feature. This feature will not be synchronized.

96

Change tracking is not enabled on this table.

97

The transportation network data files could not be opened, and may be missing.

98

The transportation network data format is not supported by the current implementation.

99

The database is on a different device or at a different location than it was locked to. Cannot sync without reregistering first.

Saving edits to the feature service

To save your edits back to the feature service:

In a connected environment

In a connected environment, you can apply the edits to the feature service as soon as you make them. For more information on this workflow and the classes, methods, and error objects refer to the Commit your edits section in the Edit features document in the Guide section of your specific platform documentation on ArcGIS for Developers.

Errors raised during any of these steps are outlined in Apply Edits (Feature Service) document. Go to the error code link in the Description section.

In a disconnected workflow

In a disconnected workflow, you synchronize your edits back to the service once you have a network connection. For more information on this workflow and the classes, methods, and error objects, refer to the Sync offline edits document in the Guide section of your specific platform documentation on ArcGIS for Developers.

Errors raised during any of these steps are outlined in Error handling with sync.