PROBLEM

Unable to add features with date fields to a feature service and edit the service using the SOAP API

Last Published: April 26, 2020

Description

Using the SOAP application programming interface (API), the Add method fails to add features with date fields to a feature service while consuming ArcGIS 10.3.1 for Server feature services. Similarly, using the ApplyEdits method to edit the feature service containing date fields returns a SOAPException error.

Cause

In the SOAP API, if features contain the date field, the TimeReference tag must be included in the XML schema of the SOAP API. Not including the TimeReference tag causes the SOAP request to fail.

Note:
In older versions of ArcGIS for Server, adding the TimeReference tag is optional.

Solution or Workaround

Include the TimeReference tag in the SOAP API XML schema as shown below:

Code:
<!--REQUIRED-->
<TimeReference>
<TimeZoneNameID>UTC</TimeZoneNameID>
<!--Optional:-->
<RespectsDaylightSavingTime>true</RespectsDaylightSavingTime>
<!--Optional:-->
<RespectsDynamicAdjustmentRules>true</RespectsDynamicAdjustmentRules>
</TimeReference>


Note:
This solution is applicable when using the SOAP API directly. When using an ArcObjects API, such as the Java or .NET SDK, use the TimeReference property instead. For more information, refer to ArcGIS Resources: TimeReference.

    Article ID:000013255

    Software:
    • ArcGIS Server

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Related Information

    Discover more on this topic