<?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: Python running a FOR loop but script seems to think the input workspace is empty? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417564#M32809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You state:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;the arcpy.MakeFeatureLayer is not running it's erroring out at the project step because there are no inputs.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So is Make Feature Layer not working or Project?&amp;nbsp; It is always helpful to paste the error and full traceback to avoid confusion like this on what exactly is generating the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2020 19:50:19 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-03-09T19:50:19Z</dc:date>
    <item>
      <title>Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417558#M32803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a script tool to take a large data set select by location export and project it.&amp;nbsp; I cannot get the for loop to work and I am at a loss because the script runs without errors, but creates no outputs except for the buffer used for selection.&amp;nbsp; When debugging I've found that when I put the beginning part of the script before the for loop in there and have it try to print(Layers) it returns no values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached script.&amp;nbsp; Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484531_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417558#M32803</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-09T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417559#M32804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;between lines 25 and 26, add a&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Layers found {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Input_workspace&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you get nothing, then the input workspace isn't any good, or it isn't a full path.&lt;/P&gt;&lt;P&gt;Also add a&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Layer name {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;on line 26.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;/blogs/dan_patterson/2016/08/14/script-formatting&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so people can copy and paste your code and have it formatted properly.&amp;nbsp; Screen grabs can be use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417559#M32804</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-09T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417560#M32805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm"&gt;ListFeatureClasses—Help | Documentation&lt;/A&gt; is designed to have the workspace already set:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;The workspace environment must be set before using several of the list functions, including&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listdatasets.htm" style="color: #007ac2; text-decoration: none;"&gt;ListDatasets&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfeatureclasses.htm" style="color: #007ac2; text-decoration: none;"&gt;ListFeatureClasses&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfiles.htm" style="color: #007ac2; text-decoration: none;"&gt;ListFiles&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listrasters.htm" style="color: #007ac2; text-decoration: none;"&gt;ListRasters&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listtables.htm" style="color: #007ac2; text-decoration: none;"&gt;ListTables&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A class="" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listworkspaces.htm" style="color: #007ac2; text-decoration: none;"&gt;ListWorkspaces&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For starters, you have to set the workspace.&amp;nbsp; Secondly, passing a workspace as a wildcard search will likely result in nothing being returned even if the workspace is set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417560#M32805</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-09T17:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417561#M32806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a feeling this was the problem, I need to have multiple workspaces in the script and it's causing issues I think I need a larger for loop to go through the workspaces instead of setting up the for loop for one workspace.&amp;nbsp; Thanks for pointing it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417561#M32806</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-09T17:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417562#M32807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most, if not all, geoprocessing tools accept full paths to data sets, and I strongly encourage passing/using full paths instead of relying on the workspace being set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417562#M32807</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-09T17:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417563#M32808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've made the following correction to list through multiple workspaces but the arcpy.MakeFeatureLayer is not running it's erroring out at the project step because there are no inputs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484625_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417563#M32808</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-09T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417564#M32809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You state:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;the arcpy.MakeFeatureLayer is not running it's erroring out at the project step because there are no inputs.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So is Make Feature Layer not working or Project?&amp;nbsp; It is always helpful to paste the error and full traceback to avoid confusion like this on what exactly is generating the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417564#M32809</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-09T19:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417565#M32810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484626_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Sorry I can clarify, above is the error I am getting but also when I check my results folder it doesn't appear to be creating any outputs.&amp;nbsp; Since Project is the last function I thought the error was coming from a lack of inputs from Make Feature Layer and Select Layer by Location appear to not be running.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417565#M32810</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-09T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417566#M32811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error is in your output coordinate system.&amp;nbsp; So, what is it exactly?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 22:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417566#M32811</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-09T22:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417567#M32812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Caroline,&amp;nbsp;&lt;BR /&gt;On line 38 where you're calling arcpy.Project_managment() try switching the&amp;nbsp;order of your second and third arguments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcpy is expecting&amp;nbsp;input dataset, followed by output dataset, then coordinate system (see: &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/project.htm#GUID-529F0CFA-5C94-4229-BD79-507B17C18E71" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/project.htm#GUID-529F0CFA-5C94-4229-BD79-507B17C18E71"&gt;Project—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;). While the script is currently specifying input dataset, followed by coordinate system, then output dataset. The error 'cannot set input into parameter out_coor_system is basically complaining that it can't figure out how to interpret the contents of the out_name2 variable as a coordinate system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we should end up with on line 38 will be&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;arpcy.Project_management(out_name, out_name2, Coordinate)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we still have issues with the call to Project_management after making this change, we'll likely need to take a look at what input is being provided on line 18 with Coordinate = arcpy.GetParameterAsText(7)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 22:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417567#M32812</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-09T22:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417568#M32813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help once I fixed my inputs the tool ran but now I am getting this error, even though the output does exist and I'm not sure why it would not be supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/484673_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417568#M32813</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-10T12:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417569#M32814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When errors relate to parameters, it is helpful to share the actual values stored in the variables being passed to the tool (and workspace if you are relying on relative paths).&amp;nbsp; I am guessing the issue is will out_name, but I am not sure since I don't know what string is in the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417569#M32814</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-10T14:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417570#M32815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct I'm having trouble with the paths, it seems to be defaulting to C:\Python27\ArcGIS10.7\ but the features are being created in my output workspace path.&amp;nbsp; I can't share my folder paths the data I'm working with is proprietary.&amp;nbsp; Right now the script is looking at a path where there is no output and I'm working on trying to re-path my variables so that out_name = Output_workspace + fc +"_SELECTION".&amp;nbsp; I'm having trouble with this because in the syntax for FeatureClassToFeatureClass includes Output_workspace so when I try to define out_name I get the path duplicated (i.e. C:\Data\Selection.shp\C:\Data\Selection.shp)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417570#M32815</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-10T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417571#M32816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be worth searching out some blog posts or tutorials on using file paths in Python since you are struggling with it.&amp;nbsp; In the short term, you can try saving the Result object from Feature Class to Feature Class and passing that to project instead of trying to reconstruct the path yourself:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;res &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClassToFeatureClass_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_folder_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Project_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;res&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Coordinate&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_name2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417571#M32816</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T18:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python running a FOR loop but script seems to think the input workspace is empty?</title>
      <link>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417572#M32817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did the trick.&amp;nbsp; Thank you. I will definitely look into using file paths.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-running-a-for-loop-but-script-seems-to/m-p/417572#M32817</guid>
      <dc:creator>CarolineBanville</dc:creator>
      <dc:date>2020-03-10T16:24:37Z</dc:date>
    </item>
  </channel>
</rss>

