POST
|
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.
... View more
01-08-2019
09:56 AM
|
0
|
0
|
449
|
POST
|
Martyn, Thanks again for this - I will check the link you sent in due course. In the meanwhile... (a) I have exported the-model-whose-invokation-of-the-Make-Feature-Layer-tool-was-provoking-the-strange-message as a Python Script; (b) In the model that calls it, I then replaced the invokation of the model with an invokation of the exported Python script of the model; (c) I then ran the calling model. The exported Python script version of the called model ran successfully. Later in the same calling model, I invoke another submodel that in turn invokes the Make Feature Layer tool. When the calling model made that invokation, the called model attempted to invoke the Make Feature Layer tool. The attempt failed, provoking the same strange error message as I had received before. Ideally, I'd like to get to the bottom of the strange message. Unfortunately, I don't have the time to do that. Being pragmatic about all this, I will now be replacing all the models that call the Make Feature Layer tool with their Python script alternatives in the hope that this workaround continues to deliver satisfactory results and successful runs. Now to reply to your last post. The run log that my ArcMap produces when a Python script fails gives me all the information you describe. Thanks again for your input.
... View more
01-08-2019
05:24 AM
|
0
|
0
|
449
|
POST
|
Thanks for this, Martyn. The missing link was that I had not been introduced to the Geoprocessing - Results window. Now a question arises from this. I see that my Results window lists the outcomes of various runs of scripts and tools, but it doesn't show the outcomes of any runs that ended in failure. Am I right in thinking that the Results window only ever shows outcomes for runs that end successfully?
... View more
01-08-2019
04:18 AM
|
0
|
2
|
449
|
POST
|
Martyn, Thanks for this. I am trying to do as you suggest, but am failing, I believe. This is what I have done: (1) Open ArcMap (10.4) and Catalog pane; (2) Right-click the Make Feature Layer tool entry in the list of System Toolboxes, and click Open; (3) Drag the relevant feature class from the Catalog pane and drop it into the Input Features box - the Output Layer box is populated automatically; (4) Since I am not using a WHERE clause, I then click OK (by the way, is the WHERE clause what you mean when you say, "the working statement you wish to use for selection"?); (5) I check the run log (is this what you mean when you say the "results window"?) and find that the tool has run successfully (the log is appended below). At this point I am trying to understand what you mean when you say, "right-click on the tool run". Since right-clicking on the log has no effect, I guess that you mean that I should right-click on the entry in the Catalog pane for the tool that I have just run, namely, Make Feature Layer. Well, I do this, but no Python snippet appears - the closest I can get to this are the examples given in the documentation - I am pretty certain you don't mean those. Here is the run log: ---------------------- Executing: MakeFeatureLayer "C:\Users\Stephen Tucker\Documents\ArcGIS\scratch.gdb\CBM_A4_L_FC_1" CBM_A4_L_FC_1_Layer1 # # "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: Tue Jan 08 10:41:36 2019 Succeeded at Tue Jan 08 10:41:36 2019 (Elapsed Time: 0.73 seconds) ---------------------- I am getting the impression that my original problem is being caused by what I will call the ModelBuilder Interpreter. (that is, the software that takes a model and runs it.) I am hoping that I can get round this by exporting to a Python script the model that is using the Make Feature Layer tool. I have already done that with another troublesome model and the Python worked OK. (This other model is intended to copy a feature class from the scratch GDB to a file geodatabase - the problem was that when it ran the Calculate Value tool, the message "No current record." was provoked.) Eventually I will be needing to export the whole model-based system to Python anyway so that it can be run on other team members' computers.
... View more
01-08-2019
03:09 AM
|
0
|
4
|
1985
|
POST
|
Sorry, Dan, but I am still not clear what you mean by "the Python snippet". I could export the model as a Python script and run that, but, actually, I am doing that sort of thing a lot these days and have other problems with it, so I would rather not complicate the issue by "going there" at this point. Also, I think that you do not mean me to do that by referring to a Python Snippet. Neither, actually, do I understand what you mean by "arctoolbox code snippets". I realise that some ArcToolbox tools are scripts that are written by ESRI staff (and apparently made available to Python programmers like me). I would hardly call these "snippets", but they are the closest things I know of that might bear that description.
... View more
01-07-2019
07:52 AM
|
0
|
6
|
1985
|
POST
|
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 2019 Succeeded at Mon Jan 07 15:31:25 2019 (Elapsed Time: 0.12 seconds) ---------------------
... View more
01-07-2019
07:35 AM
|
0
|
8
|
1985
|
POST
|
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 2019 Item not found in this collection. Failed to execute (MaFeLa - Deri Lg Pg Fr FL from FC). ------------------------------- Do you any more suggestions?
... View more
01-07-2019
07:01 AM
|
0
|
10
|
1985
|
POST
|
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?
... View more
01-07-2019
06:24 AM
|
0
|
13
|
3700
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|