Skip to main content
Solved

Create new field to ArcGIS Portal Feature

  • September 18, 2024
  • 2 replies
  • 73 views

philippeb
Enthusiast
Forum|alt.badge.img+18

Hello,

Is it possible to write new fields in ArcGIS Portal Feature Service with a writer ?

I’m getting that message : 

ArcGIS Portal Feature Service Writer: Attribute 'NAME' on feature type 'Roads' does not match any field on the corresponding layer/table. The attribute will be ignored
 

I can’t believe I have to create those fields with ArcGIS Pro, publish the layer and than run my workbench.

 

Update:

OK I just found out that I need my fields to be in lowercase to make it work.

But for some reasons some field type are not working.

Is there any existing list of all the constraints we need to follow for the fields in Portal? That would save me time!

 

Thanks!

Best answer by philippeb

In the end it looks like the problem was the shape_length field that I have to remove before pushing my data to the writer. Portal creates automatically that field. Would be cool to write that down in the Portal Writer’s doc!

View original
Did this help you find an answer to your question?

2 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • September 19, 2024

It seems the Portal feature service writer, https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/arcgisportalfeatures/feature-types-w.htm# only had Truncate existing. If it offered table operation = Drop and Create this would allow you to set a new attribute.

 

Otherwise go to Portal web and add a new field. Then edit the writer with the new field. Run with “Use Existing” as table operation.

 

Lastly start exploring the potential of the ArcGISOnlineConnector with the Publish action.


philippeb
Enthusiast
Forum|alt.badge.img+18
  • Author
  • Enthusiast
  • Best Answer
  • September 19, 2024

In the end it looks like the problem was the shape_length field that I have to remove before pushing my data to the writer. Portal creates automatically that field. Would be cool to write that down in the Portal Writer’s doc!


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