<?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 ArcGIS doest accept a string, as a result of a custom python tool, in a model in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/arcgis-doest-accept-a-string-as-a-result-of-a/m-p/479172#M1042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm stuck with this issue for 8 hours and could not find what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model that uses the Feature Class to Feature Class tool. It needs 3 inputs (Input layer, location and output name). My goal is that a use would choose a layer, the model would create a new name based on the layer, and then it would export the layer to somewhere else. For testing purposes, the input layer is static, because I have no issues with that part.&amp;nbsp; Here is my model so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="193" src="https://community.esri.com/legacyfs/online/460087_pastedImage_2.png" width="346" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change name is a custom tool that take a layer name, and return a string.&amp;nbsp; Again, for testing purposes, I deleted almost all the code, and left only the important part:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/460094_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, on the tool properties, I made sure that the data type is a string for the output. I also tried Any type, and also tried changing the type to from Derived to Optional and Required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/460095_pastedImage_4.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;But I always get the same error. Output Feature Class is not valid on the Feature to Feature tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/460096_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="j-img-floatstart image-5 jive-image" src="https://community.esri.com/legacyfs/online/460097_pastedImage_7.png" style="float: left;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can give me a light? I have no clue what Im doing wrong, and I change all the variables I know.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Sep 2019 15:43:49 GMT</pubDate>
    <dc:creator>Gustavo_Souza</dc:creator>
    <dc:date>2019-09-20T15:43:49Z</dc:date>
    <item>
      <title>ArcGIS doest accept a string, as a result of a custom python tool, in a model</title>
      <link>https://community.esri.com/t5/arcmap-questions/arcgis-doest-accept-a-string-as-a-result-of-a/m-p/479172#M1042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm stuck with this issue for 8 hours and could not find what I'm doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model that uses the Feature Class to Feature Class tool. It needs 3 inputs (Input layer, location and output name). My goal is that a use would choose a layer, the model would create a new name based on the layer, and then it would export the layer to somewhere else. For testing purposes, the input layer is static, because I have no issues with that part.&amp;nbsp; Here is my model so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="193" src="https://community.esri.com/legacyfs/online/460087_pastedImage_2.png" width="346" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change name is a custom tool that take a layer name, and return a string.&amp;nbsp; Again, for testing purposes, I deleted almost all the code, and left only the important part:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/460094_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, on the tool properties, I made sure that the data type is a string for the output. I also tried Any type, and also tried changing the type to from Derived to Optional and Required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/460095_pastedImage_4.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;But I always get the same error. Output Feature Class is not valid on the Feature to Feature tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/460096_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="j-img-floatstart image-5 jive-image" src="https://community.esri.com/legacyfs/online/460097_pastedImage_7.png" style="float: left;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can give me a light? I have no clue what Im doing wrong, and I change all the variables I know.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/arcgis-doest-accept-a-string-as-a-result-of-a/m-p/479172#M1042</guid>
      <dc:creator>Gustavo_Souza</dc:creator>
      <dc:date>2019-09-20T15:43:49Z</dc:date>
    </item>
  </channel>
</rss>

