Skip To Content
ArcGIS Developers



The Analyze call helps a client analyze a CSV or Excel file (.xlsx, .xls) prior to publishing or generating features using the Publish or Generate operation, respectively.

Analyze returns information about the file including the fields present as well as sample records. Analyze attempts to detect the presence of location fields that may be present as either X,Y fields or address fields.

Analyze packages its result so that publishParameters within the JSON response contains information that can be passed back to the server in a subsequent call to Publish or Generate. The publishParameters subobject contains properties that describe the resulting layer after publishing, including its fields, the desired renderer, and so on. Analyze will suggest defaults for the renderer.

In a typical workflow, the client will present portions of the Analyze results to the user for editing before making the call to Publish or Generate.

If the file to be analyzed currently exists in the portal as an item, callers can pass in its itemId. Callers can also directly post the file. In this case, the request must be a multipart post request pursuant to IETF RFC1867. The third option for text files is to pass the text in as the value of the text parameter.


The Analyze call will fail if your portal does not have a hosting server registered with it.

Request Parameters


The output format is JSON.


The ID of the item to be analyzed.

Example: id=345313e619df46f387f9ededbe15ac56


The file to be analyzed.

Example: file=mystreets.csv


The text in the file to be analyzed.

Example: text=<text_in_file>


The type of input file.

Values: csv | excel

Example: fileType=csv


A JSON object that provides geocoding information

Example: analyzeParameters:{"sourceLocale":"en"}

Analyze Parameters JSON object

The analyzeParameters JSON object used to analyze a CSV or Excel file are described below.


The locale used for the geocoding service source.


The URL of the geocoding service that supports batch geocoding.


ArcGIS for Portal 10.3 supports configuring multiple geocoding services. If the client application requires a specific locator, the URL of this service should be specified in this parameter.


Indicates the type of spatial information stored in the dataset.

Values for CSV: coordinates | address | lookup | none

Values for Excel: coordinates | address | none


The two character country code associated with the geocoding service, default is "world".


If first time analyzing, the hint is used. If source country is already specified than sourcecountry is used.

A sample analyzeParameters JSON object for a CSV or Excel is as follows:

   "enableGlobalGeocoding": true,
   "geocodeServiceUrl": "https://<server>/sharing/rest/services/World/GeocodeServer",
   "locationType": "address",

Example Usage for CSV

JSON Response Example

   "fileSize": 921,
   "fileUrl": "",
      "type": "csv",
	    	"name": "data",
		    "sourceUrl": "",
		    "locationType": "address",
		    "maxRecordCount": 1000,
		    "geocodeServiceUrl": "",
	    	"sourceCountry": "us",
		    "sourceLocale": "en",
		    "addressFields": {
		       	"Address": "Street",
		       	"City": "City",
			       "Region": "State",
			       "Postal": "Zip"
		   "standardizedFieldNames": {
		  	     "Address": "Street",
			       "City": "City",
			       "Region": "State",
			       "Postal": "ZIP",
			       "PostalExt": "ZIP4",
			       "CountryCode": "Country"
		   "columnDelimiter": ",",
        "attributes": {
			       "Name": "ESRI-California",
			       "Street": "380 New York Street",
		       	"City": "Redlands",
			       "State": "CA",
		       	"Zip": "92373-8100"
     	}, {
		        "attributes": {
			       "Name": "ESRI-Denver",
			       "Street": "One International Court",
			       "City": "Broomfield",
			       "State": "CO",
			       "Zip": "80021-3200"

Example Usage for Excel

JSON Response Example

   "fileUrl": "",
      "type": "excel",
		    "name": "data",
		    "sourceUrl": "",
		    "maxRecordCount": 2000,
		    "sourceSR": {
		   	   "wkid": 4326,
			      "latestWkid": 4326
		    "targetSR": {
			      "wkid": 102100,
			      "latestWkid": 3857
	    	"editorTrackingInfo": {
			      "enableEditorTracking": false,
			      "enableOwnershipAccessControl": false,
			      "allowOthersToQuery": true,
			      "allowOthersToUpdate": true,
			      "allowOthersToDelete": false,
			      "allowAnonymousToUpdate": true,
			      "allowAnonymousToDelete": true
		    "hasAttachments": false,
		    "capabilities": "Create,Delete,Query,Update,Editing",
   "records": null,

For a complete description of publishParameters, see Publish Item.