I am creating model that merges all polygon feature classes into one feature class. I am using feature class iterator to feed collect value tool list. When dataset has polygons it work fine. But when there is no polygons in dataset it always retrieve one invalid record as "gdb/Dataset/FeatureClass". Of course gdb url and dataset and correct, except that FeatureClass is not valid. So when I get the list and try to merge this list it throws error of invalid parameter. How can I avoid adding this record to my list?
Are you iterating and specifying the feature type to collect as in the demo?
Iterate Feature Classes (ModelBuilder)—ArcGIS Pro | Documentation
Do you branch using if-else syntax if collect values is none?
Yes Mr. Dan, it is sort of like that, but I am iterating through dataset not workspace level.
I will try do branching and see outcome.
Most of my datasets has polygons feature classes, except for one that makes the problem
Here is a snapshot of the issue:
You will need to check for that then with the filter "Feature type" set to Polygon as in the link I sent
Iterate Feature Classes (ModelBuilder)—ArcGIS Pro | Documentation
Would you please Mr. Dan send sample model demonstrating that. I really couldn't grasp the idea. Thanks
I am still struggling with this incase someone has an idea. Thanks in adavance