AnsweredAssumed Answered

If field aliases are the same, WFS publish fails without decent error message

Question asked by MChilcott on Dec 4, 2016

Hi Peoples,

 

Summary:

If you are unfortunate enough to create a feature class where the aliases for two fields are the same, or there is an alias that is the same as another field name [thus the table appears to have two fields of the same name] the service will publish to ArcGIS Server – unless you have WFS capability enabled – in which case it will fail with no real error message.

 

Description:

First off:

  • It is not possible to have two fields the same name – the database will not allow it, and you cannot do this in ArcCatalog
  • In ArcCatalog, it is possible to have two fields with the same alias name – (yeh I know - you should not do it, but mistakes happen)
  • In ArcCatalog, it is possible to have a field alias equal to another field name (thus the table appears to have two fields of the same name) – this should not be allowed

 

If there is a field alias equal to another field, when the layer is added to a document and is published to ArcGIS Server it will publish – but if the WFS capability is added, the publishing will fail [ without any decent error messages – very difficult to track down].

 

There have been a number of enhancements logged to improve the error messages, and not allow this sort of thing to occur.

Outcomes