Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
colourBlue
titleBusiness
Status
colourPurple
titleEnterprise

...

Bulk Import allows you to import the geographical definitions of your Assets from an existing system, rather than redrawing them all manually in Gruntify.

...

  • Created a suitable Asset Form for your data. The names of the controls in the Asset Form do not need to match the names in CSV or GeoJSON file - you will be able to match up the names as part of the import.

  • An import file in CSV or GeoJSON file format, usually created by another computer system.

...

Steps:

  1. Select whether you want to use the GeoJSON format file or a CSV file.

  2. Choose which Asset type you want to use for the new Assets, by selecting the appropriate Asset form.

  3. Upload the GeoJSON / CSV file.

  4. Map the fields in the GeoJSON / CSV file to the Gruntify fields then click Next to start processing the file.

  5. Preview the results of the Import. If it looks okay, click Finish Import and click Confirm on the dialog to confirm updating the database. If there are issues, you can click Back to change the field mappings, or Save to create a Draft import and return to it later.

Once you click Finish Import and Confirm the import, Gruntify will start importing the Assets into the Gruntify database and you will receive an email with the results when it is done.

...

Widget Connector
width560
urlhttps://player.vimeo.com/video/564506814
height315

Updating Assets (Attributes)

Requests and Job imports will create duplicate records if you reupload the same data. It is impossible to update the data already loaded.

Assets however can be updated. Get the Asset reference field, which is the AS-1AE66457000051 style id from the Asset screen, and include it in the import file.

...

This asset reference also appears in the Confirmation.csv file generated by the import and in the Asset Bulk Export .csv file. Either of these files may be useful to update the matching asset details in other systems, and then they can be included in your new import file when the assets change. Gruntify will match up the Asset IDs and will indicate that you are updating a record rather than adding a new record.

Mapping Fields

The key screen in the import is the Mapping screen.

The first column "Destination Control Header", is a list of the basic Asset fields such as Customer Asset ID, and the labels from the controls in the selected Asset form. The Asset form entries are at the bottom of the list.

The second column “Source File Column Header” is the field or column name in the import file. The “Source File Row Data” is the first three entries from the file, shown beside as a sample of the data.

...

The general mapping rules are:

...

The Asset Status values should be either "Active" or "Disabled". If you do not have a value in your import file for status, leave the entry blank and it will default to "Active".

...

Match each Control Header with a Column Header where the import file contains the appropriate data for that Control.

...

If there isn’t a matching entry in the import file and the header field is not mandatory, then that field will be left blank in a new asset, or not updated in an existing asset.

...

If there isn’t a matching entry in the import file but the header field is required (shown with an asterisk), then any default value given for this field in the form will be be used in a new asset. If updating, leave it unmapped and the field will not be updated.

...

Info

Note: Asset updates via the Bulk Import should only be used if an external system is feeding Gruntify the asset updates. Asset Bulk Edit may be more suitable for other changes. See the Asset Updates page for more on your update choices.

Updating Assets (Geometry)

To update an Asset’s Geometry, you will still need to get the Asset reference field, which is the AS-001122 style id from the Asset screen, and include it in the import file.

Open the GeoJSON file using ArcGIS, QGIS or any spatial data processing software and proceed with editing the feature identified by the Asset ID.

...

Info

Note that when editing a feature, you still need to comply with the spatial data type indicated in the Asset Form. (e.g. If Roads were identified as lines, you cannot edit features to become polygons, the system will recognize this as an error)

Once satisfied, follow Steps 1-3 of the Asset Bulk Import process above and in Step 4, ensure that you Map the Asset ID field from your GeoJSON to the Asset ID field on the Asset form.

...

The Import tab will show the number of Assets Created/Updated/Not changed and then the updated geometry should reflect when reviewing the Asset.

Info

Note however, that if you are only editing one Asset at a time, it may be simpler to follow these instructions under Assets.

Filter by label (Content by label)
showLabelsfalsemax15
showSpacefalse
cqllabel IN in ( "import" , "assets" )