I updated from ArcGIS Pro 3.0.3 to 3.1 yesterday, and since then any time I try to write anything into "memory" or "in_memory" it causes ArcGIS Pro to crash.
This is an example of some code, but everything I have tried with memory or in_memory causes the same issue.
arcpy.MakeFeatureLayer_management(input_locations, input_location_layer, f"{input_name_field} = '{location}'")
arcpy.CopyFeatures_management(input_location_layer, f"memory\\{location}_facility")
I have tried doing a full uninstall (including deleting all the Pro folders and registry entries), and I've also tried creating a new Python Environment but get the same issue.
Any ideas?