1. When creating a new ESRI Portal Feature Service, ensure all output attributes can accommodate the maximum Width of strings it is supposed to populate. In general, a value of 200 is sufficient. However, very often attributes such as Title, Description, Remark etc. might have longer strings which requires width between 200-2048. Adjust it as desired.
2. Create a unique ID (uid) for each record using CRC Generator. Set the width to 2048.
3. All Date related fields must go through DateTimeCoverter or generated using DateTimeStamper to ensure compatibility.
4. Ensure all geometries all validated for integrity using the GeometryValidator with Basic Integrity.
5. Prior to output, filter geometry type, polygon, line and point and connect to the appropriate output port to avoid getting invalid features type.
Notes:
In create, you can only use Insert mode. The update can be insert, update or delete.
In create, if you don't delete the original Feature Service, the output accumulates. (1 liked)
There will be a lots of limitations for the writer updating operations in the FMW, here are some examples and solutions:
Problem 1
Can’t change java date string to ArcGis date field
Solution
Add transformer DateTimeConverter to change the date
@DateTimeFormat(@DateTimeNow(), %Y-%m-%d)
Problem 1
Problem 2
ArcGIS Portal Feature Service Writer: Encountered an unexpected error. The error code from the server was '500' and the message was: 'JSONObject["globalId"] not found.'. Details: ''
Solution 2
when creating writer of the feature layer, please use the Global id
Problem 3
Add CRCCalculator transformer if the source data has no real unique id
Solution 3