I have been trying to execute a number of processes (for example 'watershed basins' or 'channel network' - as per this tutorial - https://docs.qgis.org/3.22/en/docs/training_manual/processing/hydro.html?highlight=hydrological - using a DEM which you can access here: https://drive.google.com/file/d/1jNUrHuMYh8BbSOb6eOSuvVxDRQiyEdCQ/view?usp=sharing)
I often receive the error:
The following layers were not correctly generated.
On some occasions, with some processes, it will produce the layers and give the error, and with other processes it won't produce anything - just leaving me with the error.
The process appears to run OK until the end when it says:
Loading resulting layers
The following layers were not correctly generated.
/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_oNVWGm/4fa5dfa139c148b1917b210ad3bab266/BASINS.sdat
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
This first happened when I was using SAGA tools in version 3.16, then I upgraded to version 3.22.3 (having read that there were new SAGA tools as plugins, and thinking this change might help), but I am experiencing the same issue (even if I have now eliminated the yellow warning about compatibility that used to annoy me).
Can anyone suggest something to fix this or offer insight into what is causing an issue?
For context, I have virtually never been able to use GRASS or SAGA tools in QGIS without some issue like this, but nobody seems to ever have any helpful insight as to what might even be going wrong.
I have now reverted to v3.16 and - to help give a more precise example of one case where this happens (though I get this fairly often), I will outline what I was doing, stepping through the tutorial mentioned above, this is what happens:
Catchment Area - completes (with errors) but creates three raster layers. Errors read as: "Loading resulting layers The following layers were not correctly generated. •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/4508dbbc6002431f8958336d1a566222/ACCU_RIGHT.sdat •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/5d575b49da8a478cbfa7dd9764a75618/ACCU_TOTAL.sdat •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/bb7d894ec2f446c2af331a231fd17c06/VAL_MEAN.sdat •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/f42e3a49c6a243ab8afc5299bd20498d/ACCU_LEFT.sdat"
At the next step - running the Channel Network process (as described in the walkthrough), it fails and generates no new layer(s). Error messages are: "The following layers were not correctly generated. •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/29e7c4729769418db25af2d93065c72b/SHAPES.shp •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/385031af01d741c79771cb18ab5210f5/CHNLNTWRK.sdat •/private/var/folders/1z/ct6tv26d6g74hcqcg25wk14m0000gn/T/processing_vlMXXm/6464b7f9bde340e69a46ae52a24b7430/CHNLROUTE.sdat"
This was where I cannot continue (in both versions of QGIS).
I have been trying to execute a number of commands
is not exact enough. The error means that the result would have been written to a file at the given location but something, at some stage failed.