Using ArcGIS Pro 2.7.1and having a simple Point feature class in GDB (schools) enabled for Attachment, I am trying to stop and prompt error message when user attached a big size images into the feature class.
I created a Field called `Attach_Size` in the School feature class and assigned a Calculation (Add Immediate Calculation Rule) to apply the code
If(Count(Attachments($feature)) > 0) {
return Attachments(size)
}
But this is not returning any thing either when creating a new feature or editing existing feature. Can you please let me know what I am missing here?
Thanks
Solved! Go to Solution.
So you want to add a constraint rule on the attachment table that says something like this
if ($feature.DATA_SIZE > 1000) return false;
return true;
So you want to add a constraint rule on the attachment table that says something like this
if ($feature.DATA_SIZE > 1000) return false;
return true;
Thanks Hussein, This is exactly what I was looking for