I have a published python scripted parameter that is supposed to return the current date and time. The parameter is later used in the dataset field in a FeatureWriter at the end of the workspace.
Testing the workspace in FME 2017.1 is fine, but running the workspace in 2018.1 doesn't work - FME EXE stops immediately after starting translation
Here's the script used by the parameter
from datetime import datetime
return datetime.now().strftime('%Y-%m-%d_%I%M%p')
I have the preferred python interpreter set to Esri ArcGIS Desktop Python (2.7)
I'm very new to python so apologies if i'm missing something obvious. Thanks!