Skip to main content

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

0684Q00000ArAifQAF.png

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!

 

 

What happens if you set the Python interpreter (in the Workspace navigator) to the regular Python 2.7 and not the one supplied by ArcGIS?


What happens if you set the Python interpreter (in the Workspace navigator) to the regular Python 2.7 and not the one supplied by ArcGIS?

It looks like it resolved itself. Not sure what happened but it's working after the weekend. Thanks


Reply