AnsweredAssumed Answered

Python script to append field.length(254) to field.length(25)

Question asked by RowenW on Sep 28, 2017
Latest reply on Sep 29, 2017 by xander_bakker

Need a python script to help with an Append.

My input field length is 254 and my output field length is 25.

So I want the script to still append the data to the new field but can cut it off when it reaches 25 characters.

 

Is the anyway to do this?

 

Sample of my script:

import arcpy, sys, os

# Arguments
input_data = arcpy.GetParameterAsText(0)
template = arcpy.GetParameterAsText(1)


arcpy.Append_management(input_data,template,"NO_TEST", "", "")

 

But this gives me the error.

Outcomes