Problems with AddCatalogLayers
Hi,
I am trying to use the AddCatalogLayers (https://docs.geocortex.com/essentials/gvh/latest/commands-help/#/commands/Layer%20Catalog/AddCatalogLayers) command in a workflow. I am facing two problems:
- The layers I added earlier are removed
- If the layername contains a space, I get an error message: "The following Layer Catalog items failed to initialize. They may have been renamed or you no longer have sufficient permissions to access these items: [name of the layer]"
0
-
Berend, have you seen this:
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906f2000000k9haAAA
It appears that there can be no spaces in the parameters of the command. Hopefully this can be resolved as you noted, that the tool itself will allow the addition of layers with spaces in their name.0 -
Just adding the solution again here, as the link in Erik's comment is no longer working.
In the RunExternalCommand activity in a workflow, the Command Name should be "AddCatalogLayers", and the Command Parameter should be formatted like "<Layer Catalog ID>.<map service ID>.<layer name in map service>,<Layer Catalog ID>.<map service ID>.<another layer name in map service>".
For example, if layer catalog ID is "MyLayerCat", and map service ID is "0", and I'm adding a layer named "Boundaries" and another layer named "Towns" then the value in the Command Parameter should be...
"MyLayerCat.0.Boundaries,MyLayerCat.0.Towns".0 -
Solution also on this post https://support.geocortex.com/essentialsGSCForumDetail?sub-nav=forum&main-nav=essentials&id=0D5f200006aOepUCAS 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare