Esri ArcGIS Online (AGOL) Feature Service Writer Parameters
Service Connection
These are the credentials required to log into ArcGIS Online.
Constraints
Feature Service
This parameter specifies the Feature Service for which to write features. Click the Browse button to obtain a list of all Feature Services accessible by the current user. A connection window appears while the system browses all accessible folders and groups for Feature Services. You can select only one Feature Service.
This parameter takes the form of folder or group name/feature service name, and is optionally suffixed with the Feature Service Item ID if the name is ambiguous. Note that a group name can only be used to specify an existing feature service. If you wish to share a new feature service with a group, you can first create it in your own account and then share it to the group with the Esri ArcGIS Online Connector.
Constraints
Item Source
This parameter is used to determine whether the feature service to write to will be specified using a user folder or a group.
-
User Content (default) – Select this option when writing to a user folder.
-
Group – Select this option only when writing to an existing feature service.
Folder
This parameter is used when Item Source is set to User Content and specifies the name of the target folder for the feature service.
The default value of / (forward slash) represents the root user folder. Clicking the Browse button will display a list of a user’s folders.
Group
This parameter is used when Item Source is set to Group and specifies the ID of a group for an existing feature service. Clicking the Browse button will display a list of the groups a user belongs to, as well as all the groups in their organization.
Feature Service
This parameter is used to specify a single feature service. Clicking the Browse button will display a list of all the feature services in the selected group or user folder. If selecting an existing feature service, the Feature Service Item ID will be appended to the name of the feature service.
Assuming the correct user folder is selected, these are all valid ways to specify an existing feature service with name My Feature Service and ID 567aba67c25cb60ee159d3fbe2b16eff:
-
My Feature Service(567aba67c25cb60ee159d3fbe2b16eff)
-
(567aba67c25cb60ee159d3fbe2b16eff)
-
My Feature Service
Tips:
-
To create a new feature service, provide only the name of the new feature service.
-
If you manually enter an ID, you must enclose it within parentheses. Providing a Feature Service Item ID will override the destination specified by the User Folder or Group parameters. The provided ID must match a Feature Service item on ArcGIS Online; otherwise, the writer will fail when the translation is run.
Feature Service Handling
This parameter is only available when Item Source is set to User Content.
- Use Existing – This is the default value.
- Create If Needed – If the specified Feature Service does not exist in the specified folder, the ArcGIS Online Feature Service Writer will create it. Refer to Feature Service Creation for details regarding this procedure.
- Overwrite – If the specified Feature Service exists, it will be overwritten. Otherwise, this is identical to Create If Needed.
Tips:
-
When creating or overwriting a feature service, the feature operation of all the writer’s feature types should be set to Insert. Note that the Feature Type Handling option should not be set to Truncate Existing.
-
If you wish to share a new feature service with a group, you can first create it in your own account and then share it to the group using the Esri ArcGIS Online Connector.
Publishing
Target WKID
This optional parameter specifies the target spatial reference of the published Feature Service. It’s only applicable when the writer creates a Feature Service.
The default value is WKID 102100. This value corresponds to the Web Mercator projection, which is the standard projection used to create XYZ tiled web maps. If not specified, the server default is used (which is typically also WKID 102100).
Advanced
This parameter specifies the maximum number of features that may be present in a single write request to the server. This limit applies to Insert, Update, Delete, Upsert, and truncation. The writer will issue a request to the server whenever a single feature type accumulates the number of output features specified by this parameter.
This parameter is useful for avoiding server timeouts or HTTP 500 responses that may result from long write operations.
If this parameter is not provided, it defaults to 1000. If the operation is set to Upsert, the parameter value used will be either 10000 or the user-provided value, whichever one is larger.
This parameter specifies whether Global IDs are to be used as the primary key for write operations, instead of Object IDs. Enabling this parameter is necessary in order to use the Upsert feature operation. This behavior may be necessary to use some ArcGIS features, such as Feature Service Sync.
When this parameter is set to Yes, it remains possible to insert features without a value for the Global ID attribute.
If this parameter is not provided, it defaults to No.
When Use Global IDs is set to Yes, this parameter determines the behavior during Insert/Upsert operations when a feature without a Global ID value is encountered.
- Yes – An error is raised if the feature does not have a Global ID. This is the default behavior for workspaces created before FME 2020.2.
- No – Auto-generated Global IDs are assigned to features without one.
When Asynchronous Writes is set to Yes, the writer will send write requests without waiting for the status of the previous write request. For translations with many features, this can reduce the time that the workspace spends running. However, when in this mode, the status of write requests made will not be reported until all features have been written.
The value of this parameter is only used when writing to – not overwriting – an existing feature server. If the writer is creating a new feature service/overwriting an existing feature service, then this parameter will not be used.
- Yes – Perform writes in asynchronous mode. The feature service being written to must support asynchronous writes.
- No (default) – The status of each write request is reported before a new write request is filed.
When Asynchronous Writes is set to Yes, this option can be used to set whether the writer will poll for the status of each async write request after all features have been created.
- Yes (default) – The writer polls for statuses up to the timeout period defined. If a single write request failed, the translation will stop. Write requests which are still pending will not be treated as failures.
- No – The status of write requests is not reported. If write requests have failed, these will not be logged and the translation will proceed.
When Report Asynchronous Write Statuses is set to Yes, this parameter determines the maximum number of seconds the writer will poll for the status of write requests.
Default: 300