Skip to main content
Question

Running workspace from python

  • August 7, 2020
  • 1 reply
  • 40 views

dustin
Influencer
Forum|alt.badge.img+31

I'm attempting to run a workbench from a python script:

import sys
sys.path.append(r'C:\Program Files (x86)\FME_2019.1.1\fmeobjects\python27')
 
import fmeobjects
runner = fmeobjects.FMEWorkspaceRunner() 
workspace = r'E:\TFS\GeospatialA\Maritime\Misc_Tools\ESRI_INIT\fmw\gdb_notes_extract.fmw'
 
runner.promptRun(workspace)

I do get the prompts to input paramaters as expected. After clicking OK to run the workbench, I immediately get the error as seen in the attachment. I can't seem to find any details about what might be causing this. The workbench simply reads in a file geodatabase, does some relations, and output a new geodatabase. Any ideas?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

dustin
Influencer
Forum|alt.badge.img+31
  • Author
  • Influencer
  • August 7, 2020

As it turns out, the issue was in the workbench. The Python Compatibility was set to Python 3.7+. After setting this to Esri ArcGIS Desktop (Python 2.7), it works as intended.