[Data Service] "Error Code: 400 Message: Entity Or Field Name Must Only Contain Alphanumeric Characters, Start With Alphabetic Characters And Not Be C# Or VB Keyword." While Adding A New Field In An Entity Or Importing Schemas

How to troubleshoot/ resolve the error "Error code: 400 Message: Entity or field name must only contain alphanumeric characters, start with alphabetic characters and not be C# or VB keyword." while adding a new field in an entity or importing schemas in Data Service?

Issue Description:

While adding a new field in an entity in Data Service or importing a schema in Data Service, the operation fails with the error

  • "Error code: 400 Message: Entity or field name must only contain alphanumeric characters, start with alphabetic characters and not be C# or VB keyword."


Reference screen-print below for the error while adding a new field.

Resolution:

To resolve the error while adding a new field in an entity in Data Service, the value provided for Name should not be a C# or VB keyword.

  • To resolve the error while importing a schema, check the schema.json file and validate that the value for 'Name' is not C# or VB keywords.
    • The value provided for 'Display Name' has no restriction and reserved words can be used. Reference screenprint below: