Hi,
I am using ArcGIS Pro 3.0.6 and have an advanced named license from AGOL.
With ArcGIS Pro open I am trying to run a script tool with the following geoprocessing included.
arcpy.management.GeoTaggedPhotosToPoints(r"D:\PWS_Herring\Photo_Test\0407", r"D:\PWS_Herring\Photo_Test\HAS_Photos_Test.gdb\test_geotag7", None, "ONLY_GEOTAGGED", "ADD_ATTACHMENTS")
The GeoTagged Photos to Points geoprocessing tool within ArcGIS Pro works great. If I copy the command to the python window within an open project this also runs successfully.
However in the script tool I am unable to get the GeoTaggedPhotosToPoints to work. I get the following message pointing to the ERROR 000824: The tool is not licensed.
This doesn't make sense to me since I am using the advanced named license with ArcGIS Pro open.
Any insights would be much appreciated- Kathy
Traceback (most recent call last):
File "P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\PWS_Herring_2023\Script\PWS_ProcessPhotos_040124.py", line 67, in <module>
arcpy.management.GeoTaggedPhotosToPoints(r"D:\PWS_Herring\Photo_Test\0407", r"D:\PWS_Herring\Photo_Test\HAS_Photos_Test.gdb\test_geotag7", None, "ONLY_GEOTAGGED", "ADD_ATTACHMENTS")
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 13311, in GeoTaggedPhotosToPoints
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 13308, in GeoTaggedPhotosToPoints
retval = convertArcObjectToPythonObject(gp.GeoTaggedPhotosToPoints_management(*gp_fixargs((Input_Folder, Output_Feature_Class, Invalid_Photos_Table, Include_Non_GeoTagged_Photos, Add_Photos_As_Attachments), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (GeoTaggedPhotosToPoints).
Failed script (null)...
Failed to execute (ProcessSurveyPhotos).