By Clay Li on Sunday, 24 January 2016
Category: Feature

Bulk Update by Data Export and Upload

 The integration module allows administrators to perform bulk data initialization or updates.


0. Best Practice for Data Upload
​Data upload may insert or update your data. It is critical that you follow the rules here to avoid updating your data unexpectedly.

Rul​e 1. Upload in Sandbox First
Before updating your production data you should perform the upload in Sandbox first. Here're the detailed flow.

 Rule 2. Data Upload is UPSERT

Data Upload is an operation of upsert, i.e, a row is inserted into a table first. If there is no key violation a new record is created. Otherwise, an existing record is updated.



1. Summary

Calem allows one to upload data in excel files.



2. Data Upload

​In Calem release R10 you can batch update data through data export and import. This is recommended approach to update multiple data rows.

Here are the steps:

3. Null Value

A null value means no value in a database field. One can set a database field to null in Calem by "_null_" (underscore, "null", underscore). 


4. Id Column

Each record in Calem has an "Id" field. The "Id" field uniquely identify a data row. You may include the "Id" field in your export if you need to modify the key fields of a row. For instance, if you have to change item numbering or asset tags, you need to include the "Id" field in the export so Calem knows which row to apply the key field changes such as item number and asset tag.

 5. Data Validation Configuration

By default Calem Enterprise Upload utility will verify lookup values and will fail the upload if a lookup value is invalid. For instance, a location of an asset is not found in Calem when uploading an asset with a reference to that location. Calem will fail the upload.
Alternatively, you may turn off the data validation so that Calem will create missing lookup values. If the creation is successful the upload will go through successfully.
Here is the recommendation about the data validation configuration:


You can manage the data validation by adding the following line in your calem.custom.php:

Customers of CalemEAM can reference "Calem Enterprise Data Upload Guide" at Support Site for more information. 

6. Delete Data

If data is uploaded by mistake, there is no way to roll back the upload. So, it is better to follow Rule 1 above, i.e., uploading in Sandbox first, when all checked out, uploading in Production. The only option is to go to the data forms and delete data from there. For instance, you can multi-select assets to be deleted.

7. Data Links in Excel 

Data links may be introduced in a worksheet when building out a worksheet by copy/paste from other worksheets. The links must be removed for an excel sheet to be used for upload.

8. Hidden Characters

Hidden characters are ones that do not display. For instance, control characters such as number 2 or STX is not visible. 


Here is an example to identify and delete a hidden character.

Additional Resources