Skip to main content
Solved

Create new field to ArcGIS Portal Feature

  • September 18, 2024
  • 2 replies
  • 104 views

philippeb
Enthusiast
Forum|alt.badge.img+22

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!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

j.botterill
Influencer
Forum|alt.badge.img+53
  • Influencer
  • 386 replies
  • 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+22
  • Author
  • Enthusiast
  • 329 replies
  • 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!