laptop and a wrench

Bug

Variable of an iterator (%n%, %N%, %i%, %I%, %v%, %V%) changes its value to ‘0’ when shared as a project package in ArcGIS Pro.

Last Published: December 28, 2021 ArcGIS Pro
Bug ID Number BUG-000143140
SubmittedSeptember 23, 2021
Last ModifiedJune 20, 2025
Applies toArcGIS Pro
Version foundN/A
Operating SystemN/A
Operating System VersionN/A
Version Fixed3.1
StatusFixed

Workaround

  • Set input or output variables as Model Perimeter.
  • Do not create a project package as it changes the variable %n% value to 0. Share the toolbox of the project where the model is saved.
  • Change the scratch workspace of the model from the environment option in the ModelBuilder tab.

Steps to Reproduce

Bug ID: BUG-000143140

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options