Agrego un archivo xlsx a Microsoft Excel y lo comparto con ArcGIS Online a través del complemento ArcGIS for Excel.Procedo con los siguientes pasos.<\/P>
3;ArcGIS for Excel: Compartir una capa en ArcGIShttps:\/\/doc.arcgis.com\/en\/microsoft-365\/latest\/excel\/share-a-layer-to-arcgis.htm<\/A><\/P><\/span><\/P>Sé que los usuarios no pueden elegir el "field type" al compartir en ArcGIS Online, así que intento establecer una primera línea ficticia y controlar sus tipos de campo. Estuve buscando documentos sobre cómo decidir un tipo de campo en ArcGIS for Excel, pero solo encontré documentos de ArcGIS Pro.<\/P>https:\/\/pro.arcgis.com\/en\/pro-app\/latest\/help\/data\/excel\/work-with-excel-in-arcgis-pro.htm#GUID-E4C38438-93DC-472A-9A36-0A64E48FF16B<\/A><\/P> <\/P>Observé que tanto sus valores "all" (especialmente, Text o Number) como "The format of a cell" en Excel afectan sus tipos de campo, pero necesito más información...<\/P>
<\/span><\/P>Sé que los usuarios no pueden elegir el "field type" al compartir en ArcGIS Online, así que intento establecer una primera línea ficticia y controlar sus tipos de campo. Estuve buscando documentos sobre cómo decidir un tipo de campo en ArcGIS for Excel, pero solo encontré documentos de ArcGIS Pro.<\/P>
<\/P>
Observé que tanto sus valores "all" (especialmente, Text o Number) como "The format of a cell" en Excel afectan sus tipos de campo, pero necesito más información...<\/P>
https://doc.arcgis.com/en/microsoft-365/latest/excel/data-types-formats-and-categories.htm#ESRI_SECTION1_DC718093F6434AD5950F0496635DD6E2
You can set the cell format in Excel and ArcGIS for Excel should interpret it as per the above.
However, when sharing to ArcGIS Online, the cell values need to be valid for the field type. If your data does not align with the format it may convert it to string or later return an error.
https://support.esri.com/en-us/knowledge-base/problem-generic-errors-from-uploading-and-published-csv-000024821
@ChristopherCounsell Thank you for sharing the reference page and Tech article. These are so useful!
I understood that "There was an error." messages is displayed when sharing with ArcGIS Online(I often face it, too), so it is difficult to control field types of xlsx/csv with a first dummy line.I will prepare data while referencing microsoft-365 help page.Regards,hitsujir
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.