Skip to content

.update_layout fails on Page if draft resource existis #138

@dgierszcc

Description

@dgierszcc

If there is an existing draft under the Pages Resources, an exception is thrown.

** Steps To Reproduce this behavior**

  1. Go to Page that has an existing draft Resource
  2. make modification to the layout
  3. run page.update_layout(layout)

Expected behavior
Draft Resource is deleted and the Page layout is updated

Observed behavior
Exception: Resource does not exist or is inaccessible: us1 /resources/https:/<org url like "mycompany.maps.arcgis.com">/sharing/rest/content/items//resources/draft-1657817271169.json?token=
(Error Code: 404)

Screenshots
image

Additional context
update_layout works fine if you first manually delete the draft through ArcGIS Assistant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions