Solved

Simple Python Scripted Parameter not Working after Upgrade to 2018.1


Badge +10

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!

 

 

icon

Best answer by carmijo 28 May 2019, 17:39

View original

2 replies

Userlevel 4

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?

Badge +10

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