Created on 04-24-2018 12:44 AM - edited 09-16-2022 06:08 AM
{"message": "Problem installing fixture '/tmp/tmp31Ptfm.json': Document2 matching query does not exist."}
Created 04-24-2018 03:41 AM
I am also facing same problem. Any suggestions?
Created 04-25-2018 02:43 AM
Hello. I had the same problem with coordinators (workflows on their own worked just fine)
What did the trick for me was to manually modify the coordinator.json, and move the coordinator object at the end of the file.
Maybe this happens because of the dependency you set for the coordinator, and it looks for the workflow that is not yet loaded.
Pretty wierd, as in some cases the export actually writes them in the good order.
Created 04-26-2018 12:03 AM
[ { "pk": 7, "model": "desktop.document2", "fields": { "uuid": "29f4a162-d3ea-72b4-f031-08da995254ab", ..... "owner": [ "importinguser" ], ......
"parent_directory": [ "bb0c705b-db54-4e3b-9afa-a849ccad3994", 1, false ],
Hope the above helps.
Created on 12-12-2018 02:59 AM - edited 12-12-2018 03:05 AM
I rediscovered what@Shikkou pointed out, and the solution worked for me.
I will elaborate the action step, as it's not super clear from his answer.
Say your 'Master-Workflow' looks like this,
When you export this workflow, the exported json file, Master-Workflow.json might end up looking like
[ { .... "name": "SUB-WORKFLOW-1-0" }, { .... "name": "MASTER-WORKFLOW" } { .... "name": "SUB-WORKFLOW-2" }, { .... "name": "SUB-WORKFLOW-1-1" }, ]
If Sub-Workflow-2 lists either of Sub-Workflow-1-0 or Sub-Workflow-1-1 as a dependency, it will throw the error OP mentions.
The solution is to simply edit 'Master-Workflow.json' to reflect the correct order, which in this case looks like
[ { .... "name": "SUB-WORKFLOW-1-0" }, { .... "name": "SUB-WORKFLOW-1-1" }, { .... "name": "SUB-WORKFLOW-2" }, { .... "name": "MASTER-WORKFLOW" } ]
You should now be able to import the entire thing!
P.S. - Unlike what @Adlin has pointed out, we were able to import entire workflows between users on different clusters without making any of the changes he has listed.
Created 08-06-2020 04:54 AM
@bktahathanks, I also faced same issue, I just reorder the some part of workflow in json file and it works.