A model provokes the message "Item not found in this collection." while running the Make Feature Layer tool. What does this message mean? What might be wrong?
Well, I'm eating some humble pie. I have rebooted my computer and rerun the top-level model of this system.
No error messages were provoked.
Sorry for wasting your time, one and all - your companionship and suggestions were appreciated and valuable to me in any event.
Stephen.
Yes, it works if I open the Make Feature Layer tool, drag the relevant feature class and drop it in the Input Feature box - see the appended log below.
Sorry, but what do you mean by "the python snippet"? I am using ArcMap, but not Python - I am using Model Builder.
---------------------
Executing: MakeFeatureLayer "C:\Users\Stephen Tucker\Documents\ArcGIS\scratch.gdb\CBM_A4_L_FC_1" CBM_A4_L_FC_1_Layer # # "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;FID_CBM_A1_L_FC_1 FID_CBM_A1_L_FC_1 VISIBLE NONE;LONG_ LONG_ VISIBLE NONE;LAT LAT VISIBLE NONE;ETH_NO ETH_NO VISIBLE NONE;ETH_LG_R ETH_LG_R VISIBLE NONE;ID ID VISIBLE NONE;Sensitivity Sensitivity VISIBLE NONE;Widespread Widespread VISIBLE NONE;ISO_LANGUAGE_CODE_ID ISO_LANGUAGE_CODE_ID VISIBLE NONE;COUNTRY_ISO_3DIGIT COUNTRY_ISO_3DIGIT VISIBLE NONE;COUNTRY_ISO_ALPHA_2 COUNTRY_ISO_ALPHA_2 VISIBLE NONE;FID_CBM_L2_L_FC_1 FID_CBM_L2_L_FC_1 VISIBLE NONE;FID_CBM_A1_L_FC_12 FID_CBM_A1_L_FC_12 VISIBLE NONE;LONG1 LONG1 VISIBLE NONE;LAT_1 LAT_1 VISIBLE NONE;ETH_NO_1 ETH_NO_1 VISIBLE NONE;ETH_LG_R_1 ETH_LG_R_1 VISIBLE NONE;ID_1 ID_1 VISIBLE NONE;Sensitivity_1 Sensitivity_1 VISIBLE NONE;Widespread_1 Widespread_1 VISIBLE NONE;ISO_LANGUAGE_CODE_ID_1 ISO_LANGUAGE_CODE_ID_1 VISIBLE NONE;COUNTRY_ISO_3DIGIT_1 COUNTRY_ISO_3DIGIT_1 VISIBLE NONE;COUNTRY_ISO_ALPHA_23 COUNTRY_ISO_ALPHA_23 VISIBLE NONE;CENTROID_X CENTROID_X VISIBLE NONE;CENTROID_Y CENTROID_Y VISIBLE NONE;ORIG_FID ORIG_FID VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE;Shape_Area Shape_Area VISIBLE NONE"Start Time: Mon Jan 07 15:31:25 2019Succeeded at Mon Jan 07 15:31:25 2019 (Elapsed Time: 0.12 seconds)
And it works if you run the tool manually? (just to confirm... and if you are using arcmap, copy the python snippet that does)
Thanks for your reply, Dan.
Well, (a) I have not renamed the feature class, (b) the Make Feature Layer invokation does not use a WHERE clause, and (c) the input feature class is not flagged as Intermediate. I append here the relevant part of the log of the run - you will see that the text that I quoted in my question is the whole of the error message.
-------------------------------
Executing (MaFeLa - Deri Lg Pg Fr FL from FC): MakeFeatureLayer "C:\Users\Stephen Tucker\Documents\ArcGIS\scratch.gdb\CBM_A4_L_FC_1" CBM_A4_L_FL_1 # # "OBJECTID OBJECTID VISIBLE NONE;Shape Shape VISIBLE NONE;FID_CBM_A1_L_FC_1 FID_CBM_A1_L_FC_1 VISIBLE NONE;LONG_ LONG_ VISIBLE NONE;LAT LAT VISIBLE NONE;ETH_NO ETH_NO VISIBLE NONE;ETH_LG_R ETH_LG_R VISIBLE NONE;ID ID VISIBLE NONE;Sensitivity Sensitivity VISIBLE NONE;Widespread Widespread VISIBLE NONE;ISO_LANGUAGE_CODE_ID ISO_LANGUAGE_CODE_ID VISIBLE NONE;COUNTRY_ISO_3DIGIT COUNTRY_ISO_3DIGIT VISIBLE NONE;COUNTRY_ISO_ALPHA_2 COUNTRY_ISO_ALPHA_2 VISIBLE NONE;FID_CBM_L2_L_FC_1 FID_CBM_L2_L_FC_1 VISIBLE NONE;FID_CBM_A1_L_FC_12 FID_CBM_A1_L_FC_12 VISIBLE NONE;LONG1 LONG1 VISIBLE NONE;LAT_1 LAT_1 VISIBLE NONE;ETH_NO_1 ETH_NO_1 VISIBLE NONE;ETH_LG_R_1 ETH_LG_R_1 VISIBLE NONE;ID_1 ID_1 VISIBLE NONE;Sensitivity_1 Sensitivity_1 VISIBLE NONE;Widespread_1 Widespread_1 VISIBLE NONE;ISO_LANGUAGE_CODE_ID_1 ISO_LANGUAGE_CODE_ID_1 VISIBLE NONE;COUNTRY_ISO_3DIGIT_1 COUNTRY_ISO_3DIGIT_1 VISIBLE NONE;COUNTRY_ISO_ALPHA_23 COUNTRY_ISO_ALPHA_23 VISIBLE NONE;CENTROID_X CENTROID_X VISIBLE NONE;CENTROID_Y CENTROID_Y VISIBLE NONE;ORIG_FID ORIG_FID VISIBLE NONE;Shape_Length Shape_Length VISIBLE NONE;Shape_Area Shape_Area VISIBLE NONE"Start Time: Mon Jan 07 14:31:57 2019Item not found in this collection.Failed to execute (MaFeLa - Deri Lg Pg Fr FL from FC).
Do you any more suggestions?
That seems to be an old/remnant error
NIM005846: After renaming a dataset in ArcCatalog the error mes..
or your query to gather data to make the featurelayer produced no results IF you were using a where clause.
Or... your data were flagged as intermediate in the model
Make Feature Layer—Data Management toolbox | ArcGIS Desktop
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.