Geographic Information Systems Asked by 588chm on April 25, 2021
I am building a Model in ArcGIS Desktop 10.8.
At some point in my model, I am dealing with Line feature classes. I turn them into Polygon feature classes, and then I merge them into one feature class.
The source of my problem is, that some of the inputs might be empty. If I run the Feature To Polygon tool with these inputs, it gives me the following error message:
Error executing function. The geometry is not M-aware Failed to execute
I tried to solve the problem, based on this thread: Geometry is not M-Aware?. It didn’t help. I am working in a geodatabase, and the M-aware option is turned off in the environmental settings.
I thought that preconditioning would work, so I tried (as you can see in the 3rd and 4th row of the attached image). The problem here is that it won’t run the Feature To Polygon tool indeed, but it won’t run anything after this tool either. So it won’t eventually merge the other, not empty feature classes either.
Is there a way to skip some steps, based on a condition, and continue the running from an other point?
In my case, can I skip the Feature To Polygon and the Calculate Field tools if my feature class is empty, but then run the Merge tool with the other, not empty feature classes?
Use Data Exists...Look at the following link!! https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/examples-of-using-logical-tools-in-modelbuilder.htm#GUID-C0E9F998-C1DE-4D52-9FCE-13543FBC0FCB
Answered by Rpandia31 on April 25, 2021
I have just spoofed up this model to simulate what you are doing and it all works fine for me! I'm using ArcMap 10.6.1
The Merge takes 3 datasets, one with nothing in it and various M-aware levels, everything merges as expected.
This would indicate the source of the problem lies elsewhere. Modelbuilder often seems to hang on to old environment settings and in a few cases rebuilding a model from scratch seems to fix things. I would try a new model with just a couple of outputs, one you know is creating an empty dataset and feed them into the merge tool. For me everything merged empty or not, M-aware or not....
Answered by Hornbydd on April 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP