Skip to content

Can't edit in Field Maps when a Web Map is created with the ArcGIS API for Python #2501

@Clubdebambos

Description

@Clubdebambos

Describe the bug
If I create a WebMap manually and add a feature layer and save, I can open Field Maps and edit the features, points for example. However, when create the WebMap with the ArcGIS API for Python, or save an existing one created manually I lose the ability to edit.

To Reproduce
Steps to reproduce the behavior:
Create a WebMap with a single point layer and save. Open in Field Maps and you can edit. Create a copy of the WebMap with the code below. Open in Field Maps, no option to edit.

from arcgis.gis import GIS
from arcgis.map import Map
agol = GIS("home")

original_wm_item = agol.content.get("WM_ITEM_ID")
map_obj = Map(original_wm_item) # you can also try create a new Ma object and add a layer and save. Same issue.

wm_item_dict = {
    "title" : "FM Testing Map",
    "snippet" : "FM Testing Map",
    "description" : "FM Testing Map.",
    "tags" : "Testing,Field Maps"
}

wm_item = map_obj.save(
    item_properties = wm_item_dict
)
wm_item

error:
No python error code, you simply cannot edit in Field Maps.
Screenshots
If applicable, add screenshots to help explain your problem.

Expected behavior
I expect the copy of the original WebMap to behave the exact same as if I created it manually.

Platform (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome / Edge
  • Python API Version: 2.4.2

Additional context
Add any other context about the problem here, attachments etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions