laptop and a wrench

漏洞

Using the to_featurelayer function in ArcGIS API for Python returns the error message, "Maximum number of records allowed (1000) exceeded" when publishing the result of the pivot_table function.

上次发布: October 29, 2021 ArcGIS Online
漏洞 ID 编号 BUG-000130651
已提交May 6, 2020
上次修改时间June 5, 2024
适用范围ArcGIS Online
找到的版本8.1
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Known Limit

附加信息

- pivot_table results in a MulitLevel index, which is not supported in feature classes. - The maximum records message results because to_featurelayer() has to geocode the results in this case, which can only be accomplished 1000 records at a time. - Flattening the multilevel index with df.stack().reset_index() creates individual records with the multilevel index appropriately transposed for each record. - With some data engineering of column names and using the GeoAccessor.from_xy() method a valid spatial data frame can be created and the to_featurelayer() method used (Although this simply recreates the original feature layer in this case).

解决办法

Use the commented out syntax of the last kernel to convert the DataFrame to a CSV file, and publish it. However, this does not always work correctly. Refer to BUG-000129950 for more information.

重现步骤

漏洞 ID: BUG-000130651

软件:

  • ArcGIS Online

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项