Skip to main content

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 RouteName field configured, events can be appended using that field.

    • If the Input Event records have null RouteID fields but populated RouteName fields, events can be appended using the RouteName field. RouteID fields are then automatically generated for those appended events.

    • If the Input Event records have both RouteID fields and RouteName fields populated, events will be appended using the RouteID field.

  • The mapping of the FromDate and ToDate fields is optional for the Load Type parameter's Add option. The following scenarios are supported:

    • If the FromDate and ToDate fields 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 FromDate field is mapped and the ToDate field is not mapped, the appended event will have a null value for its end date.

    • If the FromDate field is not mapped but the ToDate field 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 ToDate field, or both the FromDate and ToDate fields, 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 EventID field in the Field Map parameter or ensure that there are null values in the EventID field of the input event. If the EventID field 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 record EventID field 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 .csv file to append events when you use it with an initialization file (schema.ini) that defines the comma-separated fields in the .csv file. The schema initialization file must include the following:

    • The .csv file name and format to initialize

    • A 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 .csv file 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 50
    

    Learn 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.

  • AddThe source event records will be appended to the specified target event.

  • Retire overlapsThe source event records will be appended to the specified target event and any records that have the same measure or temporality overlaps as the appended events will be retired. If the appended event eclipses the specified target event record, the target event record will be deleted. Use this option for line events only.

  • Retire by event IDThe source event records will be appended to the specified target event and any records that have the same event ID and temporality overlaps as the appended events will be retired. If the appended event eclipses a target event record that has the same event ID, the target event record will be deleted.

  • Replace by event IDThe source event records will be appended to the specified target event, and any records that have the same event ID as the appended events will be replaced.

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 Event ID field.

  • CheckedEvent IDs for the source event records being appended will be generated.

  • UncheckedEvent IDs for the source event records being appended will not be generated. This is the default.

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.

  • CheckedThe source event records will be appended to the dominant routes.

  • UncheckedThe source event records will be appended to the routes specified in the input dataset, regardless of route dominance. This is the default.

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.

  • CheckedEvents will be appended even if there are conflict prevention locks.

  • UncheckedEvents will not be appended when there are conflict prevention locks. This is the default.

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

Current Workspace

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)