NENA911 / NG911GISDataModel

GIS Data Model templates based on the NENA Standard for NG9-1-1 GIS Data Model (NENA-STA-006.x)
Apache License 2.0
15 stars 7 forks source link

The "Create NG9-1-1 File Geodatabase" script is missing from .tbx within ArcMap 10.8.1 #30

Closed NCT911-DLindsey closed 1 year ago

NCT911-DLindsey commented 1 year ago

Describe the bug I've been familiarizing myself with the .tbx scripts this afternoon. The ArcGIS Pro script for creating an Esri File GDB is working in Pro 3.0.2 as expected, but I am unable to access the .tbx script needed for execution within ArcMap 10.8.1. The .tbx shows up, but it's empty.

I know the documentation mentions "Note: This has been only testing in ArcGIS Desktop 10.8.1 and ArcGIS Pro v2.9.x and 3.0.x. We are aware of issues with ArcGIS Desktop 10.5.x where the Create NG911 FGDB tool does not display in the ArcGIS Toolbox." However, it appears I'm seeing the same behavior in 10.8.1 (using Standard license level).

My view from ArcGIS Pro 3.0.2 (both scripts appear as expected): image

My view from ArcMap 10.8.1 (toolbox displays, but it's empty): image

Is anybody else seeing this, or is there something obvious I'm missing? It's been awhile since I've tinkered with Esri's Python toolboxes in ArcMap, so feel free to blame it on user-error if needed.

To Reproduce Steps to reproduce the behavior: Forked the repository, followed steps within GitHub read me file for ArcMap (import toolbox, expand toolbox, open script), but was unable to expand the toolbox to show a script within. Also, tried the same approach with the .zip file containing the .tbx (in case I manipulated something within my fork accidentally). Both gave same behavior.

tomneer commented 1 year ago

We were trying to maintain a single ArcGIS Toolbox to support both ArcGIS Pro and ArcMap. Unfortunately, this isn't the first time that ArcGIS Pro caused problems for ArcMap. We have separated the Toolboxes into an ArcGIS Pro and ArcMap version to prevent this issue in the future.

Please let us know if this works better. Thank you for the feedback!

jasonhorning commented 1 year ago

In ArcMap 10.5.1 this fix did make it so that the tool appears and is able to take arguments normally, but upon execution I get the following error.

screen

Anyone with 10.8+ able to verify?

tomneer commented 1 year ago

It's is the default string I put into the spatial reference. I copied from Pro but it must be a different definition in ArcMap

Would you select WGS84 from the selector and try again?

Thanks Tom

Sent from Ninehttp://www.9folders.com/


From: jasonhorning @.***> Sent: Tuesday, November 22, 2022 8:00 AM To: NENA911/NG911GISDataModel Cc: Tom Neer; Assign Subject: Re: [NENA911/NG911GISDataModel] The "Create NG9-1-1 File Geodatabase" script is missing from .tbx within ArcMap 10.8.1 (Issue #30)

In ArcMap 10.5.1 this fix did make it so that the tool appears and is able to take arguments normally, but upon execution I get the following error.

[screen]https://user-images.githubusercontent.com/4140312/203346947-7ff6d288-3112-411f-bf57-87529fbddd4c.png

Anyone with 10.8+ able to verify?

— Reply to this email directly, view it on GitHubhttps://github.com/NENA911/NG911GISDataModel/issues/30#issuecomment-1323814126, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABVEHF3RPX57ACCXG5K7VHLWJTN2DANCNFSM6AAAAAASHEOFLQ. You are receiving this because you were assigned.Message ID: @.***>

jasonhorning commented 1 year ago

Re-selected GCS_WGS_1984, same behavior. Do the scripts need to be placed somewhere specific? I just downloaded the tool to Downloads and added it to ArcToolbox from there.

tomneer commented 1 year ago

You can double-check the path to the script by right-clicking and verifying in the Properties. I am pretty sure I checked "use relative paths" but now not sure.

NCT911-DLindsey commented 1 year ago

Jason, I was getting same behavior as you. Tom, it looks like this might be the issue:

Script path shows "create_n911_fgdb.py" instead of "create_ng911_fgdb.py" When I remapped to the non-typo'd file, it worked. image

Well...it started anyway. Made it to the Creating Domain step, then crashed with 999999. image

tomneer commented 1 year ago

Pushed a new version with the Spatial Reference and Python path fixed. Ran on my version of 10.8.1 and it succeeded.

Please try with the latest version of NENA_NG911_Toolbox.zip.

Let's see if that resolves it or if we get the wonderful 9s error...

jasonhorning commented 1 year ago

That fixed it for me in ArcMap 10.5.1. It pulls up the tool and executes to completion without errors or warnings.

NCT911-DLindsey commented 1 year ago

ArcMap .tbx test for me in 10.8.1 was successful, no issues or failures observed at first glance during that run. Nice work, Tom!

Edit: Also retested the other script in ArcGIS Pro 3.0.2 afterwards to be safe, no issues there either from my end.

tomneer commented 1 year ago

Thank you both for all the feedback and testing!