Hello,
I upgraded ArcGIS Pro to version 3.5.2; I started facing this problem:
When I'm using the calculate field tool in attribute table, those 2 errors (errors 001156 & 000595) are popping up. knowing that the 2 fields have the same data type and length. Moreover, it's not related to these specific Object Ids in the attached photo, it's giving me this error to all records.
Hey @KareemAssaf
Could it be that the type of field isn't supporting that information, I see NAME_LONG which to me could mean LONG as in integer, maybe? Can you send a screenshot of your fields that you're attempting the calculation on along with their length and data type like this:
Cody
it's not related to type field; I'm getting this error randomly with different type of fields ex:(Assignment type, Reservation method...
Here are the error code descriptions/solutions for each code:
001156: Failed on input OID <value>; could not write value '<value>' to output field <value>.—ArcGIS...
000595: <value> contains the full list of records not able to be processed.—ArcGIS Pro | Documentati...
I've been having the same problem in different Pro projects with no clue why. I can still edit the fields by manually typing or copy/pasting the same values that I am trying to calculate in en masse, but of course this is not efficient for hundreds and thousands of records. There is no difference in the field types or fields lengths that would case this.
Its hairpullingly frustrating to not be able to do simple but vital Field Calcs.
When asking about data management-related issues, it is helpful to state what the back-end data source is because whether something is a shape file vs file geodatabase vs enterprise geodatabase can make a difference.
I'm also seeing this error (001156) since updating to 3.5.3 from 3.4.3 doing very basic field calculations with a polygon feature class in a file geodatabase, using an editing session. Simply calculating a text field by joining two other text fields, such as "!FIELD1! + !FIELD2!" etc. I've tried unchecking 'Enforce Domains' (even though my fields do not use domains).
Feels like a critical issue, will try updating to 3.5.4 to see if that resolves but I don't see anything in the patch notes related to it.
Update: After getting the error, I went to manually type my values into that field and when the text becomes selected it suddenly changes to what it *should* have looked like had my field calculation succeeded. But then when I click out again, it reverts back to the previous value. I then updated Pro to 3.5.4 and restarted, and when I opened the application again my expected values from the failed Field Calculation then appeared correctly. Very bizarre. If I wasn't also getting an actual error code I would've written it off as a visual bug.
@AaronKoelker - since you're seeing this at 3.5.4 and presumably not 3.4.3, I have a few questions:
1. When you upgraded to 3.5, did you perform a clean uninstall and install of ArcGIS Pro first before installing 3.5.0 and then upgraded to 3.5.4? Personally, I perform a clean uninstall and install going from say 3.4 to 3.5. Then upgrade to the minor service packs.
2. Have you performed a soft reset of ArcGIS Pro? Sometimes this fixes general wonkiness.
3. If you're on Windows 10, you can uinstall services packs back to 3.5.0 for example. To do so, go to Control Panel->Uninstall a program->(top left) View installed updates->then click the ArcGIS Pro Patch 4 (3.5.4) and uninstall. This will remove the service pack back to ArcGIS Pro 3.5.3. You can also uninstall 3, 2, and 1 service packs fully to 3.5.0. Then retest your workflow. Does the issue still persist?
4. If you're on Windows 11, Microsoft made it harder to do this. See screen grab below for Windows 11.
I did not uninstall 3.4.3 first—I used the built-in upgrade function found within Pro on the About tab. I did just try the soft reset option you shared via editing the App Data folder and registry, but no luck. I also tried clearing the local cache.
Something perhaps noteworthy, in my case I have a text field with some room numbers like 1-1, 1-2, etc. I'm trying to simply add a letter P in front of them, so my field calculation looks something like NAME = 'P' + !NAME! . The message I get show it trying to add two letter P's; here's an example of the message for just one feature, but it's similar on all.
WARNING 001156: Failed on input OID 1534, could not write value 'PP1-2' to output field NAME
I'm also seeing this same behavior trying to calculate on a hosted feature service, in addition to a polygon feature class within in a file geodatabase. It's copies of the same data, just in two different locations.
I can try rolling back to 3.5.0 and see if that works, thanks. I tried the Powershell method above (WinGet uninstall --name ArcGIS Pro 3.5 Patch 4 (3.5.4)) but I get an error that the argument only works for single packages, and I don't really know enough about Powershell to go further. I can try a full uninstall and then reinstall 3.5.0 from My Esri
Interesting. Thank you for the feedback. So I mimiced your workflow as described. Created a point feature class with 2 attribute fields (TEXT) called NAME and NAME2. Then initially edited the NAME field to have values of 1-1, 1-2, 1-3 and 1-4. Saved the edits. Then did a field calculation on the NAME field where my Python syntax is 'P' + !NAME! - hit the okay button. My output is as expected, P1-1, P1-2, P1-3 and P1-4. See image below. I'm using ArcGIS Pro 3.5.4 and a file geodatabase.