After upgrading FME Server from 2022 to 2023.1 my existing workspaces have started failing due to the following error:
Python Exception <TypeError>: init() takes at most 2 arguments (4 given)
ARCGISPORTALFEATURES writer: An error has occurred. Check the logfile above for details
The same workspace runs correctly locally on FME Desktop (both 2022 and 2023) and I have tested reuploading the WS from FME Desktop 2023 to the Server but without success.
I tried creating an entirely new workspace in FME 2023 that should just write a single object using the Portal Feature Service Writer. It failed with the same error on both Desktop and Server when writing to a referenced feature service but was successful with a hosted feature service.
In summary:
Original workspace (writing to referenced feature service with Portal writer)
FME 2022 | FME 2023 | |
---|---|---|
Desktop | Yes | Yes |
Server | Yes | No |
New workspace in FME 2023 with Portal writer
Referenced feature service | Hosted feature service | |
---|---|---|
Desktop | No | Yes |
Server | No | Yes |
Any ideas as to what this might be caused by? I can see from the logs that the job is using Python 3.11:
Loaded Python module `arcgisonlinefeatures' from file `xxx\python\python311\arcgisonlinefeatures\__init__.pyc'