J'ajoute un fichier xlsx à Microsoft Excel et le partage avec ArcGIS Online via le plugin ArcGIS for Excel.Je procède aux étapes ci-dessous.<\/P>
3;ArcGIS for Excel : Partager une couche vers ArcGIShttps:\/\/doc.arcgis.com\/en\/microsoft-365\/latest\/excel\/share-a-layer-to-arcgis.htm<\/A><\/P><\/span><\/P>Je sais que les utilisateurs ne peuvent pas choisir le "field type" lors du partage sur ArcGIS Online, donc j'essaie de définir une première ligne fictive et de contrôler leurs types de champs. Je cherchais des documents expliquant comment décider d'un field type dans ArcGIS for Excel, mais je n'ai trouvé que des documents pour 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>J'ai observé que leurs valeurs "all" (en particulier, Text ou Number) ainsi que "The format of a cell" dans Excel influencent leurs types de champs, mais j'ai besoin de plus d'informations...<\/P>
<\/span><\/P>Je sais que les utilisateurs ne peuvent pas choisir le "field type" lors du partage sur ArcGIS Online, donc j'essaie de définir une première ligne fictive et de contrôler leurs types de champs. Je cherchais des documents expliquant comment décider d'un field type dans ArcGIS for Excel, mais je n'ai trouvé que des documents pour ArcGIS Pro.<\/P>
<\/P>
J'ai observé que leurs valeurs "all" (en particulier, Text ou Number) ainsi que "The format of a cell" dans Excel influencent leurs types de champs, mais j'ai besoin de plus d'informations...<\/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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.