Skip to main content
Question

Use SystemCaller to run python script

  • October 23, 2023
  • 1 reply
  • 228 views

sunsilk11
Contributor
Forum|alt.badge.img+6

Hi I am using FME Server 2021.2.3, from which

I am using a SystemCaller to call a python script, which uses ArcGIS API for Python

The python script runs correctly when run manually on the server and also when called in FME Desktop

The command line on SystemCaller is:

"\\\\fme001.dev.stw.co.uk\\C$\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\propy.bat \\\\fme001.dev.stw.co.uk\\e$\\FMEShare\\resources\\data\\CheckVersions.py Waste/COR_RX_WASTE https://tt-gis.dev.stw.co.uk "

 

When running the workspace in FME Server, I get 'Failed to execute'

I have tried putting double quote around the whole command line.

Have also granted full access to FME Server domain user for the directories above. The error still persists

Any suggestions ?

 

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • October 23, 2023

Have you tried doubling the backslashes? Sometimes they're treated as escape characters so can do some funky things....

"\\\\\\\\fmeoo1.dev.stw.co.uk\\\\C$\\\\Pro......"

 

Have you also considered running it natively in FME using the PythonCaller (with python compatibility set to ArcGIS)?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings