<?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 SOLVED:  Cant access ModelBuilder tool code block for toolbox model/tool created in Arc Map in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/solved-cant-access-modelbuilder-tool-code-block/m-p/1609807#M4078</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive run into situation where I developed tools in ArcMap and need to run in Arc Pro (sometimes with some modifications).&amp;nbsp; One issue that I ran into is tools that had more complex calculations that required use of 'Code Blocks' (e.g. Calculate Field, Calculate Value, etc.), is when I opened in Pro, I no longer could see (or access) the code block (see first screen shot below).&amp;nbsp; However, if I hovered over the tool in modelbuilder, I could see the code in the popup (2nd screenshot).&amp;nbsp; If no changes were necessary, tool would run fine, but if I needed to made some change in the code block, I couldnt figure out how - very frustrating!&lt;/P&gt;&lt;P&gt;Fortunately after a few deep breaths, I realized the issue and solution.&amp;nbsp; In ArcMap one of the selectable 'Expression Type's is 'PYTHON_9.3'.&amp;nbsp; In Pro that is not an option (just Arcade, Python, and VBScript).&amp;nbsp; To fix the issue, simply change the 'Expression Type' to "Python" and then you should be able to see the code block (3rd screenshot)&lt;/P&gt;&lt;P&gt;Hope this saves frustation for others!&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_0-1745873673351.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131053iF565CD52DA8865BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_0-1745873673351.png" alt="NealBanerjee_0-1745873673351.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_1-1745873689750.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131054i6C532B336BA32D3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_1-1745873689750.png" alt="NealBanerjee_1-1745873689750.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_2-1745874226668.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131056iD42FE916845278D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_2-1745874226668.png" alt="NealBanerjee_2-1745874226668.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2025 21:04:55 GMT</pubDate>
    <dc:creator>NealBanerjee</dc:creator>
    <dc:date>2025-04-28T21:04:55Z</dc:date>
    <item>
      <title>SOLVED:  Cant access ModelBuilder tool code block for toolbox model/tool created in Arc Map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/solved-cant-access-modelbuilder-tool-code-block/m-p/1609807#M4078</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ive run into situation where I developed tools in ArcMap and need to run in Arc Pro (sometimes with some modifications).&amp;nbsp; One issue that I ran into is tools that had more complex calculations that required use of 'Code Blocks' (e.g. Calculate Field, Calculate Value, etc.), is when I opened in Pro, I no longer could see (or access) the code block (see first screen shot below).&amp;nbsp; However, if I hovered over the tool in modelbuilder, I could see the code in the popup (2nd screenshot).&amp;nbsp; If no changes were necessary, tool would run fine, but if I needed to made some change in the code block, I couldnt figure out how - very frustrating!&lt;/P&gt;&lt;P&gt;Fortunately after a few deep breaths, I realized the issue and solution.&amp;nbsp; In ArcMap one of the selectable 'Expression Type's is 'PYTHON_9.3'.&amp;nbsp; In Pro that is not an option (just Arcade, Python, and VBScript).&amp;nbsp; To fix the issue, simply change the 'Expression Type' to "Python" and then you should be able to see the code block (3rd screenshot)&lt;/P&gt;&lt;P&gt;Hope this saves frustation for others!&lt;/P&gt;&lt;P&gt;Neal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_0-1745873673351.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131053iF565CD52DA8865BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_0-1745873673351.png" alt="NealBanerjee_0-1745873673351.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_1-1745873689750.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131054i6C532B336BA32D3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_1-1745873689750.png" alt="NealBanerjee_1-1745873689750.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealBanerjee_2-1745874226668.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131056iD42FE916845278D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealBanerjee_2-1745874226668.png" alt="NealBanerjee_2-1745874226668.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 21:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/solved-cant-access-modelbuilder-tool-code-block/m-p/1609807#M4078</guid>
      <dc:creator>NealBanerjee</dc:creator>
      <dc:date>2025-04-28T21:04:55Z</dc:date>
    </item>
  </channel>
</rss>

