|
POST
|
Can someone from ESRI please have a good look at this. @Kory Kramer, @George Thompson, @Vince Angelo For some background: - ArcGIS Pro 2.1.3 on Windows 10 - PostgreSQL 9.6 on Ubuntu 18.04 running on a Virtualbox VM executed on the Windows host Situation: A line layer with a valid Definition Query set present in the TOC. The layer is an ArcGIS Query Layer (so a spatial database but not an enterprise geodatabase) and references a huge Europe OpenStreetMap extract containing +/- 65M records in the line table. This line table has both valid spatial index (GIST) and attribute indexes. The display performance of the layers in Pro's Map window is adequate, and actually surprisingly fast given the huge data source. The Definition Query set on the layer, see image, references an indexed field, osm_piste_58_type: If I insert the Definition Query in DBeaver IDE, and prepend it with the necessary SELECT...FROM... that is missing in the Definition Query itself, and run an execution plan, the query runs in less than 3 seconds (2163ms) and returns 38697 rows, so just under 40k records. The execution plan shows the database correctly using the available index ("Index Scan"): The problem: When I attempt to open the Attribute Table in Pro by right clicking the layer and choosing "Attribute Table", Pro, instead of showing the records near instantly as it should based on the 3 seconds execution plan, instead takes > half an hour to open the Attribute Table. This is the time needed for a full table scan. When it is finished, it does show the proper 40k records, so the final selection was made. When I enable logging in PostgreSQL and check the created log, I can see the SQL generated the moment I open the attribute table. Much to my surprise, even though the Query Layer had a Definition Query set, this Definition Query is not set on the SQL send to the database to restrict the binary cursor being created, as a consequence, the entire table seems subsequently to start being scanned in chunks of 1000 records, see the FETCH FORWARD 1000 statements in the log. This seems to go on the entire half hour, until a full table scan of all the millions of records is done, and the final table is created. As I wrote above, the final result in the Attribute Table, does correspond to the Definition Query, and is only the 38697 rows. To inspect this better, I copied both the cursor statement that is initially used to create the layer (which is fast!), and compared it with the above statement representing the opening of the Attribute Table in an OpenOffice document, see the below screenshots. Notice how the first screenshot, which represent the moment the layer is created when the Pro Map document is opened and the TOC layer generated, does contain the Definition Query in the WHERE statement. This WHERE statement is omitted though, in the second screenshot that represents the opening of the Attribute Table: - Creation of Query Layer: - Opening Attribute Table: Am I missing something here, or fundamentally misunderstanding what is going on and misinterpreting this data? Why is there no WHERE statement submitted to the database when opening the Attribute Table of a (Query) Layer?
... View more
06-08-2018
03:48 PM
|
4
|
24
|
14514
|
|
POST
|
This is just normal behaviour. While your dataset may be small and nothing to worry about, just imagine what would happen if ArcGIS would load a 100M records layer of 25GB file size stored in an enterprise geodatabase over your organization's network of 100Mbps... You would be waiting for at least 25000/(100/8)=2000 seconds, so close to 30 minutes / half an hour, before your attribute table would appear. And that assumes you will get the full 100Mbps, which you probably rarely will. So pulling all records from a large database table is not something you want to customarily do.
... View more
06-07-2018
06:57 AM
|
1
|
0
|
6174
|
|
POST
|
Looking at the screenshots you posted, I notice the file path to the File Geodatabase contains an extra "." dot character in a subfolder of the folder path: "ArcPro Misc.Work" This is just speculation, but it might be that ArcGIS Pro, and particularily this tool, trips over this dot character in the file path. It doesn't always, because I have had situations like this myself where Pro happily accepted the extra dot character, but it might be a cause of the failure in this particular tool. You might at the very least attempt to remove it to see what the tool does.
... View more
06-05-2018
05:28 AM
|
1
|
2
|
3320
|
|
IDEA
|
I think there are enough "Easter Eggs" in Pro without Jerry Garcia involved 😉
... View more
05-29-2018
01:53 PM
|
4
|
0
|
3936
|
|
IDEA
|
@Kory Kramer, Only patch releases 1.n.x and 2.n.x are guaranteed to not introduce breaking changes. In fact, one major change (although not a breaking one but enhancement), is that the Pro 2.1 minor version finally introduced the aprx.activeMap method. For programming with backwards compatibility in mind, these kind of new methods and functions are also vital, because calling the method in an older version will inevitably fail. That is why it is still important to be able to look up properties, methods and functions of older versions, even if the existing methods and functions of an older version did not have breaking changes in a new version.
... View more
05-27-2018
06:39 AM
|
0
|
1
|
4023
|
|
IDEA
|
Currently, the ArcGIS Pro Help only shows the data for the most recent version of ArcGIS Pro. Yet, there have been breaking changes between different versions of Pro. This issue affects especially arcpy development. Some arcpy classes have had breaking changes, that unfortunately cannot be looked up in the Help, since the Help only shows the most recent version. For those developers seeking to maintain backward compatibility, it would be really helpful if the Pro Help showed version numbers like for ArcMap, and allowed selection of a previous version:
... View more
05-27-2018
04:49 AM
|
37
|
20
|
7953
|
|
IDEA
|
Can't agree more. This unfortunately has been a long standing issue, with ESRI's focus always being to much on new development, and not adequately patching up existing installs. With the development efforts for Pro probably drawing heavily on the developers pool at ESRI, this seems to have gotten even a little worse, since now only rarely hotfixes are released, where maybe a few years ago, there were still regular hotfixes downloadable from the ESRI support website. I have always thought ESRI should at least double its efforts in bugfixing to really get to grips with the inevitable issues popping up with new development. There is simply to much time lost by users with broken software. I also think there should really be a better priority for bugfixes: - Regressions in software, that is, existing functionality of a previous version getting broken in a new version, should always result in a hotfix being released A.S.A.P. Regressions directly and immediately affect the usability of the software, and if no workaround is available, can lead to a total disruption of existing workflows and thus have heavy consequences for the existing user base after an upgrade, and in addition may lead to the need to "downgrade" to the previous version as well as not being able to upgrade to a new version to take advantage of new functionality. - Bugs in new functionality being introduced in a new version, although a nuisance, are of lesser priority, as no one yet depends on this. Even though problematic and a possible disappointment to those wanting to use the promised new functionality, these type of bugs generally do not lead to serious disruption of existing user workflows. I have seen few signs that ESRI uses such prioritization, other then ESRI calling upon its user base to request hotfixes in case their workflows are heavily affected by some bug, which I find a to passive attitude to the problem. If a regression is identified, ESRI should to get to work without asking users to send in requests to get it prioritized.
... View more
05-25-2018
07:52 AM
|
2
|
0
|
3936
|
|
IDEA
|
It would be really helpful if the CreateDatabaseView_management tool was enhanced with the option to create MATERIALIZED views instead of ordinary ones. In many cases, ArcGIS Query Layers may reference a view that has poor performance due to complex SQL. The only real solution for that is to materialize the view. However, once a view is created and referenced by a certain view name, it is no longer possible to modify the view by inserting the MATERIALIZE keyword in e.g. pgadmin in case of PostgreSQL, and save the view with the same name. PostgreSQL does not allow you to simply overwrite an existing view (you must DELETE first), even if you are the owner and exclusive user of the view or table. Thus, instead, a new view must be created with a different name. The consequence of this is that any Query Layers referencing the original view needs updating of its data source. For automation workflows using arcpy, it would therefor be very useful to have the ability to create a materialized view upon calling the CreateDatabaseView_management tool, e.g. via a new optional parameter setting, instead of having to reset data sources, or do a complex replacement including multiple DELETE and CREATE statements on the database side.
... View more
05-23-2018
03:44 AM
|
4
|
0
|
1399
|
|
IDEA
|
Currently, label classes in multiple dialogs / interface elements of both ArcMap and Pro are totally unsorted and listed in the order in which they have been created. This is problematic for layers having large numbers of label classes, and makes management of the label classes difficult. It would be really helpful if there was an option to (automatically or manually) sort the label classes, and have this sorting persisted when an map document or layer is saved. If full automatic alphabetic sorting is used, then persistence is probably not necessary and likely easier to implement for ESRI, although I can imagine some people would like to have custom manual sorting as well.
... View more
05-23-2018
03:08 AM
|
2
|
1
|
1530
|
|
IDEA
|
Funny I now encounter this very old idea, that is probably dead in the waters... This is really a missing cartographic option in Maplex that could be of great use in specific cases. There are definitely cases where you want to have an upper limit for a features size for labelling. E.g., if a feature is bigger than the size of a printed paper, putting a label somewhere smack in the middle of a page with no visible relation to what the feature is it belongs to, isn't useful. In these cases, you may want to limit the max size of (printed) features that get labeled by a label class, and maybe create a secondary label class with "repeat" labels each e.g. 10 cm using the Maplex option for this with the minimum size similar to the max feature size of the first label class, to show the feature actually extends across the page. However, if there is no "upper / max" limit for feature size, the single label of the first feature class, will still appear in the middle of the page among the "repeat" labels, which looks weird.
... View more
05-14-2018
12:29 PM
|
0
|
0
|
1094
|
|
POST
|
I have been suspecting the odd memory leak myself. I have seen Pro slowly eating away on RAM, and then becoming unresponsive at some point after maybe 4GB RAM usage. Unfortunately, this is so ephemeral, I haven't got a clue how to reproduce this consistently.
... View more
05-04-2018
11:34 PM
|
2
|
0
|
7726
|
|
POST
|
Dan, Even if ESRI considers spaces for any folder name involved in GIS a big no-no, then the application should throw some exception with a clear message, instead of auto-converting the folder's path stored in a geoprocessing parameter to an invalid one with an underscore... that operation is just senseless. By the way, actually much if not most of Pro seems quite happy handling spaces in folder names. I have had few problems with that, except this one I am encountering now.
... View more
03-31-2018
06:48 AM
|
0
|
2
|
2863
|
|
POST
|
Shaun, Please see my last responses to Curtis, and especially the conclusion that Pro mangles Folder type script parameters by replacing spaces with underscores: https://community.esri.com/message/760846-re-arcgis-pro-bug-cant-import-custom-python-module-in-calculate-value-tool-of-… Of course, there remains the main issue that Pro fails to import the custom Python module in the first place, unless the sys.path is explicitly set as per Curtis suggestion, but at least I now have a working solution.
... View more
03-31-2018
05:07 AM
|
0
|
0
|
2863
|
|
POST
|
Curtis, Well, this settles it. I have now changed the output parameter type of the GetToolboxFolder script that I created using your example code from the suggested Folder to String parameter type. Pro no longer mangles the output, and the custom Python module I wrote and use in the Calculate Value tool is now found using your suggested code solution. So I have accepted this as the answer with the minor correction that users should set a String instead of Folder parameter type output.
... View more
03-31-2018
05:03 AM
|
0
|
0
|
3872
|
|
POST
|
If I replace the original folders name with the version with underscore, and re-run the original tool, the module is finally properly imported and the tool runs in Pro! However, this should not happen. Pro should not replace spaces with underscores in arcpy.Get- or SetParamaterAsText function calls.
... View more
03-31-2018
04:41 AM
|
0
|
0
|
3872
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-31-2026 04:45 AM | |
| 1 | 12-08-2025 09:12 AM | |
| 1 | 12-05-2025 12:38 PM | |
| 1 | 12-04-2025 10:08 PM | |
| 1 | 12-04-2025 10:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
17 hours ago
|