Skip to main content

Hello, we noticed that with multiple scripts that have the feature portal service writer problems occurred: 

 

This is part of the log file when trying to run the workbench script:

  • Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\python\fme-plugins-py311.zip\arcgisonlinefeatures\__init__.pyc'
  • Writer `ARCGISPORTALFEATURES_2' of type `ARCGISPORTALFEATURES' using group definition keyword `ARCGISPORTALFEATURES_2_DEF'
  • Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\python\fme-plugins-py311.zip\arcgisonlinefeatures\__init__.pyc'
  • Message Type: fme::internal::_v0:🇵🇾:Exception
  • Python Exception <ValueError>: invalid literal for int() with base 10: '<Unused>'
  • ARCGISPORTALFEATURES writer: An error has occurred. Check the logfile above for details

 When running the script using a local .gdb as a writer there are no problems and the script runs fine. What could be causing this? 

Hi  Sc1, the AGOL / Portal feature service writer utilises the ArcGIS REST api  with Python and/or JSON requests to post the data via the web. So if your data values are not encoded in UTF-8 / English then that lead to issues in code… escaping/encapsulating etc..

Removing specific characters from a string field can be useful for data management, and in particular ArcGIS Online/Portal

Check the content of the attributes, traits, features, rows, and/or other properties specific to your dataset. The Feature Information window and transformers such as AttributeValidator or a simple Tester for specific value characters such as & or =

I found the custom transformer StringCleaner was somewhat helpful


Thank you, I will definitely check my data like you suggested. Are you aware of any changes to the software with regards to the AGOL/Portal feature service writer? I find it strange that it suddenly stopped working. 


Reply