AnsweredAssumed Answered

Set Spatial Reference of Object ArcGIS Runtime

Question asked by jay.kapalczynski on Oct 15, 2019
Latest reply on Oct 17, 2019 by jay.kapalczynski

I am trying to set the Spatial Reference as seen below...but for some reason its not liking it...


gpParametersInsert.outputSpatialReference = SpatialReference.createWgs84();


If I include the line above as seen in the code below and run the app I get an error window that pops error in the console.log


"AppStudio for ArcGIS AppRun has stopped woroking"



ANY ideas?



var gpParametersInsert = ArcGISRuntimeEnvironment.createObject("GeoprocessingParameters",
      {executionType: Enums.GeoprocessingExecutionTypeAsynchronousSubmit});

// Request the output features be WGS84
gpParametersInsert.outputSpatialReference = SpatialReference.createWgs84();

var inputsI = {};
inputsI["Item"] = ArcGISRuntimeEnvironment.createObject("GeoprocessingString", {value: varItem});

gpParametersInsert.inputs = inputsI;

// Create the job that handles the communication between the application and the geoprocessing task
insertCursorJob = insertCursorTask.createJob(gpParametersInsert);