POST
|
We had a very similar problem in directing path logic. I tryed many of the same things as you have, with a similar lack of success.It was a problem with how == >= is interpreted. see rest. This is my answer to a similar problem see: https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1237671#M1757 Here is the explanation from our (esri.australia technical rep Razi Mosadeghi). I have verified that the suggested fixes work Please find below the explanation they have provided on why Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors')== 0) Does not work: It appears == 0 returns the string representation of the value here and not the actual value (an integer). In addition, core Arcade logic is playing a role here as well. In Arcade, the > and < operations will first try to evaluate the result as a string value. If that fails (because you aren't using a string), it will then try to evaluate the result as a integer, which is what we are using here. The == function doesn't have that same logic. It tries to compare a string to a string and then will fail if it can't. So, if you would like to use == 0 logic, we would need to do either one of the following: Use Number(jobExtendedProperty($job, 'tablenew', 'arcade')) == 0 when using an integer value Or, use jobExtendedProperty($job, 'tablenew', 'arcade')) == '0' if you are ok with using a string representation of the value This is my answer to a similar problem
... View more
06-22-2023
10:20 PM
|
0
|
0
|
234
|
POST
|
Can't tell exactly what you want. Maybe use an extended property for your date string and arcade to change the input parameters of the send web request step and then test the output of the web request step to branch your workflow creating a loop and exit in your overall workflow.
... View more
06-22-2023
10:04 PM
|
0
|
0
|
179
|
POST
|
We had a very similar problem in directing path logic. here is the explanation from our (esri.australia technical rep Razi Mosadeghi). I have verified that the suggested fixes work Please find below the explanation they have provided on why Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors')== 0) Does not work: It appears == 0 returns the string representation of the value here and not the actual value (an integer). In addition, core Arcade logic is playing a role here as well. In Arcade, the > and < operations will first try to evaluate the result as a string value. If that fails (because you aren't using a string), it will then try to evaluate the result as a integer, which is what we are using here. The == function doesn't have that same logic. It tries to compare a string to a string and then will fail if it can't. So, if you would like to use == 0 logic, we would need to do either one of the following: Use Number(jobExtendedProperty($job, 'tablenew', 'arcade')) == 0 when using an integer value Or, use jobExtendedProperty($job, 'tablenew', 'arcade')) == '0' if you are ok with using a string representation of the value
... View more
12-04-2022
09:50 PM
|
1
|
1
|
690
|
POST
|
Last piece of puzzle: Thanks Razi of Australian esri support. It appears == 0 returns the string representation of the value here and not the actual value (an integer). In addition, core Arcade logic is playing a role here as well. In Arcade, the > and < operations will first try to evaluate the result as a string value. If that fails (because you aren't using a string), it will then try to evaluate the result as a integer, which is what we are using here. The == function doesn't have that same logic. It tries to compare a string to a string and then will fail if it can't. So, if you would like to use == 0 logic, we would need to do either one of the following: Use Number(jobExtendedProperty($job, 'tablenew', 'arcade')) == 0 when using an integer value Or, use jobExtendedProperty($job, 'tablenew', 'arcade')) == '0' if you are ok with using a string representation of the value
... View more
09-12-2022
10:43 PM
|
0
|
0
|
749
|
POST
|
Hello all. I have managed to get this to work. Here is a close up of the diagram I have used the an extended properties table (switchtable with field nerrors) to hold the output value identifiedErrors from the EvaluateDataQuality. I have left the output as visible. This lets me change the stored value containing the number of identified errors. There are 3 paths out of the Update Job Properties step. The leftmost is triggered when the Update Job properties fails. The rightmost leading back to the editor for when there are errors has the expression: Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors') > 0) The middle path leading on to a Reconcile and Post step when there are No Errors has the expression: Boolean(!jobExtendedProperty($job, 'switchtable', 'nerrors') > 0) i.e. the NOT of the other expression. This works but Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors') == 0) does not with a message saying there is no path. Hope this help some-one else
... View more
06-19-2022
07:33 PM
|
0
|
1
|
867
|
POST
|
Thanks for checking. I later realized that error and updated the expression. Did not work either.
... View more
06-19-2022
07:22 PM
|
0
|
0
|
868
|
POST
|
Instead of using joboutputvalue I put errorsIdentified into extended property table and use jobExtendedProperty($job, '<table_name>', '<field_name>'. With the table visible I am sure of the value going into the branching. I have made some progress.If I use the expression : Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors') > 0) on the path back to the editor, that works. However the path errorsIdentified (nerrors in table switchtable) = 0 is never executed.
... View more
06-14-2022
12:29 AM
|
0
|
0
|
880
|
POST
|
I am trying to branch in my workflow based upon the output value 'errorsIdentified' of the EvaluateDataQuality step. This is for the server version using Enterprise 10.9.1 and Pro 2.9. I have tried setting the Path Logic using Expressions with the expression : Path 1 out of Evaluate Data Quality jobOutputValue($job, 'e876f36d-2683-e499-ae54-f44430d04daa', 'errorsIdentified') >0 Path 2 out of Evaluate Data Quality jobOutputValue($job, 'e876f36d-2683-e499-ae54-f44430d04daa', 'errorsIdentified') = 0 The workflow fails after the Evaluate Data Quality step with a message "No paths match return code" If have tried first branching on the return code from Evaluate Data Quality, placing a manual step on the "success output" and then again using the above expression. Same result. Any ideas ?
... View more
05-30-2022
12:50 AM
|
0
|
6
|
1003
|
POST
|
Many replies have suggested switching to python. Python doesn't do every thing VBA scripts could do ... low level arcobject control. You can get that with VB.Net or C#. If you know VBA then going to VB.Net is not such a great leap. My role has been converting our VBA ArcMap customizations to VB.NET. They involve a lot of arcobjects. I started out knowing some VB. I used the venerable book "Getting to Know ArcObjects" to get how arcobjects work. There are many little changes, but these get to be routine. Some relate to changes in VB from VBA to .Net, and some are specific to esri. Converting the use of Variant to Object can be a pain. However the biggest changes are in Windows forms e.g. how treeviews are traversed has been substantially changed. The other area of knowledge upgrade was getting fully into object orientated programming paradigm which is not really are the core of VBA. This changes the way you program ....
... View more
02-18-2016
08:14 PM
|
0
|
0
|
150
|
Title | Kudos | Posted |
---|---|---|
1 | 12-04-2022 09:50 PM |