Python Error on FME Flow for ArcGISOnlineConnector
I use the ArcGISOnlineConnector (3.10) on FME 2024.2.1.0
On FME Form everythings works perfect. When I try to run it on FME Flow it still seems to finish the workspace, but it Fails and somewhere in the log is the following lines:
1002 2025-7-10 15:31:05 | Message Type: fme::internal::_v0::py::Exception 1003 2025-7-10 15:31:05 | Python Exception <ValueError>: API not configured 1004 2025-7-10 15:31:05 | Error encountered while calling method `input' 1005 2025-7-10 15:31:05 | ArcGISOnlineConnector_CALLER (PythonFactory): PythonFactory failed to process feature
Anybody an idea what the issue could be?
Page 1 / 1
Hi @matthieuv, I haven’t seen it myself. Can other workspaces on Flow using the connector? If all are receiving the same error, it might be worth reinstalling the ArcGISOnlineConnector package with the latest version.
In FME Flow:
Go to Resources > Engine and delete the fpkg file for the package name and version you want to remove.
Then go into Resources > Engine > Packages > <fmebuild>-<OS>, and look in each of the subfolders for a folder named after the package and version. Remove any folders (or files) that match the name and version of the package you are removing.
In FME Form:
Upgrade to the latest package and republish the workspace with the package to FME Flow. The first time the workspace is run, the new package should be installed. You can check the fmeprocessmonitorengine.log file to see if it installed successfully.
Other than that, in the job log, is the Python interpreter being loaded the on that is expected (set in the Workspace Parameters > Scripting)? Or is there some other interpreter being loaded, perhaps a custom one. The full job log may help.
I have to file this tip away for safe keeping. Deleting packages in flow and updating is a great troubleshooting tip. Thanks @mattmatsafe
Late follow up, but problem hasn't been resolved yet. I tried removing the package and installing again by running the workspace.
For your information, this has worked before but somehow stopped working.
Below the log file with some sensitive information removed:
1 2025-9-4 17:15:44 | Current FME version: FME 2024.2.1.0 (20241202 - Build 24801 - WIN64) 2 2025-9-4 17:15:44 | System Time: 20250904151544 UTC 3 2025-9-4 17:15:44 | Workspace was last saved in FME version: FME 2024.2.1.0 (20241202 - Build 24801 - WIN64) 4 2025-9-4 17:15:44 | FME_HOME is 'D:\Program Files\FMEFlow\Server\fme\' 5 2025-9-4 17:15:44 | FME Engine (node locked-crc) 6 2025-9-4 17:15:44 | Serial Number: SAFE 7 2025-9-4 17:15:44 | Machine host name is: 8 2025-9-4 17:15:44 | OS Locale Name : en_US 9 2025-9-4 17:15:44 | OS Locale Encoding : windows-1252 10 2025-9-4 17:15:44 | Process Encoding : windows-1252 11 2025-9-4 17:15:44 | FME attempted to switch to a Utf8 locale, but the operation did not succeed. Utf8 processing is disabled 12 2025-9-4 17:15:44 | FME API version: '4.0 20240212' 13 2025-9-4 17:15:44 | FME Configuration: FME_BASE is 'no' 14 2025-9-4 17:15:44 | FME Configuration: FME_MF_DIR is 'D:\ProgramData\Safe Software\FMEFlow\repositories\DataportaalExtern\DataPortaalExtern/' 15 2025-9-4 17:15:44 | FME Configuration: FME_MF_NAME is 'DataPortaalExtern.fmw' 16 2025-9-4 17:15:44 | FME Configuration: FME_PRODUCT_NAME is 'FME(R) 2024.2.1.0' 17 2025-9-4 17:15:44 | Operating System: Microsoft Windows Server 2016 64-bit (Build 14393) 18 2025-9-4 17:15:44 | FME Platform: WIN64 19 2025-9-4 17:15:44 | System Status: 11.28 GB of disk space available in the FME temporary folder (C:\Windows\TEMP\fmeengines\localhost_Engine1) 20 2025-9-4 17:15:44 | System Status: 31.25 GB of physical memory available 21 2025-9-4 17:15:44 | System Status: 125.00 GB of virtual memory available 22 2025-9-4 17:15:44 | START - ProcessID: 2648, peak process memory usage: 92824 kB, current process memory usage: 92824 kB 23 2025-9-4 17:15:44 | FME Configuration: Command line arguments are `fme' `DataportaalExtern\DataPortaalExtern\DataPortaalExtern.fmw' `--FME_AUTOMATION_NODE_ID' `78d12cff-0051-4df0-8878-bacf040e9934' `--FME_SERVER_PORT' `7071' `--FME_SHAREDRESOURCE_DATA' `D:/ProgramData/Safe Software/FMEFlow/resources/data/' `--FME_TOPIC_MESSAGE' `$(FME_SHAREDRESOURCE_SYSTEM)temp/subscriptions/6a16fff0ec5b412585650f1732f554c0.json' `--FME_SECURITY_USER' `admin' `--FME_DATA_REPOSITORY' `D:/ProgramData/Safe Software/FMEFlow/resources/system/temp/upload/' `--FME_SERVER_ROOT' `D:/ProgramData/Safe Software/FMEFlow' `--FME_ENGINE' `localhost_Engine1' `-LOG_FILENAME' `D:/ProgramData/Safe Software/FMEFlow/resources/logs/engine/current/jobs\3000\job_3226.log' `--FME_AUTOMATION_LOGGING_MODE' `FILE' `--FME_SHAREDRESOURCE_ENGINE' `D:/ProgramData/Safe Software/FMEFlow/resources/engine/' `--FME_JOB_CONTEXT' `context-id-ff68e1c5-92bb-4de7-ad47-e3874438888b' `--ENVIRONMENT' `PROD' `-FME_SHARED_RESOURCE_DIR' `D:\ProgramData\Safe Software\FMEFlow\repositories\DataportaalExtern\DataPortaalExtern' `--FME_SERVER_WEB_URL' `https://' `--FME_SHAREDRESOURCE_LOG' `D:/ProgramData/Safe Software/FMEFlow/resources/logs/' `--FME_SHAREDRESOURCE_TEMP' `D:/ProgramData/Safe Software/FMEFlow/resources/temp/' `--FME_JOB_ID' `3226' `--FME_ENGINE_CONFIG_DIR' `D:\Program Files\FMEFlow\Server\' `--FME_SHAREDRESOURCE_DASHBOARD' `D:/ProgramData/Safe Software/FMEFlow/resources/dashboards/' `--FME_MF_NAME' `DataPortaalExtern.fmw' `--FME_AUTOMATION_NAME' `dataportaalextern' `-FME_ENGINE_MEMORY_REDLINE' `0.5' `--FME_AUTOMATION_ID' `c5fb3a1b-b2d1-4aa9-9488-9e9f39a0df0f' `--FME_SHAREDRESOURCE_BACKUP' `D:/ProgramData/Safe Software/FMEFlow/resources/backups/' `--FME_SHAREDRESOURCE_SYSTEM' `D:/ProgramData/Safe Software/FMEFlow/resources/system/' `--EFFECTIVEDATE' `20250807' `--FME_SERVER_RUNTIME_USER' `username' `--FME_SECURITY_ROLES' `["fmeadmin","fmesuperuser","user:admin"]' `--FME_TOPIC' `c5fb3a1b-b2d1-4aa9-9488-9e9f39a0df0f-f7977665-12cc-8ebf-9f21-bf304e32288b' `--FME_SERVER_RUNTIME_USER_ID' `eb2a3186-fa75-42f4-984b-ad390d57da95' `--FME_SERVER_HOST' `localhost' 24 2025-9-4 17:15:44 | FME Configuration: Connection Storage: 'localhost' 25 2025-9-4 17:15:44 | Shared folders for formats are : D:\Program Files\FMEFlow\Server\fme\datasources;D:\ProgramData\Safe Software\FMEFlow\resources\engine\Formats;C:\Windows\system32\config\systemprofile\Documents\FME\Formats 26 2025-9-4 17:15:44 | Shared folders for transformers are : D:\ProgramData\Safe Software\FMEFlow\resources\engine\Packages\24801-win64\transformers;C:\Windows\system32\config\systemprofile\AppData\Roaming\Safe Software\FME\Packages\24801-win64\transformers;D:\Program Files\FMEFlow\Server\fme\transformers;D:\ProgramData\Safe Software\FMEFlow\repositories\DataportaalExtern\DataPortaalExtern;D:\ProgramData\Safe Software\FMEFlow\resources\engine\Transformers 27 2025-9-4 17:15:44 | Shared folders for coordinate systems are : D:\ProgramData\Safe Software\FMEFlow\resources\engine\CoordinateSystems;C:\Windows\system32\config\systemprofile\Documents\FME\CoordinateSystems 28 2025-9-4 17:15:44 | Shared folders for coordinate system exceptions are : D:\ProgramData\Safe Software\FMEFlow\resources\engine\CoordinateSystemExceptions;C:\Windows\system32\config\systemprofile\Documents\FME\CoordinateSystemExceptions 29 2025-9-4 17:15:44 | Shared folders for coordinate system grid overrides are : D:\ProgramData\Safe Software\FMEFlow\resources\engine\CoordinateSystemGridOverrides;C:\Windows\system32\config\systemprofile\Documents\FME\CoordinateSystemGridOverrides 30 2025-9-4 17:15:44 | Shared folders for CS-MAP transformation exceptions are : D:\ProgramData\Safe Software\FMEFlow\resources\engine\CsmapTransformationExceptions;C:\Windows\system32\config\systemprofile\Documents\FME\CsmapTransformationExceptions 31 2025-9-4 17:15:44 | Shared folders for transformer categories are : C:\Windows\system32\config\systemprofile\Documents\FME\TransformerCategories 32 2025-9-4 17:15:44 | Mapping File Identifier is: DataPortaalExtern 33 2025-9-4 17:15:44 | FME Configuration: No destination coordinate system set 34 2025-9-4 17:15:44 | FME Configuration: Current working folder is `D:\ProgramData\Safe Software\FMEFlow\repositories' 35 2025-9-4 17:15:44 | FME Configuration: Temporary folder is in the system location `C:\Windows\TEMP\fmeengines\localhost_Engine1' 36 2025-9-4 17:15:44 | FME Configuration: Cache folder is 'C:\Windows\TEMP\fmeengines\localhost_Engine1' 37 2025-9-4 17:15:44 | FME Configuration: FME_HOME is `D:\Program Files\FMEFlow\Server\fme\' 38 2025-9-4 17:15:44 | FME Configuration: Start freeing memory when the process exceeds 93.75 GB 39 2025-9-4 17:15:44 | FME Configuration: Stop freeing memory when the process is below 70.31 GB 40 2025-9-4 17:15:44 | Creating writer for format: 41 2025-9-4 17:15:44 | Creating reader for format: 42 2025-9-4 17:15:44 | MULTI_READER(MULTI_READER): Will fail with first member reader failure 43 2025-9-4 17:15:44 | Using Multi Reader with keyword `MULTI_READER' to read multiple datasets 44 2025-9-4 17:15:44 | Using MultiWriter with keyword `MULTI_DEST' to output data (ID_ATTRIBUTE is `multi_writer_id') 45 2025-9-4 17:15:44 | Loaded module 'Geometry_func' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/Geometry_func.dll' 46 2025-9-4 17:15:44 | FME API version of module 'Geometry_func' matches current internal version (4.0 20240212) 47 2025-9-4 17:15:44 | Loaded module 'DuplicateRemoverFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/DuplicateRemoverFactory.dll' 48 2025-9-4 17:15:44 | FME API version of module 'DuplicateRemoverFactory' matches current internal version (4.0 20240212) 49 2025-9-4 17:15:44 | Loaded module 'QueryFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/QueryFactory.dll' 50 2025-9-4 17:15:44 | FME API version of module 'QueryFactory' matches current internal version (4.0 20240212) 51 2025-9-4 17:15:44 | Loaded module 'PythonFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/PythonFactory.dll' 52 2025-9-4 17:15:44 | FME API version of module 'PythonFactory' matches current internal version (4.0 20240212) 53 2025-9-4 17:15:44 | Loaded module 'XMLFormatterFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/XMLFormatterFactory.dll' 54 2025-9-4 17:15:44 | FME API version of module 'XMLFormatterFactory' matches current internal version (4.0 20240212) 55 2025-9-4 17:15:44 | Loaded module 'XQueryFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/XQueryFactory.dll' 56 2025-9-4 17:15:45 | FME API version of module 'XQueryFactory' matches current internal version (4.0 20240212) 57 2025-9-4 17:15:45 | Loaded module 'StringReplacerFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/StringReplacerFactory.dll' 58 2025-9-4 17:15:45 | FME API version of module 'StringReplacerFactory' matches current internal version (4.0 20240212) 59 2025-9-4 17:15:45 | Loaded module 'XQueryFactory2' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/XQueryFactory2.dll' 60 2025-9-4 17:15:45 | FME API version of module 'XQueryFactory2' matches current internal version (4.0 20240212) 61 2025-9-4 17:15:45 | Loaded module 'StringValueFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/StringValueFactory.dll' 62 2025-9-4 17:15:45 | FME API version of module 'StringValueFactory' matches current internal version (4.0 20240212) 63 2025-9-4 17:15:45 | Loaded module 'AttributeKeeperFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/AttributeKeeperFactory.dll' 64 2025-9-4 17:15:45 | FME API version of module 'AttributeKeeperFactory' matches current internal version (4.0 20240212) 65 2025-9-4 17:15:45 | Loaded module 'FeatureJoinerFactory' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/FeatureJoinerFactory.dll' 66 2025-9-4 17:15:45 | FME API version of module 'FeatureJoinerFactory' matches current internal version (4.0 20240212) 67 2025-9-4 17:15:45 | Emptying factory pipeline 68 2025-9-4 17:15:45 | LoggerQueryDate: EffectiveDate used in the FeatureReaders is: 08-07-2025 69 2025-9-4 17:15:45 | Creating reader for format: Esri Geodatabase (ArcSDE Geodb) 70 2025-9-4 17:15:45 | Trying to find a DYNAMIC plugin for reader named `GEODATABASE_SDE' 71 2025-9-4 17:15:45 | Loaded module 'GEODATABASE_SDE' from file 'D:\Program Files\FMEFlow\Server\fme\plugins/..\geodatabase9.dll' 72 2025-9-4 17:15:45 | FME API version of module '..\geodatabase9' matches current internal version (4.0 20240212) 73 2025-9-4 17:15:45 | Performing query against GEODATABASE_SDE dataset `D:/ProgramData/Safe Software/FMEFlow/resources/data/sde' 74 2025-9-4 17:15:45 | Opening the Esri Geodatabase reader 75 2025-9-4 17:15:45 | An ArcGIS license is already checked out. The product checked out is 'ArcServer' 76 2025-9-4 17:15:45 | Installed ArcGIS version is '11.3' 77 2025-9-4 17:15:46 | Connection made to server '\' for dataset 'geodata' (transactional version 'dbo.DEFAULT') using instance 'sde:sqlserver:\' and user ID '' 78 2025-9-4 17:15:46 | ArcSDE release: '10.0'. Underlying database: 'SQL Server' 79 2025-9-4 17:15:46 | R_1 Reader: Using Enhanced geometry 80 2025-9-4 17:15:46 | All network information will be ignored. As a result, edges will be treated as polyline features and junctions will be treated as point features 81 2025-9-4 17:15:46 | All relationship information will be ignored. As a result, simple relationships will not be read, and attributed relationships will be read as tables 82 2025-9-4 17:15:46 | GEODATABASE_SDE reader: Creating bulk features from individual features 83 2025-9-4 17:15:47 | GEODATABASE_SDE reader: Creating bulk features from individual features 84 2025-9-4 17:15:47 | The OGC definition of the FME coordinate system '_LL-WGS84_0' is 'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' 85 2025-9-4 17:15:47 | Reading feature type 'Airspace' 86 2025-9-4 17:15:47 | Reading feature type 'Waypoint' 87 2025-9-4 17:15:47 | Reading feature type 'Aerodrome' 88 2025-9-4 17:15:47 | Reading feature type 'Runway' 89 2025-9-4 17:15:48 | Reading feature type 'RunwayDirection' 90 2025-9-4 17:15:48 | Reading feature type 'Navaid' 91 2025-9-4 17:15:48 | Reading feature type 'AtsRoute' 92 2025-9-4 17:20:00 | Message Type: fme::internal::_v0::py::Exception 93 2025-9-4 17:20:00 | Python Exception <ValueError>: API not configured 94 2025-9-4 17:20:00 | Error encountered while calling method `input' 95 2025-9-4 17:20:00 | ArcGISOnlineConnector_CALLER (PythonFactory): PythonFactory failed to process feature 96 2025-9-4 17:20:00 | Closing the Esri Geodatabase reader 97 2025-9-4 17:20:01 | An error has occurred. Check the logfile above for details 98 2025-9-4 17:20:01 | Translation FAILED with 4 error(s) and 1 warning(s) (0 feature(s) output) 99 2025-9-4 17:20:01 | FME Session Duration: 4 minutes 16.9 seconds. (CPU: 1.8s user, 0.9s system) 100 2025-9-4 17:20:01 | END - ProcessID: 2648, peak process memory usage: 248288 kB, current process memory usage: 233640 kB
The settings for the scripting is to use this Python version:
Are there any more clues in the other logs? Sometimes I’ve seen python error messages skip the FME Workspace but get reported in the fmeprocessmonitorengine.log. There could be more clues in there
I notice now two interesting things.
After running the workspace with my admin account the workspace doesn't immediately stop after the Python error, but continues to process the workspace. No data is written though.
The other interesting thing is the following errors I see in the log fmeconnection.log when running as admin. When I run as a normal user they don't appear.
Wed-01-Oct-2025 10:07:47.856 AM INFORM requesthandler 408906 : Refreshing authorization info for connection Esri ArcGIS Online OAuth. Wed-01-Oct-2025 10:07:47.859 AM INFORM requesthandler 929039 : Updating access token for "Esri ArcGIS Online OAuth" Wed-01-Oct-2025 10:07:47.970 AM WARN requesthandler 929035 : Error response: invalid_request - invalidated refresh_token Wed-01-Oct-2025 10:07:47.970 AM WARN requesthandler 929040 : Unable to update access token for "Esri ArcGIS Online OAuth"
So I'm now going to look into the direction of correct permissions and double check this OAuth connection to be valid and working.