1

I am using a Feature Class Iterator in a Submodel ending with Collect Features:

enter image description here

The main model looks like this:

enter image description here

When I want to run it I only get this error:

enter image description here

I have no clue why he says the value is empty. Does anyone know it?

  • The answer below is suggesting that you collect in the master model. This is wrong you collect in the submodel as you were doing in your first image. In your first image the tool that is feeding into collects is white, the problem is with your upstream logic. But as you do not show that it is impossible to comment on. – Hornbydd Mar 19 '18 at 8:54
  • No, the upstream logic is not the problem. I've tried that seperatly and it works fine. the only problem left here is the collect value output. And the model is meant to be white like I said below because its a model with variable inputs which can be used for many different locations. – Loki Mar 19 '18 at 9:07
2

Actually, After understanding the purpose of the merge and collect values of your features.

I would suggest using (Append) tool, which it does your purpose.

So the order must be Output values >> collect value >> as parameter

enter image description here

Then in the main Model, you add your submodel, (Append) tool and a feature that will be the target

enter image description here

enter image description here

This link shows you how to use the only model tools.

This link explains how to use (append).

  • pro.arcgis.com/de/pro-app/tool-reference/modelbuilder-toolbox/… here it saysy that merge can be used after collect values? – Loki Mar 18 '18 at 22:57
  • @Loki I updated the answer with screenshots that explain how you can make collect value working with submodel and merge. PS: that your ModelBuilder must be colored not white to run. – Moh Mar 18 '18 at 23:00
  • I edited the question and the model is white because it should be a model with variables which can be used as cost distance analysis for many different regions – Loki Mar 18 '18 at 23:20
  • @Loki Can you explain what do you want to merge exactly so we can define the problem! (what type of values you collect and you want to merge?) – Moh Mar 19 '18 at 1:11
  • I put an feature class with three points into the iterate feature class iterator and thus goes into cost distance. Into cost path have to go three other points as destination (but this still does not work with the iterator, I made another question about that.) and then the output are three different polylines each from one start to the matching end point. And with the iterator these are three different feature classes but I need them in one to do further analysis with them. That's why I want to use collect values and merge. – Loki Mar 19 '18 at 7:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.