<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000 in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851944#M10947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The documentation you link to for Generate states that GeoJSON is limited to 4000, but you state you are working with shape files.&amp;nbsp; Are you sure you even have an issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2020 00:38:03 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-08-24T00:38:03Z</dc:date>
    <item>
      <title>How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851943#M10946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the example code in&amp;nbsp;Create a &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/index.html"&gt;FeatureLayer from a shapefile&lt;/A&gt; to add zipped shapefile to my 3D scene.&lt;/P&gt;&lt;P&gt;But this code uses &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate.htm"&gt;ArcGIS REST API Generate&lt;/A&gt; and as stated there - Generate's json output is limiyed to 4000 records.&lt;/P&gt;&lt;P&gt;But I need to insert shapefile with more than 4000 records...&lt;/P&gt;&lt;P&gt;I will greatly appreciate help how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2020 15:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851943#M10946</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-23T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851944#M10947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The documentation you link to for Generate states that GeoJSON is limited to 4000, but you state you are working with shape files.&amp;nbsp; Are you sure you even have an issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 00:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851944#M10947</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-08-24T00:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851945#M10948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌, (Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌)&lt;/P&gt;&lt;P&gt;I apologize on not understanding your remark...&lt;/P&gt;&lt;P&gt;When I want to use Generate in order to insert zipped shapefile (please see the example code I pointed to), Generate returns json, and it can't return json with more than 4,000 records. It's written in its documentation, and I also got an error message if my zipped shapefile has more than 4,000 records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get the zipped shapefile by transforming AutoCad DWG of&amp;nbsp;a user, into shapefile, and that could have more than 4,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have not suceeded to clearly explain my problem, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish I could insert by my esri Web AppBuilder (Developer Edition) custom widget, a zipped shapefile with more than 4,000 records, into the 3D Scene.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With appreciation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851945#M10948</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-24T08:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851946#M10949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When using the REST API's generate method there is always going to be a limit to what esri allows. It is great that you are getting 4000 records I remember when the limit has been 1000 records. WAB and esri's JS API were never meant to be a replacement for ArcGIS Desktop, so there will always be limits to what you can do online.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 12:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851946#M10949</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-08-24T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851947#M10950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the immediate and informative answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since, as you can see, the usage of ESRI WebAppBuilder (developer Edition) is expanding, I wish to pass a request to ESRI REST API development team, to enlarge the limit a second time. I wish to enlarge the limit to at least 10,000 records, since nowadays regular Autocad DWG files that I convert to zipped shapefiles (by my FME cloud) contain near 10,000 reocrds. I am not an expert in all aspects of enlarging the limit, but as the limit has been multiplied by 4, from 1000 to 4000, I hope that nowadays it could be expanded even more. (If it could be enlarged to more then 10,000, it's even better, but I fear to request too much...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that there is no convenient way for widget in the AppBuilder to "bypass" the Convert REST API, so it makes sense to expand second time this limit, since it will expand the usage of ESRI Web AppBuilder and maybe more web application using ESRI REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please promote this request, or instruct me what can I do in order to promote it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With appreciation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 13:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851947#M10950</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-24T13:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851948#M10951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The further increase would be like esri shooting themselves in the foot. Why will people need to buy desktop software is they can do everything online without purchasing any software to do it. Oh course this is just my opinion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 13:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851948#M10951</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-08-24T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851949#M10952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;I'll try to present my point of view -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed I'm newbie to whole GIS area - I'm computer programmer for many many years. I've learned ArcGis Pro for a semester in University, in really good course and good instructor. Now I'm working for 3 months developing custom widgets, as you know.&lt;/P&gt;&lt;P&gt;What I understand, is that ArcGis Pro has its "area" of usage, and Web AppBuilder (Developer Edition) has another area.&lt;/P&gt;&lt;P&gt;Since many many companies who need GIS information, know nothing about GIS, so they use Web Applications (or Web AppBuilder (Developer Edition) applications, developed by companies who "know" GIS. And as you know, the widgets and custom-widgets are tailor made, in order to enable the users in companies who know nothing on GIS, to benefit GIS information, though they are simple users who know nothing.&lt;/P&gt;&lt;P&gt;More than that, the Web Applications and at least the Web AppBuilder (Developer Edition), supply specific gadgets and tools that the users need, and that could not be contained in ArcGIS Pro, since they are for specific needs of the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't expect that each user of GIS information will need to use ArcGIS Pro, which is a heavy tool.&lt;/P&gt;&lt;P&gt;Indeed, when a company's "main business" is GIS, this company "must" use ArcGIS Pro, but if it's business is something else, they wish to have an application which will help them to do specific tasks simple and easy, where the GIS processing is "under the hood" and they don't want to know about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the company I'm working at, does many many aerial photography bu planes, and it's business is selling the option to view and inquire 3D Scenes, and our customers are simple people in companies that need many specific widgets to help them get the information they are interested in, from these 3D Scenes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So they can't use ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our company pays for portal and online (and also ArcGIS Pro), and we use esri products, including the REST API, to give the users what they need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I made clear my opinion, that each product has different task and different "niche".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, esri products are excellent and I want to use them, and I am not an expert to evaluate what is better for esri.&lt;/P&gt;&lt;P&gt;I only presented my point of view.&lt;/P&gt;&lt;P&gt;I think esri should endeavour to the goal that users in thw whole world will prefer to use its products, and it will be if each product will "do its best" to supply users needs. ArcGIS Pro is a product, and REST API is a product. By answering users needs, both would thrive and prosperous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that enlarging&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;REST API's Generate method maximum recods limit will answer current users needs, since the world is going forward and the needs grow constantly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;With appreciation,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 14:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851949#M10952</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-24T14:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851950#M10953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Michael,&lt;/P&gt;&lt;P&gt;To answer your question why are you not getting all the records? This is because there is a limit on the records that you can query at one time, the reason behind this is simple because it is quite heavy to query all the records in a table at one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then using the Rest API's is quite complex if possible try using the Python API for ArcGIS it is free&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/" title="https://developers.arcgis.com/python/sample-notebooks/"&gt;index | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Answer your question you have to step trough the data E.G query record 1-4000 then 4001 to 8000&lt;/P&gt;&lt;P&gt;you can achieve this in REST as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in python you can do this as follows&amp;nbsp;&lt;/P&gt;&lt;P&gt;the below code will iterate trough a feature service and print out all the lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;arcgis.features &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;FeatureLayer&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;arcgis.gis &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;GIS&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;class &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;BuildPacks:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #b200b2;"&gt;__init__&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;list_of_items&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;pack_size=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6897bb;"&gt;500&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._list_of_items = list_of_items&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._length = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._list_of_items.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #b200b2;"&gt;__len__&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size = pack_size&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._packs = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;None&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; def &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #ffc66d;"&gt;build_packs&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._length &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._packs = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #8888c6;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._length / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;pack &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #8888c6;"&gt;range&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._packs):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_start = pack * &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_end = idx_start + &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;yield &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._list_of_items[idx_start:idx_end]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx_start = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._pack_size * &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._packs&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; remainder = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._length - idx_start&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;if &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;remainder &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6897bb;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;yield &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._list_of_items[idx_start:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._length]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;yield &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #94558d;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;._list_of_items&lt;BR /&gt; &lt;BR /&gt; gis = GIS(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6a8759;"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6a8759;"&gt;"username"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6a8759;"&gt;"password"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;)&lt;BR /&gt; con = FeatureLayer(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6a8759;"&gt;"&lt;A href="https://gisserver.nsa.org.na/server/rest/services/Hosted/service_f88664ff5d1c40f8ac4cf555ada44f8a/FeatureServer/0"&gt;https://serviceurl/server/rest/services/Hosted/myservice/FeatureServer/0&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;gis)&lt;BR /&gt; rows = con.query(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #aa4926;"&gt;return_ids_only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;) # gets all the ids in a table&lt;BR /&gt; row_ids = rows[&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #6a8759;"&gt;'objecIds'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;]&lt;BR /&gt; packs = BuildPacks(row_ids)&amp;nbsp;&lt;SPAN style="background-color: #2b2b2b;"&gt;# builds packs of 500&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;# Quries 500 records at a time&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;for &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;pack &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc7832;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;packs.build_packs():&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;id_strings = [str(x) for x in pack]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;records =&amp;nbsp;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;con.query(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #aa4926;"&gt;where=f'ObjectId IN ({&lt;SPAN style="color: #a9b7c6; background-color: #2b2b2b;"&gt;id_strings&lt;/SPAN&gt;})'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #a9b7c6;"&gt;)&amp;nbsp; #e.g "ObjectId IN (01234,01235)" # this is standard SQL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;SPAN style="color: #a9b7c6; font-size: 10.0pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for record in records.features:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;SPAN style="color: #a9b7c6; font-size: 10.0pt; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(record.__dict__) #prints the records&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;/P&gt;&lt;P style="background: #2B2B2B;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 05:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851950#M10953</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2020-08-25T05:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851951#M10954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/217192"&gt;Henry Lindemann&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you very much for showing ways to do it.&lt;/P&gt;&lt;P&gt;Since I'm not yet familiar with Python, I currently prefer the other way you noted, as you said "&lt;SPAN style="background-color: #ffffff;"&gt;you can achieve this in REST as well"&lt;/SPAN&gt;, that is to activate generate on 4000 records chunks each, till I get all.&lt;/P&gt;&lt;P&gt;However, I don't know how to call generate the exact needed times and collect all results to create correctly the featureCollection that has to be added to the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I will appreciate it very much if you show/explain/point_to_examples how to do it., as I don't see any documentation how to do it&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;In other words - how to "upgrade" the "sandbox" of the code example &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-shapefile/index.html"&gt;Create a FeatureLayer from a shapefile&lt;/A&gt;&amp;nbsp;(mentioned on my question, and my code is based on it) so that it will work also on zipped shapefiles with total records num greater than 4000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my current relevant code, though I assume the easier way is to modify the mentioned code example and test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #800000;"&gt;var params = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name: filename, // that is the ziped shpefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; targetSR: this.sceneView.spatialReference,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxRecordCount: 1000000,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enforceInputFileSizeLimit: false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enforceOutputJsonSizeLimit: false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; params.generalize = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;params.maxAllowableOffset = 10;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;params.reducePrecision = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;params.numberOfDigitsAfterDecimal = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;var myContent = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;filetype: "shapefile",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;publishParameters: JSON.stringify(params),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;f: "json"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// use "generate" REST API to generate a feature collection from the zipped shapefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;request(this.portalUrl + "/sharing/rest/content/features/generate", {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;query: myContent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;body: this.uploadForm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;responseType: "json"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.then(function (response) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;var layerName =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;response.data.featureCollection.layers[0].layerDefinition.name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;that._addShapefileToMap(response.data.featureCollection);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.catch(that._errorHandler);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851951#M10954</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-25T11:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851952#M10955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Unfortunately I am not a Java Script programmer so I am not going to be of much help here,&amp;nbsp; but let me try to give you some help any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can go to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/query-a-feature-layer/" title="https://developers.arcgis.com/javascript/latest/guide/query-a-feature-layer/"&gt;Query a feature layer | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&amp;nbsp;to find the documentation for Java Script as well as examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Online is basically just a newer version of the ArcGIS Enterprise system&amp;nbsp; so this is how it looks when you query a layer.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/504551_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you want to research is the &lt;STRONG&gt;Result Offset&lt;/STRONG&gt; which basically means from 0 how may records to skip and &lt;STRONG&gt;Result Record Count&lt;/STRONG&gt; which means how many records to return E.G if the offset is 10&amp;nbsp; start at record 10 and return 5 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Info:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-map-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-map-service-layer-.htm"&gt;Query (Map Service/Layer)—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://covidportal.esri-southafrica.com/server/rest/services/Hosted/SubDist16T_Layer_WFL1/FeatureServer/0/query?where=1%3D1&amp;amp;resultOffset=10&amp;amp;resultRecordCount=5&amp;amp;f=json"&gt;https://some_server.esri-southafrica.com/server/rest/services/Hosted/SubDist16T_Layer_WFL1/FeatureServer/0/query?where=1%3D1&amp;amp;resultOffset=10&amp;amp;resultRecordCount=1&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "exceededTransferLimit": true,&lt;BR /&gt; "features": [{&lt;BR /&gt; "attributes": {&lt;BR /&gt; "municname": "City of Tshwane"&lt;BR /&gt; },&lt;BR /&gt; "geometry": {&lt;BR /&gt; "rings": [[...]]&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "fields": [{&lt;BR /&gt; "name": "municname",&lt;BR /&gt; "type": "esriFieldTypeString",&lt;BR /&gt; "alias": "MUNICNAME",&lt;BR /&gt; "length": 100,&lt;BR /&gt; "defaultValue": "",&lt;BR /&gt; "modelName": "MUNICNAME"&lt;BR /&gt; }&lt;BR /&gt; ],&lt;BR /&gt; "geometryType": "esriGeometryPolygon",&lt;BR /&gt; "spatialReference": {&lt;BR /&gt; "wkid": 102100,&lt;BR /&gt; "latestWkid": 3857&lt;BR /&gt; },&lt;BR /&gt; "objectIdFieldName": "objectid_12",&lt;BR /&gt; "hasZ": false,&lt;BR /&gt; "hasM": false&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 11:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851952#M10955</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2020-08-26T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851953#M10956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can you please direct me where to request for increase of generate records limit?&lt;/LI&gt;&lt;LI&gt;Do I understand correctly from Henry's answer&amp;nbsp;"you have to step trough the data E.G query record 1-4000 then 4001 to 8000 etc. etc. you can achieve this in REST as well" that this is a possible solution? But I don't know where can I find documentation/code_examples how to do this. Is it possible at all, to create chunks of less than 400 each (maybe per layer in the zipped shapefile) and then combine them to get the full featureCollection? I suspect that it's possible only on an already existing shape but not on zipped shape...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851953#M10956</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-26T16:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851954#M10957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Unfortunately you guys are talking about two different things here. You are wanting to use the generate method on the API and that has a limit that is not configurable by you the end user. What Henry is talking about is a query of a layer on AGOL or ArcGIS Server (nothing to do with using a zipped shapefile).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851954#M10957</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-08-26T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851955#M10958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/139590"&gt;https://community.esri.com/thread/139590&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851955#M10958</guid>
      <dc:creator>BillFox</dc:creator>
      <dc:date>2020-08-26T16:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851956#M10959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you very much for clarifying what I have already suspected, that it’s impossible to create from the zip “by chunks”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only my intention in “1. ... where to request” was not “how to do by API”, but -&lt;STRONG&gt; “How to ask from ESRI company, to increase that limit a little more”&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to send such request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said that in the past that limit was 1000 records, and then ESRI raised the limit to 4000, so I hope that they will handle such request positively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With appreciation to your immediate responses and explanations,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 18:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851956#M10959</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-26T18:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851957#M10960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By submitting a "Idea" to&amp;nbsp;&lt;A href="https://community.esri.com/space/2167"&gt;ArcGIS Ideas&lt;/A&gt;‌ and or contacting esri tech support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 19:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851957#M10960</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-08-26T19:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851958#M10961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I know is that in web application, if I want to add zipped shapefile to map/scene by page javascript, I have to use ESRI REST API "generate", and ESRI has imposed an arbitrary artificial limit on records count. Once the limit has been that if the zipped shapefile contains more than 1000 records, it will NOT be handled, nad now this arbitrary artificial limit is 4000.&lt;/P&gt;&lt;P&gt;I think I will address ESRI either by&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;submitting a "Idea" to&amp;nbsp;&lt;/SPAN&gt;&lt;A _jive_internal="true" class="" data-containerid="1" data-containertype="14" data-objectid="2167" data-objecttype="14" href="https://community.esri.com/community/arcgis-ideas" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;ArcGIS Ideas&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or by contacting esri tech support,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;requesting them to raise more this artificial limit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851958#M10961</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-08-27T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add shapefile with more than 4000 records? since REST API Generate is limited to 4000</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851959#M10962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/8050"&gt;Bill Fox&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/217192"&gt;Henry Lindemann&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/334593"&gt;Shay Lavi&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/142269"&gt;Carlos Augusto Nantes de Castilho Rivilino&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/133698"&gt;Majdoleen Awadallah&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/346673"&gt;Harish Palaniappan&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed Robert's advise and submitted&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;to "&lt;/SPAN&gt;ArcGIS Ideas"&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;- &lt;A _jive_internal="true" href="https://community.esri.com/ideas/19029-arcgis-rest-api-generate-please-increase-limit-above-4000-records"&gt;here&lt;/A&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;a request to increase the arbitrary limit of 4,000 records for ArcGIS REST API - "Generate",&lt;/P&gt;&lt;P&gt;in order that web application based on esri REST API will be able to import zipped shapefiles with more than 4,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I will greatly appreciate it if you "upvote" it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;With appreciation,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 07:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-add-shapefile-with-more-than-4000-records/m-p/851959#M10962</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-10T07:46:38Z</dc:date>
    </item>
  </channel>
</rss>

