Closed sirws closed 1 year ago
ArcGIS Online uses the following Content-Type for docx: Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
mimetypes.types_map['.docx'] = r"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
This is being looked at by the Notebooks team and we will update with any progress or information.
@sirws We were able to figure out what was happening. We created a fix to this 9 months ago and it was integrated into 2.1.0 of the python API. However, Online runs version 2.0.1 and it is not set to update until mid 2023.
A parameter that was not required before became required and that is why you are seeing the error. The best workaround until the update is made is to use the Python API 2.1.0 version in a local notebook or script.
Describe the bug It appears that the notebooks hosted in ArcGIS Online (v. 2.0.1) do not allow you to attach .xlsx files or .docx files. This is a rehash of this closed issue: https://github.com/Esri/arcgis-python-api/issues/1315
To Reproduce Upload an xlsx file or docx file to the files area in ArcGIS Online (/arcgis/home). Try to attach the file to a feature service.
error:
Screenshots
Expected behavior Based on the UI in ArcGIS Online, you should be able to attach .xlsx or .docx files. When you attach via the web UI, it uses this mime type for xlsx files: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Platform (please complete the following information):
2.0.1
] Hosted in ArcGIS OnlineAdditional context In looking at the mimetypes in ArcGIS Online hosted notebooks, I do not see a .xlsx or .docx in there. If I run the following code, it allows me to attach the files.