Numéro d’ID de bogue |
BUG-000172250 |
Envoi | November 14, 2024 |
Dernière modification | January 5, 2025 |
S’applique à | ArcGIS Online |
Version trouvée | Nov 2024 |
Système d’exploitation | N/A |
Version du système d’exploitation | N/A |
Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
Informations supplémentaires
Files created during notebook web tool runs are not stored in the workspace directory (/arcgis/home). Instead, specify a relative path when writing the file. Here is an example of how a variable named "output_csv" configured as a file output parameter should be created:
csv_path = f"test.csv"
f = open(csv_path, mode="a", encoding="utf-8")
f.write("test1, test2, test3, test4")
f.close()
output_csv = {"url": csv_path}
With the configurations above, the web tool should output a CSV file that can be downloaded from the analysis result in Map Viewer. To retain a file output from notebook web tools, add logic in the notebook code to add the file to the ArcGIS content as an item.
Solution de contournement
Run straight from Notebook.
Étapes pour reproduire