laptop and a wrench

Bug

Typing '\n' on the code block when using the Calculate Value tool (ModelBuilder) causes the parser to execute the command and split the script.

Last Published: February 20, 2019 ArcGIS Pro
Bug ID Number BUG-000120152
SubmittedFebruary 19, 2019
Last ModifiedMay 31, 2023
Applies toArcGIS Pro
Version found2.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusIn Product Plan

Additional Information

Use the Python’s os.linesep property in code block import os and in the writer = use lineterminator=os.linesep instead of the lineterminator=r'\n'

Steps to Reproduce

Bug ID: BUG-000120152

Software:

  • ArcGIS Pro

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic