Can script tools use f-strings? I'm getting an 'ERROR 000354: The name contains invalid characters'. The line that is causing the error is as follows -
arcpy.FeatureClassToFeatureClass_conversion('Proposed_OLT_LCP_Boundaries', scratch, f'{lcpNameFixed}_Boundary', exp) Here is how lcpNameFixed is assigned.
lcps = arcpy.GetParameterAsText(0)
lcpNameFixed = lcp.replace('-', '') The value list of lcps has dashes ('-') but the lcpNameFixed takes the dashes out. The lcps value list doesn't start with numbers either. I just want to rule out if the f-string might be causing this invalid name error.