Guided Add layers from file in Workflow
So it just doesn't click between operations and me…
I want to add the "Guided Add layers from file" functionality as described in the Standard Commands to visualize data from a shapefile (.zip). When I configure the commands directly in my webapp through a button in vs web designer, there is no problem and everything works as intended.
But when I run those commands through Run Operation/Command in vs workflow, the first command prompts the choose file dialoge, but with the next Run Operation/Command with results.upload-data-from-files I just keep getting errors.
The shapefile (simple single line feature) doesn't seem to be the problem, as it works in the web designer button function. I tried several different shapefiles as well.
I also tried several combinations of Run Operation and Run Command.
The .result of the first Run Operation with system.read-files (operation1) is:
{ "blobs": [ { "path": "./xyz.zip", "relativePath": "./xyz.zip" } ]}
The errormessage of the next Run Operation with results.upload-data-from-files (operation2) is:
Error in footer element's submit event in a Display Form activity: [WF: activity error] Cannot read properties of undefined (reading 'blobs')
I tried the hint from my last problem and added a Create File activity between operation1 and operation2, but with no success.
I tried building the arguments for operation2 as described here. No success.
Do I miss anything?
I'm thankful for any hints!
Greetings,
Chris
-
Could you share the workflow, or at least the input parameters of ‘operation2’?
0 -
Hello Berend,
good news first: I've got it sorted out!
So it seems, that for the results.upload-data-from-files operation it matters with which software you ziped the .zip. (got a hint from a coworker)
The operation doesn't like 7zip comprimised files. With Windows ziped files it has no Problem. I couldn't really sort it out why that is the case. But since in my case, the .zip will come directly from an FME Server, I just had to get it going from there.
As Parameter I just pass the .result of the foregoing operation.
So from here on, every following operation works, till...
The bad news:
Now I'm stuck with the layers.set-title operation and every command from there on. But now the error message for every operation is ‘Unknown operation “layers.set-title”’ (operationname depending on the operation).
Im passing the layers.edit-symbols operation.result which looks like the LayerSettingsArgs.
Since it's a pretty big object, im posting just the structure here:{labelingInfo: [],layers: [Proxy(t)],maps: Proxy(t) {},popupTemplate: [{…}],symbols: [a],taskSettings: [{…}],title: ['Import1'],[[Prototype]]: Object}So to end with my opening statement: it just doesn't click between operations and me…
0 -
Maybe because layers.set-title is a command and not an operation? Are you using the Run Command activity?
0 -
Dear Berend,
once again, you are not the hero I deserve, but the hero I needed!
Thank you for your help, now everything works as intended.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires