Skip to content

Workflow "Save as Umbraco content node" field "Save location"(NodeId) is broken after workspace restore #133

@ygrave

Description

@ygrave

Hi

We are running Umbraco Cloud. On our Development environment we have Umbraco Forms set up. While setting up local project I restored workspace from our Development environment. I have used this documentation https://our.umbraco.com/documentation/umbraco-cloud/Deployment/Restoring-content/.

After restore I have noticed that field "Save location" of workflow "Save as Umbraco content node" of our forms is empty. But on Development environment it is filled in.

When I open workflow "Save as Umbraco content node" I get an error "Request error: The URL returned a 404 (not found): /umbraco/backoffice/umbracoapi/entity/GetById" error When I try to submit form on local environment I get an error "System.ArgumentException: No content with that id. (Parameter 'parentId')" in log.

I found that field "RootNode" in workflow's json has id of content node from Development environment, but the same node on my local environment has different id(but the same Unique ID). After manual fix of id in database issues with "Save location" and form submitting were fixed.

Is it expected behavior of restore? Is it any way to avoid manual database fixes? Is it any way to change broken "Save location" from UI?

Thanks,

Reproduction

Deploy Umbraco Form from Base line to child and the location is empty and cannot be selected

Bug summary

* Write a short summary of the bug
* Try to pinpoint it as much as possible
* Try to state the _actual problem_, and not just what you _think_ the
  solution might be.
* When I deploy from the base line to a child, we lose the location of the workflow. See also attachment for the error.

Specifics

Where applicable:
* [Mention the URL where this bug occurs, if applicable](https://kennisplatform-aol-demo.euwest01.umbraco.io/)
* What version are you using (Umbraco Form 9.4.2. / Umbraco 9.5.2 / Deploy 9.4.1)
* What browser and version you are using (All)
* Please mention if you've checked it in other browsers as well Yes
* Please include *full error messages* and *screenshots* if possible

Steps to reproduce

* Clearly mention the steps to reproduce the bug
* On Base line a create a Form with a workflow. In this workflow I want to save the form data inside a Umbraco node. I select the correct location and it's working.
* When I deploy from the Base Line to a child, we lose this location and it's impossible to select again the correct location. 

Expected result

* What did you _expect_ that would happen on your site? That the save location of the workflow would be present.
* Describe the intended/desired outcome after you did the steps mentioned.

Actual result

ErrorUmbracoFromDeploy

If you need more information, please let me know.
In advance thanks. #https://our.umbraco.com/forum/using-umbraco-and-getting-started/109239-workflow-save-as-umbraco-content-node-field-save-location-nodeid-is-broken-after-workspace-restore

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions