Hi there,
I am having an issue in ModelBuilder in ArcGIS Pro.
The issue:
In order to add Attribute Rules to a layer, it must first have a Global Id (the Add Global Ids tool will add the global ID in the attribute table). The layer must also have a field in which to apply the Attribute Rule to. Thus, you will see in my modelbuilder that I have first a field added to a layer (Add Field). I then have a global ID added to that layer (Add Global IDs). I then add an attribute rule to that layer. The Add Field and Add Global ID outputs are both set as parameters to the Attribute Rule. Despite this, the model keeps throwing me an error that reads something like "the layer must have a global ID." You will see that the Attribute Rule tool and its output are greyed out.
Here is a simplified section of my greater model that i'm having difficulty with:
So, it seems like the model is not recognizing that the layer has the global ID added to it within the process before the attribute rule is added. Adding attribute rules to the layer works if the Add Global IDs tool is run before running the model - but this negates the entire purpose of the model.
The Global ID cannot be added outside of the model, it must happen within the model for the purpose of my intended usage for this project.
Does anyone know how I can force the model to recognize that the global ID is applied within the model? Thank you in advance, I have much appreciation for anyone who can help me.