question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Geonames Tools_pro.tbx/LoadGeonamesFile corrupt/not running in Pro

See original GitHub issue

Something about the conversion process when converting the model from ArcMap to ArcPro is corrupting the Model Geonames Tools_pro.tbx/LoadGeonamesFile

The ArcMap model works fine unmodified in Pro but something about saving the model/toolbox in Pro is corrupting the model. Suggest we just use the ArcMap version in the repo and for the Pro template.

Problems noticed (after saving and running in Pro):

1. You can’t run the model because it won’t let you set the feature class parameter

image

2. You can no longer open parts of the model:

image

3. MakeFeatureLayer step of the model does not show the expression when opened image

4. When run from the command line in test driver - you get a bit more info - again this appears to be an issue with the MakeFeatureLayer step (Note: same “ERROR 000816” as above):

test_load_geonames (geonames_tests.GeoNamesTestCase.GeoNamesTestCase)Traceback (most recent call last):
  File "C:\DefenseTemplates\Github\solutions-geoprocessing-toolbox\utils\test\geonames_tests\GeoNamesTestCase.py", line 88, in test_load_geonames
    countryCodes, adminCodes, featureCodes)
  File "C:\DefenseTemplates\Github\solutions-geoprocessing-toolbox\geonames\Geonames Tools_pro.tbx", line 86, in LoadGeonamesFile
     ' F u l l   A d d r e s s '   & l t ; N o n e & g t ;   V I S I B L E   N O N E 
  File "C:\DefenseTemplates\Github\solutions-geoprocessing-toolbox\geonames\Geonames Tools_pro.tbx", line 83, in LoadGeonamesFile
     C o u n t r y   C O U N T R Y N A M E 1   V I S I B L E   N O N E 
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 506, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000816: The tool is not valid.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
csmoorecommented, Aug 3, 2017

@Dbarnes1 Thanks for tip - that version does work and also is about half the size of the corrupted one (285KB vs 470KB).

I would be curious to know how the corrupted one vs. good ones got created just so we could avoid this happening in future.

Note: the toolbox/deployment is slightly different (no “scripts” folder) - something to do with how Pro packages - But I’ll adjust this and make a PR with good _pro.tbx:

image

image

0reactions
mfunkcommented, Aug 3, 2017

Checked and merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GeoNames
The GeoNames geographical database covers all countries and contains over eleven million placenames that are available for download free of charge. all ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found