Update Features With Incident Records (Crime Analysis and Safety Tools)
Summary
Updates an existing table or converts a nonspatial table to point features based on x,y-coordinates or street addresses and updates an existing dataset with the new or updated record information from the table.
Usage
A point feature class, point feature layer, or table must exist where records from the input table will be appended or updated.
You can use tabular data exported from a computer-aided dispatch system or records management system in this tool.
This tool supports the following table formats as input:
Geodatabase
dBASE (
.dbf)Microsoft Excel worksheets (
.xlsand.xlsx)-
Comma-delimited files (
.csv,.txt, and.asc)Tab-delimited files (
.tsvand.tab)Pipe-delimited files (
.psv)
For delimited files, the first row of the input file is used as the field names on the output table. Field names cannot contain spaces or special characters (such as $ or *), and an error will occur if the first row of the input file contains spaces or special characters.
Performing geocoding operations using the ArcGIS World Geocoding Service requires an ArcGIS Online organizational account and consumes credits. The organizational account must have enough credits to complete the entire geocoding request.
When the optional Invalid Records Table parameter value is created, the table contains records that were not processed as new or updated features. The complete input table record will be added to the Invalid Records Table parameter value as well as an
INV_REASONfield. TheINV_REASONfield will include a code identifying the reason the record could not be processed as new or updated features.The
INV_REASONfield is added to the Invalid Records Table value with the following error codes:NULL_ADDR—All address fields in the input table record contain null values.NULL_ID—The input ID fields of the input table record contain null values.NULL_XY—The input table's x- and y-coordinate fields contain a null value.BAD_DATE—The input date of the input table record is null or could not be converted to a valid date.BAD_ADDR—The address candidate from the input table record is unmatched.BAD_FM—The field mapping of the input table record was unsuccessful because a value could not be written to the output field. For example, text values cannot be added to numeric fields, and text values cannot be added to text fields when the values are longer than the field length. When this code occurs, theINV_FLDfield is added to the Invalid Records Table value and lists the fields from the Input Table value that contain values that could not be written to the Target Features value.DUP_ID—The input table record has a duplicate ID and has not been updated to the target features because it is older than the existing record or a newer record exists. This is determined by the last modified date. If the last modified date is not used, it is determined by the highestOBJECTIDvalue.APD_ERR—The input table record could not be appended to the target layer due to an unexpected error while processing.UPD_ERR—The input table record could not be used to update the corresponding target record in a feature service due to an unexpected error during processing. When this code occurs, theINV_FLDfield is added to the Invalid Records Table value and lists the feature service error code and the error description encountered while processing.
Tip:
A common reason the
UPD_ERRorAPD_ERRerror code is identified is the existence of HTML content stored in the fields input table. This causes an error because the default configuration of feature services prevents the appending of HTML values into a field.When no Invalid Records Table parameter value is provided, an
invalid_records_<timestamp>.fidfile is created in your scratch workspace environment. This file will contain theOBJECTIDvalue of each Input Table record that could not be added or updated in the Target Features parameter.When both the Update Existing Target Features and Update Geometry for Existing Features parameters are checked, location fields in the Input Table parameter value are compared to the location fields in the Target Features parameter value to determine whether the geometry will be updated in the Target Feature parameter value. When Location Type is set to Addresses, the Address Fields values are compared. If a difference is detected between the Input Table record and the Target Features parameter values, the Target Features geometry is updated with the geocoded position based on the address fields in the Input Table record. The Input Table record will not be geocoded if no difference is detected.
When the layer specified in the Target Features parameter value is a feature service layer, use the Convert Dates To UTC Time Zone parameter to specify whether date values from the Input Table will be converted to coordinated universal time (UTC). Date values are assumed to be in the same time zone as the local system.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Table |
The nonspatial table or table containing the x- and y-coordinates or addresses that define the locations of the records. |
Table View |
|
Target Features |
The point feature class, point feature layer, or table that will be updated. |
Feature Layer; Table View |
|
Location Type (Optional) |
Specifies whether features will be created using x,y-coordinates or addresses. This parameter is only active when the Target Features parameter value is a feature class or layer.
|
String |
|
X Field (Optional) |
The field in the input table that contains the x-coordinates (or longitude). This parameter is only active when the Location Type parameter is set to Coordinates and the Target Features parameter value is a feature class or layer. |
Field |
|
Y Field (Optional) |
The field in the input table that contains the y-coordinates (or latitude). This parameter is only active when the Location Type parameter is set to Coordinates and the Target Features parameter value is a feature class or layer. |
Field |
|
Coordinate System (Optional) |
The coordinate system of the x- and y-coordinates. This parameter is only active when the Location Type parameter is set to Coordinates and the Target Features parameter value is a feature class or layer. |
Coordinate System |
|
Address Locator (Optional) |
The address locator that will be used to geocode the table of addresses. When this parameter is set to use ArcGIS World Geocoding Service, this operation may consume credits. Note:When using a local address locator, adding the This parameter is only active when the Location Type parameter is set to Addresses and the Target Features parameter value is a feature class or layer. |
Address Locator |
|
Address Type (Optional) |
Specifies how address fields used by the address locator will be mapped to fields in the input table of addresses. Specify Single Field if the complete address is stored in one field in the input table, for example, 303 Peachtree St NE, Atlanta, GA 30308. Specify Multiple Fields if the input addresses are divided into multiple fields such as Address, City, State, and ZIP for a general United States address. This parameter is only active when the Location Type parameter is set to Addresses and the Target Features parameter value is a feature class or layer.
|
String |
|
Address Fields (Optional) |
The input table fields that correspond to the locator address fields of the address locator. Some locators support multiple input address fields, such as If you do not map an optional input address field used by the address locator to a field in the input table of addresses, leave the field name blank to indicate that there is no mapping. This parameter is only active when the Location Type parameter is set to Addresses. Value table columns:
|
Value Table |
|
Invalid Records Table (Optional) |
The output table containing a list of invalid records and associated invalidation codes. |
Table |
|
Expression (Optional) |
The SQL expression that will be used to select a subset of the input datasets' records. If multiple input datasets are specified, they will all be evaluated using the expression. If no records match the expression for an input dataset, no records from that dataset will be appended to the target. For more information about SQL syntax, see SQL reference for query expressions used in ArcGIS. |
SQL Expression |
|
Update Existing Target Features (Optional) |
Specifies whether existing records will be updated in the Target Features parameter value.
|
Boolean |
|
Match Fields (Optional) |
The ID field or fields that will be used to determine matches between the Input Table values and the Target Features values. This parameter is only active when the Update Existing Target Features parameter is checked. Value table columns:
|
Value Table |
|
Input Table Last Modified Date Field (Optional) |
The field containing the last modified date of the Input Features records. Date and string field types are supported. This parameter is only active when the Update Existing Target Features parameter is checked. |
Field |
|
Target Features Last Modified Date Field (Optional) |
The field containing the last modified date of the Target Features records. This field must be a date field type. This parameter is only active when the Update Existing Target Features parameter is checked. |
Field |
|
Update Only Matching Features (Optional) |
Specifies whether only existing records will be updated or existing records will be updated and new records will be added. This parameter is only enabled when the Update Existing Target Features parameter is checked.
|
Boolean |
|
Update Geometry for Existing Features (Optional) |
Specifies whether the geometry of existing features will be updated. This parameter is only enabled when the Update Existing Target Features parameter is checked and the Target Features parameter value is a feature class or layer.
|
Boolean |
|
Field Matching Type (Optional) |
Specifies whether the fields of the input table must match the fields of the target features for data to be appended.
|
String |
|
Field Map (Optional) |
Controls how the attribute fields from the input table will be transferred or mapped to the target features. This parameter is only active if the Field Matching Type parameter is set to Use the field map to reconcile field differences. Because the input table values are appended to an existing target feature that has predefined fields, you cannot add, remove, or change the type of the fields in the field map. You can, however, set merge rules for each output field. The field map can also be used to combine values from two or more input fields into a single output field. |
Field Mappings |
|
Time Format |
The format of the input field containing the time values. The type can be short, long, float, double, text, or date. You can either choose a standard time format from the drop-down list or provide a custom format. Note:The format strings are case sensitive.
Learn more about custom dates and time formats This parameter is only active when the Input Table Last Modified Date parameter value is a text field and the Target Features Last Modified Date Field parameter value is a date field, or the Field Map parameter input value is a text field and the output value is a date field. |
String |
|
Convert Dates To UTC Time Zone (Optional) |
Specifies whether the date values of the input records will be converted from the time zone of the local system to UTC. This parameter is only active when the Target Features parameter value is a feature service layer.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Target Features |
The updated target dataset. |
Feature Layer; Table View |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes