I have a model that uses the Feature Class to Feature Class tool. It needs 3 inputs (Input layer, location and output name). My goal is that a user would choose a layer, the model would create a new name based on the layer, and then it would export the layer to somewhere else. For testing purposes, the input layer is static, because I have no issues with that part. Here is my model so far:
The change name is a custom tool that take a layer name, and return a string. Again, for testing purposes, I deleted almost all the code, and left only the important part:
import datetime import arcpy import os name = arcpy.GetParameterAsText(0) text = "lol" arcpy.SetParameterAsText(1, text)
Of course, on the tool properties, I made sure that the data type is a string for the output. I also tried Any type, and also tried changing the type to from Derived to Optional and Required.
I'm not sure what I'm doing wrong.