<?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: Field calculation issue when using memory workspace in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755448#M51</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using an example from the blog post that Joe shared I was able to get the calculation to work with the UpdateCursor in the memory workspace, so it looks like I'm good to proceed.&amp;nbsp; I didn't test using the older in_memory workspace to see if my join + calculation method would work, but I'd rather get it to work with the newer workspace type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2020 15:42:39 GMT</pubDate>
    <dc:creator>TimothyMichael</dc:creator>
    <dc:date>2020-05-21T15:42:39Z</dc:date>
    <item>
      <title>Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755440#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a script that uses the 'memory' workspace as layers are being processed, and I've hit an issue when I try to execute a field calculation between joined layers.&amp;nbsp; I have included a script below that demonstrates the differences between workflows - the calculation will work fine if I create the feature layers from layers on disk, but will fail if the feature layers are created from layers in the memory workspace - testtype "fromdisk" works but testtype "frommemory" does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

inLine &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"D:\TEMP\Output_20200520080600.gdb\LINE00240"&lt;/SPAN&gt;
inPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"D:\TEMP\Output_20200520080600.gdb\StructureJoin"&lt;/SPAN&gt;

testtype &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"fromdisk"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; testtype &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"fromdisk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# Features are stored on disk&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# Feature layers are created from layers on disk&lt;/SPAN&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;"Running disk workflow"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Make feature layers&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"StructureFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Add join&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddJoin_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OBJECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"StructureFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ORIG_FID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Calculate field&lt;/SPAN&gt;
    in_field &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Field_Name"&lt;/SPAN&gt;
    expression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'!StructureJoin.STRUCTURE_GUID!'&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; expression&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PYTHON3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; testtype &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"frommemory"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# Features are stored on disk&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# Make copy of data in memory&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;# Feature layers are created from layers in memory&lt;/SPAN&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;"Running memory workflow"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
    &lt;SPAN class="comment token"&gt;# Copy features to memory&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"memory\Lines"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inPoint&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"memory\Structures"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Make feature layers&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"memory\Lines"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"memory\Structures"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"StructureFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Add join&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddJoin_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"OBJECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"StructureFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ORIG_FID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"KEEP_COMMON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# Calculate field&lt;/SPAN&gt;
    in_field &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Field_Name"&lt;/SPAN&gt;
    expression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'!Structures.STRUCTURE_GUID!'&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CalculateField_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LineFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; expression&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PYTHON3"&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;The resulting error is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Running memory workflow&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 4527, in CalculateField&lt;BR /&gt; retval = convertArcObjectToPythonObject(gp.CalculateField_management(*gp_fixargs((in_table, field, expression, expression_type, code_block, field_type), True)))&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 511, in &amp;lt;lambda&amp;gt;&lt;BR /&gt; return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Failed to execute (CalculateField).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to do something different when using the memory workspace?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755440#M43</guid>
      <dc:creator>TimothyMichael</dc:creator>
      <dc:date>2021-12-12T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755441#M44</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a huge fan of &lt;A href="https://community.esri.com/migrated-users/4811"&gt;Richard Fairhurst&lt;/A&gt;‌'s approach described here:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/blogs/richard_fairhurst/2014/11/08/turbo-charging-data-manipulation-with-python-cursors-and-dictionaries"&gt;/blogs/richard_fairhurst/2014/11/08/turbo-charging-data-manipulation-with-python-cursors-and-dictionaries&lt;/A&gt;&amp;nbsp;and use it often.&amp;nbsp; You may want to give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 13:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755441#M44</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-05-20T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755442#M45</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try utilising the arpy.env.scratchWorkspace e.g. output_path = os.path.join(arcpy.env.scratchWorkspace, output_name), it's also a useful workaround for GP tools which contain functions requiring physical outputs/copies, the server handles them in a pseudo in_memory capacity (as far as the user is concerned).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 14:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755442#M45</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-05-20T14:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755443#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the original version of this script I was writing everything out to disk first, and that worked fine, and I confirmed that the field calculation works that way.&amp;nbsp; I'm trying to do as much in memory as possible to eliminate the disk I/O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 15:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755443#M46</guid>
      <dc:creator>TimothyMichael</dc:creator>
      <dc:date>2020-05-20T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755444#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this link - I'm going to give the dictionary example a try and see if that works with the in-memory features.&amp;nbsp; Thank you for the pointer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 15:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755444#M47</guid>
      <dc:creator>TimothyMichael</dc:creator>
      <dc:date>2020-05-20T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755445#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really cool; no memory, no join, just get the data from&amp;nbsp;the source to the target: I have used it in memory, but only because I was updating in memory tables from other in memory tables where the data eventually found it's way to a feature class on disk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 15:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755445#M48</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-05-20T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755446#M49</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;In-memory workspaces (memory and in_memory) are not full-fledged workspaces, some geodatabase features/functionality work, some don't.&amp;nbsp; In this case, I do think it is a defect because I was able to use the older in_memory workspace in a standalone script and it works fine, no errors with expected results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 18:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755446#M49</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-20T18:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755447#M50</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like there have been other threads discussing some short comings of the memory workspace; I've never used it, just in_memory...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 18:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755447#M50</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-05-20T18:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755448#M51</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using an example from the blog post that Joe shared I was able to get the calculation to work with the UpdateCursor in the memory workspace, so it looks like I'm good to proceed.&amp;nbsp; I didn't test using the older in_memory workspace to see if my join + calculation method would work, but I'd rather get it to work with the newer workspace type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 15:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755448#M51</guid>
      <dc:creator>TimothyMichael</dc:creator>
      <dc:date>2020-05-21T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field calculation issue when using memory workspace</title>
      <link>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755449#M52</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad it worked for you; I can't tell you how many times I've used that approach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 15:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/field-calculation-issue-when-using-memory/m-p/755449#M52</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-05-21T15:50:49Z</dc:date>
    </item>
  </channel>
</rss>

