<?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 Catch 'Object Not Found' Python Script Toolbox Error  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/catch-object-not-found-python-script-toolbox-error/m-p/425564#M33427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Python Script Toolbox that runs Updates Parameters based on an existing user-selected Folder Workspace parameter. I want to customize the error that occurs when a user selects a folder path that does not exist. The current error that displays is a generic 'Object Not Found' error "The object 'some non-existing file path' could not be found."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to update the error to read, "The 'some non-existing file path" could not be found. Please enter an existing project folder."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that all of this occurs within the 'Update Parameters' function before the tool parameters have been validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2020 20:51:33 GMT</pubDate>
    <dc:creator>YurikoHashimoto1</dc:creator>
    <dc:date>2020-04-06T20:51:33Z</dc:date>
    <item>
      <title>Catch 'Object Not Found' Python Script Toolbox Error</title>
      <link>https://community.esri.com/t5/python-questions/catch-object-not-found-python-script-toolbox-error/m-p/425564#M33427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Python Script Toolbox that runs Updates Parameters based on an existing user-selected Folder Workspace parameter. I want to customize the error that occurs when a user selects a folder path that does not exist. The current error that displays is a generic 'Object Not Found' error "The object 'some non-existing file path' could not be found."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to update the error to read, "The 'some non-existing file path" could not be found. Please enter an existing project folder."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that all of this occurs within the 'Update Parameters' function before the tool parameters have been validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 20:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/catch-object-not-found-python-script-toolbox-error/m-p/425564#M33427</guid>
      <dc:creator>YurikoHashimoto1</dc:creator>
      <dc:date>2020-04-06T20:51:33Z</dc:date>
    </item>
  </channel>
</rss>

