Append Events (Location Referencing Tools)
Summary
Appends event records from a table, layer, or feature class to an existing LRS event feature class.
Note:
When the target layer is a feature service layer, the validation results will be written to a file in the ArcGIS Server directory. By default, this file will be automatically cleaned up after 10 minutes, which may not be enough time to process all of the validations and write them to the workstation that is running ArcGIS Pro. For larger data loads, it is recommended that you adjust the maximum file age to at least one hour. You can edit a server directory in ArcGIS Server Manager to adjust this setting.
Usage
An LRS dataset is required to run this tool.
The Input Event parameter value can be a table, layer, or feature class.
The Target Event parameter value must be a layer or feature class registered with an LRS.
Selection sets and definition queries on the Target Event parameter value will be ignored.
This tool supports point and line features. The feature type in the Input Event and Target Event parameters must match.
When appending new events using the Add option for the Load Type parameter, if the Target Event value has a
RouteNamefield configured, events can be appended using that field.If the Input Event records have null
RouteIDfields but populatedRouteNamefields, events can be appended using theRouteNamefield.RouteIDfields are then automatically generated for those appended events.If the Input Event records have both
RouteIDfields andRouteNamefields populated, events will be appended using theRouteIDfield.
The mapping of the
FromDateandToDatefields is optional for the Load Type parameter's Add option. The following scenarios are supported:If the
FromDateandToDatefields are not mapped, the appended event will have the same start date as the active time slice of the route, and the end date will have a null value.If the
FromDatefield is mapped and theToDatefield is not mapped, the appended event will have a null value for its end date.If the
FromDatefield is not mapped but theToDatefield is mapped, the tool will return an error.For spanning line events, the tool first identifies the most recent time slice across all routes that share the same line ID. Then, the start date of the route's most recent time slice will be assigned as the start date of the appended event, and the end date will have a null value.
Note:
If you don't map the
ToDatefield, or both theFromDateandToDatefields, the field or fields must be removed from the fields list in the Field Map parameter.If the Generate Event ID GUIDs for loaded events parameter is checked, either do not map the
EventIDfield in the Field Map parameter or ensure that there are null values in theEventIDfield of the input event. If theEventIDfield in a source event record is populated and the Generate Event ID GUIDs for loaded events parameter is checked, the value in the source event recordEventIDfield will be loaded into the target event.If the Append events to dominant routes parameter is checked, the records from the Input Event parameter value will be appended to the dominant routes where route concurrencies exist. If multiple concurrencies exist along the route, the Input Event records will be split and appended to the dominant route for each concurrent route section. If route concurrency does not exist, the records from the Input Event parameter value will still be appended to the routes specified in the input dataset.
- The tool will provide a text file of event records that differ from the routes specified in the input dataset and are appended to the dominant routes.
This tool supports conflict prevention and will attempt to acquire and transfer locks.
When conflict prevention is enabled, the following are supported:
The events that need to be appended will automatically acquire event locks if available. If the locks cannot be acquired, the tool will return an error and provide a text file of offending locks.
When the Append events to dominant routes parameter is checked, the event locks are compared with only the target routes, which are the most dominant routes to which the events will be appended. If the locks for the target routes cannot be acquired, the tool will return an error and provide a text file of offending locks.
If the Append even if there are conflict prevention locks parameter is checked, existing locks will be bypassed, and no new locks will be acquired as a result of running this tool.
Caution:
Bypassing conflict prevention locks may result in data corruption or unexpected behavior. Consider the potential consequences and always create a database backup before running this tool with the Append even if there are conflict prevention locks parameter checked.
While working in the default version, the locks acquired will be released automatically upon completion of the tool.
While working in a named version, the locks acquired will remain in On Post status upon completion of the tool. You must post or delete the version to release the locks.
While working in a named version, if the tool process is canceled, the acquired locks will remain in releasable status.
Route calibration on physically gapped routes affects appended events in the following ways:
If the route calibration difference across the gap is not zero, appended events will be split at gaps.
If the route calibration difference across the gap is zero, appended events will be multipart events.
You can use an ASCII-formatted
.csvfile to append events when you use it with an initialization file (schema.ini) that defines the comma-separated fields in the.csvfile. The schema initialization file must include the following:The
.csvfile name and format to initializeA name and data type for each column
A maximum width to use if the data type is Text
The following initialization file example declares the
.csvfile name and format to use, the field name and data type to use for each column (from left to right), and a maximum width for text fields:schema.ini
[source_events.csv] Format=CSVDelimited ColNameHeader=True Col1=FromDate Date Col2=ToDate Date Col3=RouteID Text width 255 Col4=RouteName Text width 255 Col5=FromMeasure Double Col6=ToMeasure Double Col7=RdType Long Col8=EventID Text width 50Learn more about adding an ASCII or text file table
Legacy:
The Generate Shapes parameter is no longer supported.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Event |
The source event records that will be appended. |
Table View |
|
Target Event |
The LRS event layer or feature class to which the source event records will be appended. |
Feature Layer |
|
Field Map |
Controls how the attribute information in the fields of the input event will be transferred to the target event. Because the source event records will be appended to an existing target event that has a predefined schema (field definitions), fields cannot be added or removed from the target event. While you can set merge rules for each output field, the tool ignores those rules. |
Field Mappings |
|
Load Type (Optional) |
Specifies how appended events will be loaded into the target event.
|
String |
|
Generate Event ID GUIDs for loaded events (Optional) |
Specifies whether event IDs will be generated for source event records being appended. Generation of event IDs will only be applied to source event records with a null value in the
|
Boolean |
|
Generate Shapes (Optional) |
Note:This parameter is no longer supported. |
Boolean |
|
Append events to dominant routes (Optional) |
Specifies whether the source event records will be appended to the dominant routes if route concurrency exists. This parameter works with all Load Type options: Add, Retire overlaps, Retire by event ID, and Replace by event ID.
|
Boolean |
|
Append even if there are conflict prevention locks (Optional) |
Specifies whether events will be appended even if there are conflict prevention locks. This parameter is only available when conflict prevention is enabled on the LRS dataset. Caution:Bypassing conflict prevention locks may result in data corruption or unexpected behavior. Consider the potential consequences and create a database backup before running the tool with this parameter checked.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Target Event |
The event layer or feature class to which the source event records are appended. |
Feature Layer |
|
Output Results File |
A text file that details changes made by the tool. |
Text File |
Environments
Licensing information
- Basic: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
- Standard: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
- Advanced: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)