|
POST
|
After following Brian's answer above I was also able to add the following to my settings.json file and VS Code finally starts up my Pro env in the terminal by default without the conda init warning. I'm using command prompt as my default shell. "python.terminal.activateEnvironment": false
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [
"/k",
"C:/Program Files/ArcGIS/Pro\\bin/Python/Scripts/proenv.bat"],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
}
}
... View more
11-30-2022
06:58 AM
|
0
|
0
|
5115
|
|
POST
|
Also interested in this as all of our photo submissions have more than one file. Even just tacking a 1, 2, or 3 at the end of each subsequent file would work.
... View more
11-21-2022
06:19 AM
|
0
|
0
|
2528
|
|
POST
|
I have an editing-mode Survey123 webform embedded in a dashboard that filters off of a category selector. About 1 in every 5 selections of a feature from the category selector the form fails to load: The form seems to pop up for a split second before moving to the error. I don't think it has anything to do with the attributes in the field because I can reload the same feature over and over and it will error out eventually. However reselecting the record will generally prompt it to load correctly. Its coming from a feature layer hosted in an SDE. Not seeing any error in Chrome developer tools. Anything I can try?
... View more
11-15-2022
03:26 PM
|
0
|
11
|
5122
|
|
POST
|
This is occurring to me as well for any fields that are hidden. I've confirmed bind:type and esri:bind:type are correct as well as the alias. Toggling between hidden or text is the difference whether or not it will publish.
... View more
11-12-2022
07:54 AM
|
0
|
2
|
2664
|
|
POST
|
I have been getting this quite often lately. Luckily hitting update again will generally fix it but definitely annoying.
... View more
10-27-2022
06:05 PM
|
0
|
0
|
1341
|
|
POST
|
Have a survey that is meant to be opened using the inbox to view current features and submit a pass/fail on them. On a very small percentage (few dozen out of thousands) some users are getting a "500 Error: Attachment does not have contentType". The layer is a feature service coming from an SDE so I opened up the attachment table expecting to see some null values in the content type field but everything was present. Here are the attachments for one of the features that is giving the error. They all appear in the inbox as existing photos. Any ideas on this would be appreciated!
... View more
10-25-2022
07:57 AM
|
0
|
1
|
520
|
|
POST
|
This has happened periodically before be it seems ever since upgrading to 3.0 Pro is adamant about closing as soon as I experience the smallest network hiccup. We use a concurrent license server and it used to be if it lost it would say you have 24 hours and it was good about reconnecting. Now it goes straight to "Pro will now close" and just goes into an endless loop of opening licensing error messages. This happens to me at least 2 or 3 times a day.
... View more
09-27-2022
10:09 AM
|
0
|
0
|
394
|
|
POST
|
Yep you read the title right. Luckily this happened on a test layer. I created a very simple point layer with a related table, only a couple of text fields in each (built natively in AGOL, not published from Pro). Purpose was to be a sandbox layer for testing out Arcade expressions in Field Maps to hopefully replace a few Survey123 forms. Built a simple template in the Field Maps app page and tested a few calculated expressions (does it really not let you submit if a calculation fails? That's a no-go). Well after submitting a point, I went into its web map viewer and clicked on "Forms" on the right-side panel. It acted like no form was built so I redid the template and saved. Soon as it went back to the web map, the point layer was throwing data errors. I haven't been able to access the feature layer since. Never seen a layer break like that before. Not a huge deal since I was just messing around, but does make me nervous about trying it in a production environment. Is there anything else that might have caused that?
... View more
09-02-2022
05:49 PM
|
0
|
1
|
661
|
|
POST
|
Brilliant! I figured it needed something SQL rather than Arcade in the GroupBy. This is just the trick I needed, thanks!
... View more
08-16-2022
05:51 AM
|
0
|
0
|
4767
|
|
POST
|
I am trying to come up with a data expression to count how many site visits occurred on each day (using created_date). The normal GroupBy function on the field groups it down to the minute, but I need the day. I've tried doing this but it has no effect. Any ideas? var daily_visits = GroupBy(fs, [{ name: 'date', expression: Text('created_date','Y-MM-DD')}], [{name: 'total', expression: '1', statistic: 'COUNT'}]) The end goal here is to create a serial chart with cumulative visit numbers over time. I do have a working expressions for that however with the number of records it loads very slowly so I'm trying to group them together before it cycles through and does its counting. Thanks
... View more
08-15-2022
02:27 PM
|
0
|
5
|
4820
|
|
POST
|
Is the attachments function in either Arcade pop-ups or dashboard data expressions not available in Enterprise 10.9.1? The documentation seems to suggest so but no matter what I do it just says "Not Available" next to the function. Thanks!
... View more
08-10-2022
11:34 AM
|
0
|
0
|
516
|
|
POST
|
Scratching my head trying to get a geoprocessing tool to work. If I run it in Pro or standalone in Pycharm it works fine, but when I publish and run it as a service it fails when trying to connect to the GIS. Locally, it works if I try either gis = GIS("home") or gis = GIS("https://........), but I get a "staging error" when I try to publish a tool using the latter method (the log just says error 999999). I tried doing a test with a 3 line tool and as soon as it gets to line 3 its fails import arcpy from arcgis import GIS gis = GIS('https://.....') Trying on a federated Enterprise 10.9.1 using IWA login. Guessing its not pulling credentials correctly based on the error below. We have a second portal which is not IWA and using GIS('home') works fine on it. Traceback (most recent call last): File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 610, in _handle_response data = resp.json() File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\requests\models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\json\__init__.py", line 348, in loads return _default_decoder.decode(s) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1929, in _check_product baseurl + "/info", params={"f": "json"}, add_token=False File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 506, in get ignore_error_key=ignore_error_key, File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 613, in _handle_response raise Exception(resp.text) Exception: Server Error 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 3, in File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 483, in __init__ raise e File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 444, in __init__ proxy=kwargs.get("proxy", None), File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 180, in __init__ proxy=kwargs.get("proxy", None), File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 234, in __init__ self._product = self._check_product() File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1932, in _check_product res = self.get(baseurl + "/info", params={"f": "json"}) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 506, in get ignore_error_key=ignore_error_key, File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 625, in _handle_response self._handle_json_error(data["error"], errorcode) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 648, in _handle_json_error raise Exception(errormessage) Exception: Your login session has been reset. Please try again. (Error Code: 404)
... View more
07-25-2022
08:29 AM
|
1
|
1
|
1103
|
|
POST
|
I've been fighting with this problem as well and after a lot of trial and error I've found pulldata only works in a web form if dates are formatted YYYY-MM-DD in the CSV.
... View more
06-07-2022
10:21 AM
|
0
|
0
|
614
|
|
POST
|
Brand new to Javascript so I'm hoping I'm missing something simple here, but I have a very simple page cloned from the feature table with editing enabled sample code but swapped out my own feature layer. For the most part it works great but if I tell the table to sort on a column, it will select the correct feature but push updates to a different one. Here's where I select the record, I see the correct feature highlight. Changing the status field in the same record updates a different location. This only happens if I include direction: "asc" in one of the field configurations. Assuming there is a place for me to identify the objectid? Here's my page for reference. Thanks everyone <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title> FeatureTable widget with editing enabled | Sample | ArcGIS API for JavaScript 4.22 </title> <link rel="stylesheet" href="https://js.arcgis.com/4.22/esri/themes/light/main.css" /> <script src="https://js.arcgis.com/4.22/"></script> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #viewDiv { height: 50%; width: 100%; } .container { height: 50%; width: 100%; } </style> <script> require([ "esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/widgets/FeatureTable", "esri/widgets/Editor" ], (Map, MapView, FeatureLayer, FeatureTable,Editor) => { let featureLayer; const features = []; const map = new Map({ basemap: "streets-navigation-vector" }); const view = new MapView({ container: "viewDiv", map: map, center: [-95.75,29.18], zoom: 7, popup: { autoOpenEnabled: false } //disable popups }); view.when(() => { featureLayer = new FeatureLayer({ // URL to the service url: "https://xxxxxxxxxxxxxxxxx/FeatureServer/0", outFields: ["*"], title: "Emergency Reporting Areas" }); map.add(featureLayer); // Create the feature table const featureTable = new FeatureTable({ view: view, layer: featureLayer, editingEnabled: true, menuConfig: { items: [ { label: "Zoom to feature(s)", iconClass: "esri-icon-zoom-in-magnifying-glass", clickFunction: (event) => { zoomToSelectedFeature(); } } ] }, // Autocast the FieldColumnConfigs fieldConfigs: [ { name: "name", label: "Area Name", editable: false, direction: "asc" }, { name: "type", label: "Type", editable: false, }, { name: "boilwater", label: "Boil Water Notice?" }, { name: "evacuation", label: "Evacuation Status" }, { name: "poweroutage", label: "Power Outage?" }, { name: "highwater", label: "High Water?" } ], container: document.getElementById("tableDiv") }); const polyInfos = { layer: featureLayer, label:"name", updateEnabled: false, formTemplate: { // autocasts to FormTemplate elements: [ { // autocasts to FieldElement type: "field", fieldName: "name", label: "Area" }, { type: "field", fieldName: "type", label: "Type" }, { type: "field", fieldName: "poweroutage", label: "Power Outage" }, { type: "field", fieldName: "boilwater", label: "Boil Water?" }, { type: "field", fieldName: "evacuation", label: "Evacuation Status" } ] } }; const editor = new Editor({ view: view, layerInfos: [polyInfos], // It is possible to set snapping via the API by directly setting SnappingOptions in the Editor. This can also be toggled on/off using the CTRL key. By default snapping is not enabled, setting enabled to true toggles this. snappingOptions: { // Autocastable to snapping options enabled: true, // sets the global snapping option that controls both geometry constraints (self-snapping) and feature snapping. featureSources: [ { // Autocastable to FeatureSnappingLayerSource // Enable feature snapping on specified layer(s) layer: featureLayer } ] } }); // Get the FeatureLayer's layerView and listen for the table's selection-change event featureTable.on("selection-change", (changes) => { // If the selection is removed, remove the feature from the array changes.removed.forEach((item) => { const data = features.find((data) => { return data.feature === item.feature; }); if (data) { features.splice(features.indexOf(data), 1); } }); // If the selection is added, push all added selections to array changes.added.forEach((item) => { const feature = item.feature; features.push({ feature: feature }); }); }); view.ui.add(editor, "top-right"); function zoomToSelectedFeature() { // Create a query off of the feature layer const query = featureLayer.createQuery(); // Iterate through the features and grab the feature's objectID const featureIds = features.map((result) => { return result.feature.getAttribute(featureLayer.objectIdField); }); // Set the query's objectId query.objectIds = featureIds; // Make sure to return the geometry to zoom to query.returnGeometry = true; // Call queryFeatures on the feature layer and zoom to the resulting features featureLayer.queryFeatures(query).then((results) => { view.goTo(results.features).catch((error) => { if (error.name !== "AbortError") { console.error(error); } }); }); } }); }); </script> </head> <body> <div id="viewDiv"></div> <div class="container"> <div id="tableDiv"></div> </div> </body> </html>
... View more
02-03-2022
12:38 PM
|
1
|
0
|
601
|
|
POST
|
Update: Solved the problem by populating the null placeholder fields with URL parameters. This will let them edit exiting data before passing it back through the Javascript function. Ducktaped and clunky, but at least it lets them get nice looking text on their dashboard.
... View more
01-31-2022
11:59 AM
|
0
|
0
|
1308
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-06-2025 07:08 AM | |
| 2 | 02-26-2024 04:39 PM | |
| 1 | 05-13-2024 12:41 PM | |
| 1 | 06-05-2023 03:23 PM | |
| 1 | 02-03-2022 12:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-06-2025
07:06 AM
|