Skip to main content
Question

Arcpy script not working in fme flow

  • June 11, 2026
  • 7 replies
  • 37 views

chitra
Observer
Forum|alt.badge.img+1

I have an ArcPy script that works in FME Form but not in FME Flow. Can anyone help me resolve this issue?

7 replies

david_r
Celebrity
  • June 11, 2026

Some more details would be helpful… Any error messages?


chitra
Observer
Forum|alt.badge.img+1
  • Author
  • Observer
  • June 11, 2026

am getting this error 

 


david_r
Celebrity
  • June 11, 2026

Looks like either the batch file or the Python scripts fails, for whatever reason. Unfortunately it’s not possible to say why without knowing the contents.

Are you sure that the path to the .bat and .py files exists on your Flow instance, and that the Flow service account has the appropriate permissions on those folders?


chitra
Observer
Forum|alt.badge.img+1
  • Author
  • Observer
  • June 11, 2026

@echo Run 
"C:\apps\ArcGIS\bin\Python\Scripts\propy.bat" D:\FME\resources\scripts\REFACTOR\Point_Removal_Code.py
@echo Finished
 This is my batch file. All the Python scripts in this location are available and working fine. Only the ArcPy script is having an issue. That’s why I’m unsure whether FME Flow can properly access ArcPy.


j.botterill
Influencer
Forum|alt.badge.img+58
  • Influencer
  • June 11, 2026

Exit code 1 from a batch in FME Form essentially means “the command failed”, so the key is why ArcPy (via propy.bat) is failing, not FME itself.

Does the ArcPy run in arcgis python interpreter?

propy.bat relies on ArcGIS Pro’s conda environment. Add the CALL to force full activation of ArcPRO python environment

 

@echo Run

CALL "C:\apps\ArcGIS\bin\Python\Scripts\propy.bat" "D:\FME\resources\scripts\REFACTOR\Point_Removal_Code.py"

@echo Finished


chitra
Observer
Forum|alt.badge.img+1
  • Author
  • Observer
  • June 11, 2026

after trying this i didn’t get exit code 1 error but amm getting this error -----Run started at Thu 06/11/2026  5:46:11.89 
Traceback (most recent call last):
  File "D:\FME\resources\scripts\REFACTOR\Point_Removal_Code.py", line 1, in <module>
    import arcpy
  File "C:\apps\ArcGIS\Resources\ArcPy\arcpy\__init__.py", line 77, in <module>
    from arcpy.geoprocessing import gp
  File "C:\apps\ArcGIS\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in <module>
    from ._base import *
  File "C:\apps\ArcGIS\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in <module>
    import arcgisscripting
  File "C:\apps\ArcGIS\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgisscripting\__init__.py", line 131, in <module>
    from ._arcgisscripting import *
RuntimeError: The Product License has not been initialized.
Finished at Thu 06/11/2026  5:46:20.81 


david_r
Celebrity
  • June 11, 2026

Could it be that ArcGIS hasn’t been licensed and/or activated for the Flow service account?