When attempting to open the Calculate Field tool within an existing Model Builder model the expression section does not appear however I can see the expression when hovering over the tool. The model was built with Pro 2.0 and I am first seeing this issue after upgrading to Pro 2.1. Has anyone else experienced this issue?
I've also had this same issue when attempting to open the Calculate Field tool in an existing Model Builder model the expression does not appear but can be seen in the pop out box when hovering over the tool. The expression disappeared from view within the same edit session after I copied and pasted an existing Calculate Field tool, but I'm not sure whether this is the cause or not. All work was done in the same APRX in ArcGIS Pro v.2.5.2.
Hi Robert,
Thanks for reporting this issue!
I am using Pro 2.3 and the problem persists. See screen shots below. Code block is visible when hovered over but not in the calculate field dialog...
We also have this exact issue.
Models were created in Pro (v1.4) and subsequently no longer show editable expressions and the expressions can only be seen by hovering over the tool. Making the expression a parameter does not fix the problem.
We are currently using v2.1.1
Not addressed in the dot updates to 2.1?
More importantly, why would a copy/paste operation contribute or cause the error?
Hi Shitij Mehta
Apologies for the delayed response. The original model was built in 2.0. There are at least half a dozen instances of the Calculate Field tool being used in a single model and there is a high likely-hood that I used a copy/paste from the first instance of the tool that was added to the model. The issue described in the original post occurred only after upgrading to 2.1.
Hi Kyle Balke,
This is a know issue. We are working to fix it. This behavior exhibits only in few cases. To get past this bug please re-add the calculate value tool. If you could share the repro steps you took that led to the tool getting in this state. For example, did you share the toolbox or model? copy pasted it? added in previous release and now it just shows like this in 2.1? Also, If you can share the original model that would help us take care of all fringe cases. Thanks!
sure enough Calculate Field in modelbuilder has been significantly changed
http://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/modelbuilder-changes-in-arcgis-pro.htm
Here are two screenshots:
The expression did use a parameter and in-line variable substitution...I am currently editing in 2.1 and that is where I am experiencing this issue. If I add a completely new Calculate Field tool to the model the expression section is available. Seems to be a bug to me when moving from 2.0 to 2.1. However I did notice that 2.0 was using PYTHON_9.3 as the expression type which is no longer an available option in 2.1 (now Python 3).
Edit: Based on the Calculate Field help legacy Python and Python 9.3 expressions are supported.
Was it a parameter? (ie a P beside the calculate field or one of its variables)
You may have to edit the model in 2.1 if it was fine in 2.0.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.