Error when using gis.content.import_data

364
1
07-10-2019 08:36 AM
MadhavaPaliyam
New Contributor

I was trying to import a pandas dataframe which contained information about coordinates to use in a layer. However I got the message: 

The maximum number of records allowed (1000) has been exceeded.

This is my code, I am using Jupyter Notebook. 
coord = all_data[['LATITUDE','LONGITUDE']]
imp = gis.content.import_data(coord)
0 Kudos
1 Reply
Egge-JanPollé1
MVP Regular Contributor

Hi Madhava Paliyam,

Your issue might have something to do with the maxRecordCount of the feature service you are accessing. This value defaults to 1,000 but can be increased if needed.

Depending on the number of records you try to import there are two possible solutions:

  1. Increase the value of maxRecordCount, following the instructions given here: How To: Update the maximum record count for feature services in ArcGIS Online 
  2. Alternatively you can loop over the data and import them in batches of a thousand records at the time.

HTH,

Egge-Jan

0 Kudos