0

When I use the tool "Sort" within modelbuilder I can not access the resulting file from other tools within modelbuilder in order to continue with the model. If I, for example, sort the file PR into PR_sort and then try to add a field I get this message: "ERROR 000229: Cannot open C:\LN_Slump\PR_sort. Failed to execute (Add Field)."

Or if I try to rerun the sorting I get "ERROR 000210: Cannot create output C:\LN_Slump\P_sort. Failed to execute (Sort)."

Doing the same things outside modelbuilder by using one tool at time is absolutely no problem (but very unpractical).

Does anyone have a suggestion to what might be wrong and how to solve the problem?

I am using ArcGIS 10.2.2

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 28, 2016 at 14:53

1 Answer 1

0

you need to add .shp to the end of your Sort function Output Dataset. I'm not 100% Sure why that is, it could be because the Add Field function brings in a %%%%.shp variable and is specific to that. Either way it ran fine for me once I added the .shp to the output. Also the second error is because you are trying to create something that already exists. Eventhough you were running into the issue with the add field portion, the Sort portion was working fine and so you would create your shapefile. Hope this helps.

enter image description here

answered Mar 28, 2016 at 15:38
1
  • Fantastic! Solves everything! How could you figure out that? Thanks a lot! /Sofie Commented Mar 28, 2016 at 15:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.