<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405306#M70248</link>
    <description>&lt;P&gt;Hi Kathy&lt;/P&gt;&lt;P&gt;As you say... this is puzzling.&lt;BR /&gt;What I will do is create my own script tool to use this geoprocessing tool. I will have a look on friday and let you know how i get on. Many thanks ed&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 16:28:26 GMT</pubDate>
    <dc:creator>EdMorris</dc:creator>
    <dc:date>2024-04-03T16:28:26Z</dc:date>
    <item>
      <title>ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1404787#M70243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro 3.0.6 and have an advanced named license from AGOL.&lt;/P&gt;&lt;P&gt;With ArcGIS Pro open I am trying to run a script tool with the following geoprocessing included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;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")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;This doesn't make sense to me since I am using the advanced named license with ArcGIS Pro open.&lt;/P&gt;&lt;P&gt;Any insights would be much appreciated- Kathy&lt;/P&gt;&lt;LI-CODE lang="c"&gt;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 &amp;lt;module&amp;gt;
    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 &amp;lt;lambda&amp;gt;
    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).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 18:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1404787#M70243</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-04-02T18:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405075#M70244</link>
      <description>&lt;P&gt;Hi Kathy&lt;/P&gt;&lt;P&gt;So, you are right. The geoprocessing tool does require an Advanced license which you appear to have.&lt;/P&gt;&lt;P&gt;You say you are using the tool in a Python Script tool. I wonder what license the script tool is using?&lt;/P&gt;&lt;P&gt;Could you write the following to test what license you are using:&lt;/P&gt;&lt;P&gt;prod = arcpy.ProductInfo()&lt;/P&gt;&lt;P&gt;arcpy.AddMessage(f"License is {prod})&lt;/P&gt;&lt;P&gt;The above code will write your license out to the View Details dialog. If this returns ArcInfo / Advanced then we know you have the right license.&lt;/P&gt;&lt;P&gt;In which case I wonder if the error message is misleading....?&lt;/P&gt;&lt;P&gt;Could you create another another script tool to consume only the GeoTagged To Points tool to see if that runs OK?&lt;/P&gt;&lt;P&gt;If it does then I suspect that there may be an issue with how the parameters are passed into the tool....&lt;/P&gt;&lt;P&gt;Are you sure your output geodatabase is a v10 geodatabase?&lt;/P&gt;&lt;P&gt;I'm just trying to think about how to trouble shoot the tool for...&lt;/P&gt;&lt;P&gt;I hope this helps ed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405075#M70244</guid>
      <dc:creator>EdMorris</dc:creator>
      <dc:date>2024-04-03T09:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405252#M70245</link>
      <description>&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;Thanks so much for your help. I did add in the syntax for the license and it returns ArcInfo.&lt;/P&gt;&lt;P&gt;I did move the code to a new file with only the GeoTagged To Points tool and I still get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In looking at the file geodatabase it says "Upgrade Status - This 10.0 geodatabase matches the ArcGIS release you are currently using".&lt;/P&gt;&lt;P&gt;In testing, I've run the tool directly from the toolbox in ArcGIS Pro and this runs the same parameters as those used in the script tool. After the tool runs I have just copied the python command directly from the tool history and used that in both the Python window and copied directly to the script.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcgis, sys
import os
import pandas as pd
import math
import arcpy
from arcpy import env
from pandas import Timestamp
import pytz
import numpy
from os.path import exists

arcpy.env.overwriteOutput = True

scriptpath = sys.path[0]
toolpath = os.path.dirname(scriptpath)
temp_outpath = "memory"


prod = arcpy.ProductInfo()
arcpy.AddMessage(f"License is {prod}")

arcpy.AddMessage("Starting Up")
arcpy.AddMessage("Geotagging photos to points")
arcpy.management.GeoTaggedPhotosToPoints(r"P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\Photo_Test\0407", r"P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\Photo_Test\HAS_Photos_Test.gdb\test_geotag9", None, "ALL_PHOTOS", "ADD_ATTACHMENTS")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Start Time: Wednesday, April 3, 2024 7:14:49 AM
License is ArcInfo
Starting Up
Geotagging photos to points
Traceback (most recent call last):
  File "P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\PWS_Herring_2023\Script\PWS_PhotoTest.py", line 36, in &amp;lt;module&amp;gt;
    arcpy.management.GeoTaggedPhotosToPoints(r"P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\Photo_Test\0407", r"P:\kmsmikrud\CF\AGOL_Collector\Region2\Herring_PWS\Photo_Test\HAS_Photos_Test.gdb\test_geotag9", None, "ALL_PHOTOS", "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 &amp;lt;lambda&amp;gt;
    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).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; I've been using script tools for quite sometime but this is puzzling.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and appreciate your time,&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 15:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405252#M70245</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-04-03T15:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405306#M70248</link>
      <description>&lt;P&gt;Hi Kathy&lt;/P&gt;&lt;P&gt;As you say... this is puzzling.&lt;BR /&gt;What I will do is create my own script tool to use this geoprocessing tool. I will have a look on friday and let you know how i get on. Many thanks ed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 16:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1405306#M70248</guid>
      <dc:creator>EdMorris</dc:creator>
      <dc:date>2024-04-03T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro python script tool - Error 000824: The tool is not licensed - GeoTaggedPhotosToPoints</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1406403#M70261</link>
      <description>&lt;P&gt;Thanks Ed!&lt;/P&gt;&lt;P&gt;Update is a coworker can run the script tool successfully in their desktop Pro version 3.2.x without any errors. I'm still using 3.0.6 and I also tried the same script tool in 2.9.x, but both of those get the same errors above.&lt;/P&gt;&lt;P&gt;Its so weird that the Geoprocessing tool will and also in the python window within Pro itself but not the script tool, must be a bug/disconnect of some sort.&lt;/P&gt;&lt;P&gt;I appreciate your time and info. I'm glad it at least runs on my coworkers machine.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-script-tool-error-000824-the/m-p/1406403#M70261</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-04-05T15:01:47Z</dc:date>
    </item>
  </channel>
</rss>

