laptop and a wrench

Bug

ESRI.ArcGIS.SOESupport.JsonObject.TryGetString returns ‘null’ when the input parameter is a string but in numeric format.

Last Published: August 25, 2014 ArcGIS Server (.NET)
Bug ID Number NIM088102
SubmittedJanuary 14, 2013
Last ModifiedJune 5, 2024
Applies toArcGIS Server (.NET)
Version foundNo Version Found
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

The workaround could be using 'TryGetAsDouble' and convert it back to string. Please see the attached code snippet (also shown in the code). if (mystring == null) { double? mystr_double; found = operationInput.TryGetAsDouble("MyString", out mystr_double); System.Diagnostics.Debug.WriteLine(mystr_double); mystring = mystr_double.ToString(); }

Steps to Reproduce

Bug ID: NIM088102

Software:

  • ArcGIS Server (.NET)

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options