VSW 5.28.1:“tasks.identify” fails to return any data and return an error
Hi All,
“tasks.identify” fails to return any data and return an error, what might be the issue here?
Please note that I run the workflow using wkid:28191
The workflow runs successfully on our maps that have wkid:28191 without “run command” and the error return after adding this activity (run command)
Below the code of my workflow:
{
"_properties": {
"isServerWorkflow": false
},
"components": [{
"id": 2,
"steps": [{
"id": 3,
"inputs": {},
"position": "-100,100",
"purpose": "start",
"title": "Start",
"transitions": [{
"id": 81,
"inputs": {},
"position": "-10,160 -10,270",
"sourceConnector": "bottom",
"target": {
"id": 11
}
}]
}, {
"action": "gcx:wf:forms:form:DisplayForm",
"id": 11,
"inputs": {
"form": {
"accessors": [],
"code": "resources.forms[values.id]",
"values": {
"id": 12
}
}
},
"name": "form1",
"position": "-130,270",
"title": "Display Form",
"transitions": [{
"id": 68,
"inputs": {},
"position": "-10,390 -10,460",
"sourceConnector": "bottom",
"target": {
"id": 22
}
}]
}, {
"action": "gcx:wf:core::If",
"id": 22,
"inputs": {
"condition": {
"accessors": ["$form1"],
"annotations": [{
"count": 6,
"index": 0,
"kind": "idref"
}],
"code": "$form1.result === \"submit\"",
"source": "$form1.result === \"submit\""
}
},
"position": "-70,460",
"title": "If",
"transitions": [{
"branch": "true",
"id": 80,
"inputs": {},
"position": "-70,490 -90,490 -90,610",
"sourceConnector": "left",
"target": {
"id": 25
},
"targetConnector": "top"
}, {
"branch": "false",
"id": 140,
"inputs": {},
"position": "50,490 170,490",
"sourceConnector": "right",
"target": {
"id": 139
},
"targetConnector": "left"
}]
}, {
"action": "gcx:wf:core::If",
"id": 25,
"inputs": {
"condition": {
"accessors": ["$form1", "$form1", "$form1", "$form1", "$form1", "$form1", "$form1", "$form1"],
"annotations": [{
"count": 6,
"index": 2,
"kind": "idref"
}, {
"count": 6,
"index": 44,
"kind": "idref"
}, {
"count": 6,
"index": 89,
"kind": "idref"
}, {
"count": 6,
"index": 131,
"kind": "idref"
}, {
"count": 6,
"index": 176,
"kind": "idref"
}, {
"count": 6,
"index": 218,
"kind": "idref"
}, {
"count": 6,
"index": 263,
"kind": "idref"
}, {
"count": 6,
"index": 305,
"kind": "idref"
}],
"code": "(($form1.state.x.value.numeric < 80342) && ($form1.state.x.value.numeric < 176660)) || (($form1.state.x.value.numeric < 73150) && ($form1.state.x.value.numeric < 211309)) || (($form1.state.y.value.numeric < 69347) && ($form1.state.y.value.numeric < 220335)) || (($form1.state.y.value.numeric < 86906) && ($form1.state.y.value.numeric < 137834))",
"source": "(($form1.state.x.value.numeric < 80342) && ($form1.state.x.value.numeric < 176660)) || (($form1.state.x.value.numeric < 73150) && ($form1.state.x.value.numeric < 211309)) || (($form1.state.y.value.numeric < 69347) && ($form1.state.y.value.numeric < 220335)) || (($form1.state.y.value.numeric < 86906) && ($form1.state.y.value.numeric < 137834))"
}
},
"position": "-150,610",
"title": "If",
"transitions": [{
"branch": "true",
"id": 28,
"inputs": {},
"position": "-150,640 -300,635",
"sourceConnector": "left",
"target": {
"id": 27
},
"targetConnector": "right"
}, {
"branch": "false",
"id": 82,
"inputs": {},
"position": "-30,640 190,640 190,700",
"sourceConnector": "right",
"target": {
"id": 29
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:ui::Alert",
"id": 27,
"inputs": {
"text": "\"خطأ\"",
"title": "x"
},
"position": "-540,620",
"title": "Alert",
"transitions": [{
"id": 144,
"inputs": {},
"position": "-420,650 -420,700",
"sourceConnector": "bottom",
"target": {
"id": 142
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:ui::Alert",
"id": 29,
"inputs": {
"text": "\"true\""
},
"position": "70,700",
"title": "Alert",
"transitions": [{
"id": 148,
"inputs": {},
"position": "190,730 190,780",
"sourceConnector": "bottom",
"target": {
"id": 33
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:arcgis::CreatePoint",
"id": 33,
"inputs": {
"spatialReference": {
"accessors": [],
"code": "28191",
"source": "28191"
},
"x": {
"accessors": ["$form1"],
"annotations": [{
"count": 6,
"index": 0,
"kind": "idref"
}],
"code": "$form1.state.x.value.numeric",
"source": "$form1.state.x.value.numeric"
},
"y": {
"accessors": ["$form1"],
"annotations": [{
"count": 6,
"index": 0,
"kind": "idref"
}],
"code": "$form1.state.y.value.numeric",
"source": "$form1.state.y.value.numeric"
}
},
"name": "point1",
"position": "70,780",
"title": "Create Point",
"transitions": [{
"id": 102,
"inputs": {},
"position": "190,850 190,900",
"sourceConnector": "bottom",
"target": {
"id": 53
}
}]
}, {
"action": "gcx:wf:arcgis::SymbolFromJson",
"id": 41,
"inputs": {
"json": "{\n \"type\": \"esriSMS\",\n \"style\": \"esriSMSCircle\",\n \"color\": [255,0,0,255],\n \"size\": 20,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"outline\": \n {\n \"color\": [0,0,0,255],\n \"width\": 10\n }\n}"
},
"name": "symbol1",
"position": "70,1030",
"title": "Get Symbol From JSON",
"transitions": [{
"id": 104,
"inputs": {},
"position": "70,1065 -130,1065 -130,800 -270,800 -270,820",
"sourceConnector": "left",
"target": {
"id": 67
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:app::RunCommand",
"id": 43,
"inputs": {
"commandName": {
"accessors": ["tasks"],
"annotations": [{
"count": 5,
"index": 0,
"kind": "idref"
}],
"code": "tasks.identify",
"source": "tasks.identify"
},
"commandParameter": {
"accessors": ["$feature2"],
"annotations": [{
"count": 9,
"index": 0,
"kind": "idref"
}],
"code": "$feature2.feature",
"source": "$feature2.feature"
}
},
"position": "-380,1160",
"title": "Run Command"
}, {
"action": "gcx:wf:arcgis::CreateGraphic",
"id": 53,
"inputs": {
"geometry": {
"accessors": ["$point1"],
"annotations": [{
"count": 7,
"index": 0,
"kind": "idref"
}],
"code": "$point1.point",
"source": "$point1.point"
}
},
"name": "feature2",
"position": "70,900",
"title": "Create Feature",
"transitions": [{
"id": 103,
"inputs": {},
"position": "190,970 190,1030",
"sourceConnector": "bottom",
"target": {
"id": 41
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:arcgis::SetFeatureSymbol",
"id": 67,
"inputs": {
"feature": {
"accessors": ["$feature2"],
"annotations": [{
"count": 9,
"index": 0,
"kind": "idref"
}],
"code": "$feature2.feature",
"source": "$feature2.feature"
},
"symbol": {
"accessors": ["$symbol1"],
"annotations": [{
"count": 8,
"index": 0,
"kind": "idref"
}],
"code": "$symbol1.symbol",
"source": "$symbol1.symbol"
}
},
"position": "-390,820",
"title": "Set Feature Symbol",
"transitions": [{
"id": 42,
"position": "-270,850 -270,890 -260,890 -260,910",
"sourceConnector": "bottom",
"target": {
"id": 73
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:arcgis::GetFeatureSetExtent",
"id": 73,
"inputs": {
"features": {
"accessors": ["$feature2"],
"annotations": [{
"count": 9,
"index": 0,
"kind": "idref"
}],
"code": "$feature2.feature",
"source": "$feature2.feature"
}
},
"name": "getFeatureSetExtent1",
"position": "-380,910",
"title": "Get Feature Set Extent",
"transitions": [{
"id": 78,
"inputs": {},
"position": "-260,980 -260,1010",
"sourceConnector": "bottom",
"target": {
"id": 76
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:arcgis::SetViewExtent",
"id": 76,
"inputs": {
"geometry": {
"accessors": ["$getFeatureSetExtent1"],
"annotations": [{
"count": 21,
"index": 0,
"kind": "idref"
}],
"code": "$getFeatureSetExtent1.center",
"source": "$getFeatureSetExtent1.center"
}
},
"name": "setMapExtent",
"position": "-380,1010",
"title": "Set Map Extent",
"transitions": [{
"id": 44,
"position": "-260,1080 -260,1160",
"sourceConnector": "bottom",
"target": {
"id": 43
},
"targetConnector": "top"
}]
}, {
"action": "gcx:wf:core::Exit",
"id": 139,
"inputs": {},
"position": "170,460",
"title": "Exit"
}, {
"action": "gcx:wf:core::Exit",
"id": 142,
"inputs": {},
"position": "-510,700",
"title": "Exit"
}]
}],
"deploymentConfig": {
"supportedApps": {
"GWV": true
}
},
"designerVersion": "5.28.1+3",
"forms": [{
"defaults": {},
"elements": {
"footer": {
"enabled": true,
"items": {
"0": {
"default": true,
"index": 0,
"label": {
"markdown": "Submit"
},
"validates": true,
"value": "submit"
},
"1": {
"index": 1,
"label": {
"markdown": "Cancel"
},
"validates": false,
"value": "cancel"
}
},
"section": "footer",
"type": "ButtonBar"
},
"header": {
"section": "header",
"title": {
"markdown": "Form Title"
},
"type": "Header"
},
"x": {
"enabled": true,
"index": 0,
"rowIndex": 0,
"rowNumber": 0,
"title": {
"markdown": "x"
},
"titleLocation": "beside",
"type": "Number"
},
"y": {
"enabled": true,
"index": 1,
"rowIndex": 0,
"rowNumber": 1,
"title": {
"markdown": "y"
},
"titleLocation": "beside",
"type": "Number"
}
},
"id": 12
}],
"licenseInfo": {
"licenseUrl": "https://lubnaj-pc.molg.pna.ps/vertigisstudio/workflow/service/auth/license"
},
"start": {
"id": 3
}
}
Any help will be very appreciated
Best,
Lubna
0
-
+1
1 -
I am still have an issue in run command "Identify"
Best,
Lubna
1 -
Seeing the error might be helpful. Also, what are the input arguments to your identify command? Are you able to run the the builtin identify tool?
1
Please sign in to leave a comment.
Comments
3 comments