Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on cloning sales order details on invoiced orders #255

Open
kavila02 opened this issue Mar 4, 2022 · 3 comments
Open

Error on cloning sales order details on invoiced orders #255

kavila02 opened this issue Mar 4, 2022 · 3 comments

Comments

@kavila02
Copy link

kavila02 commented Mar 4, 2022

I created a workflow that clones an order and its related lines. It works great, except for invoiced orders. When I try to clone an invoiced order with products, I get error "The detail cannot be updated because the parent is not editable.". If I clone an invoiced order with no products or an active/submitted order, I get no error and the clone completes successfully.

image

I tried ignoring all fields (both on header and lines) that have to do with status or state in order to prevent the new order from being "locked" but no luck.

OS: Windows
Browser: Edge
CRM Version: Online
WorkflowTools version: 1.0.61.1

sressler-cargas added a commit to shaunressler/Dynamics-365-Workflow-Tools that referenced this issue Mar 8, 2022
Moved logic that updates parent record ID on clone into core CloneRecord logic. Fix for issue demianrasko#255.
@sressler-cargas
Copy link

We found that the core issue was that the CloneChildren step was first duplicating the record, then updating with a new parent record. This threw the error as it was attempting to add new lines to a closed record.

The new update sets the new parent record (and clears the previous parent if applicable) in the clone itself, not afterwards.

@lizm486
Copy link

lizm486 commented Sep 27, 2022

Hi - is there any update as to when the fix for this issue with cloning records with closed parent will be released? It will be super handy to be able to clone a completed order's associated order lines (and not just the completed order).

@kimxaviernati-alm
Copy link

@kavila02 may I ask how did you compose the Target Record URL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants