2.6.1 - field calculator with selection, dangerous bug

2002
16
Jump to solution
09-22-2020 01:24 PM
danbecker
Occasional Contributor III

Is this expected behavior on 2.6.1? This is VERY DANGEROUS.

  1. Select a record in attribute table. Right click on field, calculate field, specify a string to calculate, hit APPLY
  2. make sure and leave the field calculator floating window open
  3. change the selection in the table to a different record
  4. the field calculator window is already open, don't change anything except a new string to calculate, hit APPLY or OK, doesn't matter

 

Notice what happens…you would expect that the record selected in step #3 would be calculated, i.e. the one currently selected, but it actually calculates the formally selected record, i.e. the selection in step #1.

0 Kudos
2 Solutions

Accepted Solutions
danbecker
Occasional Contributor III

Win 10 Pro is fully updated, version 2004

Win. control panel, uninstalled Pro, then rebooted.

Clean install 2.6, opened the same Pro project as before, then the same local C:\ FGDB, the problem still persists.

Installed 2.6.1 patch atop 2.6. 

Created a new blank project, accessed the same local C:\ FGDB, problem solved

Closed new blank project.

Opened same Pro project as before, then the same local C:\ FGDB, the problem still persists. 

Removed all items in geoprocessing history (147 of them), the problem still persists.

Edit: testing continues..

Created new Pro project using an existing template we had.

Had 2 instances of Pro open, the problematic project from above and the new one. I then copy/pasted the Pro map over to the new Project.

In the new project, I now have the original map from the old project. I Field calculated the same local C:\ FGDB, the problem still persists.

Created a new blank map in the new Pro project, I Field calculated the same local C:\ FGDB, problem solved

So, this bug is related to the Pro map,  project, which makes sense, because my Collegue and I are working on the "same" project/map. He opened the original and did a SAVE-AS, I'm still using the original.

Edit: finally figured out the bug, it's related to a Hosted Feature Layer being present in the map.

Steps to test attribute calculation:

  1. Select a record in attribute table. Right click on field, calculate field, specify a string to calculate, hit APPLY
  2. make sure and leave the field calculator floating window open
  3. change the selection in the table to a different record
  4. the field calculator window is already open, don't change anything except a new string to calculate, hit APPLY or OK, doesn't matter

Steps to Repo the issue with calculating attributes when HFL is present in the map:

  1. Create a new blank pro project. Insert a new blank map. Add a single FGDB layer to the map.
  2. Perform the above "Steps to test attribute calculation". Everything will work as expected.
  3. Add a HFL to your map. We use Enterprise, I have not tested AGOL HFLs.
  4. Perform the above "Steps to test attribute calculation". You will see the problem where the incorrect record is calculated.
  5. Remove the HFL. Perform the above "Steps to test attribute calculation". You will see the problem where the incorrect record is calculated.
  6. Once the HFL is added, even after it's removed, the attribute calculation problem persists. It's not corrected until you create a new map.

View solution in original post

0 Kudos
Robert_LeClair
Esri Notable Contributor

Working with Dan directly, I was able to repro this issue.  Short story is a hosted feature layer published from Survey 123 Connect and then added to a Map View in ArcGIS Pro will cause this calculation error seen by Dan.  I've reported it to Esri Support Services as a BUG.  More to come.

View solution in original post

0 Kudos
16 Replies
Robert_LeClair
Esri Notable Contributor

Dan - I followed your steps precisely and do not see what you're describing.  One test to consider - copy/paste the existing feature class in your geodatabase as a new feature class in the same geodatabase.  Repeat the workflow.  Do you see the same result?  If so, try this - create a new file geodatabase and copy/paste the feature class to the new geodatabase.  Repeat the same workflow.  Do you see the same result?  Please advise.

0 Kudos
danbecker
Occasional Contributor III

When I documented the steps above, I was using an SDE GDB (postgreSQL 9.5), unversioned, archiving enabled.

So, I created a new FGDB on disk, found a random poly feature class from a different FGDB, copy/pasted it into the new FGDB, then completed the above steps.

Same result. The first selected record is calculated.

0 Kudos
Robert_LeClair
Esri Notable Contributor

Thx for the update.  When you installed AGP 2.6.x was it a clean install from AGP 2.5?  What I mean - did you completely uninstall AGP 2.5 prior to cleanly installing AGP 2.6.x?  Or did you upgrade AGP 2.5 to 2.6?  The reason I ask I did a clean uninstall of 2.5 before installing 2.6 and do not see this workflow.

0 Kudos
danbecker
Occasional Contributor III

I have never done a clean install, I've upgraded several versions atop each other. I installed 2.6, then 2.6.1 (the SP), the update was not a clean install. A co-worker was able to repo. the issue, he also did not clean install, actually, can't because I'm the person with admin. privs to run installs.

0 Kudos
danbecker
Occasional Contributor III

I had to split the video into 2 parts; pretty basic but illustrates the issue. This is really bizarre.

Robert_LeClair
Esri Notable Contributor

Thx for the videos - that helps me visualize the workflow.  I followed your steps exactly.  My AGP 2.6.1 does not repro what I'm seeing in your videos.  The only difference is that I'm using a file GDB and not a PostgreSQL RDBMS.  Weird...

0 Kudos
danbecker
Occasional Contributor III

The video uses a simple FGDB on a Win Server 2016 network share; I wanted to simplify the environment, but in our case (2 different workstations, 2 different Pro licenses) it doesn't matter. A feature service, SDE Feature Class or FGDB all produce the same result as shown in the video.

We have to be REALLY careful when calculating attribute values.

0 Kudos
Robert_LeClair
Esri Notable Contributor

Ok - thx for the update.  Try this - rename the Esri folder in your C:\Users\<user profile>\appdata\local and C:\Users\<user profile>\appdata\roaming to Esri_Old and repeat your workflow.  Does the issue persist?

0 Kudos
danbecker
Occasional Contributor III

I renamed both those folders to _old, then re-opened Pro, and navigated to the same FGDB for the test calc's, the issue still persists.

0 Kudos