Skip to main content
Question

Esri ArcGIS Feature Portal Service writer results in errors, while running to a local .gdb the script runs fine

  • December 11, 2024
  • 2 replies
  • 31 views

sc1
Contributor
Forum|alt.badge.img+2
  • Contributor

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::py::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? 

2 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • December 12, 2024

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


sc1
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • December 12, 2024

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. 


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