Asset Bulk Import

Asset Bulk Import

BUSINESS ENTERPRISE


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

For example, you may have 100 garden bed assets in the system that require monthly maintenance. The garden beds already exist in a corporate asset management system, including their geographic location.

You can set up the Asset form for these garden bed assets in Gruntify, and then download the asset locations as a GeoJSON file (WGS 84 coordination system https://datatracker.ietf.org/doc/html/rfc7946 ) or a CSV with Well-known text (WKT) representation of the geometry (See https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry). There is no download template like there is for Requests or Jobs.

Bulk Import is only available to users with an Owner role.

Process

Before starting the import, ensure you have:

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

If you saved the Import as a draft, then you will be returned to the Asset Bulk Import menu. From here you can delete the draft if you want to start again, or reload the draft to continue processing.

Finding a previous import

The Asset Bulk Imports screen lists every import you have run, with the most recent at the top. Two controls at the top of the screen let you narrow that list down when you are looking for a particular import.

Search by file name

The search box matches on the file name of the import, which is the name shown in the Name column of the list.

  1. Type any part of the file name into the Search... box at the top left of the screen.

  2. Pause for a moment. The list refreshes on its own and shows only the imports whose file name contains what you typed.

  3. To go back to the full list, select the x at the right-hand end of the search box.

Capitalisation does not matter, and you do not need to start from the beginning of the file name — a few letters from the middle are enough. If nothing matches, the screen shows No results found. Change what you typed and try again.

Filter by status

The status selector sits at the top right of the screen and shows All Statuses until you choose one. Select it, then choose a status to show only the imports in that state:

  • Draft — imports you saved to come back to later.

  • Processing — imports that are queued or still running.

  • Completed — imports that have finished.

  • Errors — imports that did not finish.

Choose All Statuses to go back to showing every import. The search box and the status selector work together, so you can use both at once to narrow the list further.

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-000051 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 a .csv you export from Gruntify — see Exporting Data. 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.

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.

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.

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

Related Articles