Bug report #10080
Model does not show up in toolbox due to erroneous "Error in algorithm name"
|Affected QGIS version:||2.4.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18548|
I'm not sure why this happens or how to even replicate this. I have tried with the same models on different computers and the error is the same.
A number of models in a model chain all work currently and show up in the processing toolbox. However one model which references all the model does not show up in the toolbox because of an error.
Could not load model alptruth_final.model Error in algorithm name: modeler:terraintraps
However the terraintraps.model model works fine and the alptruth_final.model itself can be opened up manually in the graphical modeler and runs successfully. It will just not show up in the toolbox. Changing the names of the models does not remove the error, nor does making a new model with similar algorithms and a different name and using that.
Can provide data set and models if needed.
#2 Updated by Thomas Horner about 7 years ago
This is getting ridiculous.
I cannot add any models. I cannot reference any models. Every model that I add that references any other model has a high chance of returning this error, no matter what the model names or file names are. Again, this has now made the graphical modeler almost entirely unusable. Yet everything works perfectly fine by itself. I have no idea why some models refuse to show up and return this error while others work fine.
#3 Updated by Thomas Horner about 7 years ago
It looks like this has something to do with the number of model hierarchies in each algorithm. For instance all of the ones failing to show up in the tool box have other SEXTANTE models inside of their model chain... and these SEXTANTE models have more SEXTANTE models inside the model chain. Models that only have one SEXTANTE model inside (that has no SEXTANTE models itself) show up in the toolbox okay.
#4 Updated by Victor Olaya about 7 years ago
- Status changed from Open to Feedback
The modeler only support one level of nesting. A model with a model that itself contain another model will not work. That's a limitation of the modeler.
I will write it in the documentation, so it is documented.
Thanks for your help!