Importing data (the Transfer In action) imports a comma-separated values (CSV) or an Excel (XLS) file from the client computer or from a server file. When importing data, you can select to generate logs (Comparison reports) of inserted and updated records. If there are any errors, error logs are always generated.
When transferring data in you would typically:
For certain tables, you can also track the files that are written using the Data Transfer Status field. See The Data Transfer Status Field.
Note: If you use Data Transfer to export your data to CSV format and then work with the CSV file in Excel, you might encounter issues when importing the files back into ARCHIBUS. See Working with CSV Files in Excel.
If you are exporting and importing markup into and out of the project, be aware of the following:
In order to access the markup when you import it back into the project, both the activity_log record and the afm_redline record must be exported. If only the activity log record is exported , when the record is imported back in, the Edit Markup button will not show in the view; the view will show only a button for Create Markup, and this button will not show the markup.
Data Transfer is available from both the Smart Client and from Web Central. For information on the specific views from which data transfer is available, see Views from which data transfer is available.
When transferring data in, you can select a file on your client computer to upload (by selecting Local File), or you can upload the last file output for this table by this user on the server (by selecting Server File). Use local files when it is more convenient to work with files on your local machine without needing to move the file back to the server to import it. Use server files if you are transferring data and do not need to work with the data locally before importing it. For example, if you are transferring building, floor, and room data between two projects that are running on your server, you can log into one project, transfer out the data, sign into the second project, and transfer the data in without downloading the data to your local workstation.
You might use data transfer to transfer data from one project database to another. In these cases, you are importing the file that was exported from ARCHIBUS, so the file has the proper schema information, enumeration values, and date formats. In other cases, you are reading information from a spreadsheet file into ARCHIBUS. In these cases you will need to ensure that the spreadsheet file has the proper schema information and formatting, as described in this section.
Transfer files store data in a form designed to be reliably validated and reread by the program, regardless of the language and locale for the user who exported the data. For this reason, import files must:
For XLS files, the first row provides the table information. The second row contains the schema header information in table.field format, for example, rm.bl_id, rm.fl_id, rm. rm_id.
For CSV files, the first line of the file is a comment holding the schema header information. This is a list of import fields in table.field format, for example, rm.bl_id, rm.fl_id, rm. rm_id.
Alternately, you can use the Data action button to export an XLS or CSV file from ARCHIBUS that has the table and columns of data that you would like to import. See step 1 of How to Read Information from a Spreadsheet File.
The Data Transfer feature requires all date fields, in a file that will be transferred in, to be in the format of 'yyyy-mm-dd'. When you export date data to Excel using ARCHIBUS data transfer, the date is exported using the ISO date standard (yyyy-mm-dd). However, if you make changes to dates or enter new dates in the file using Excel, the dates are saved using your Windows Regional Date setting. If you want to change the dates and re-import them into ARCHIBUS, you can take one of two approaches:
If there is a Data Transfer Status field in the table that will hold the import data, the program updates the value of that field with the status of each record. The Data Transfer Status field provides the final data transfer status for each record for the import. You can filter on this Data Transfer Status field to see the records that were newly added, updated, or missing in the transfer.
In V.19.1-and-later databases, the Rooms table and all of the “afm_” system tables have a Data Transfer Status field.
Note: If you generate Comparison reports without importing data (Compare action from the Data Transfer Wizard) , the Data Transfer Status field is not updated, as this field is only updated when an import is processed.
The following describes the possible values for the Data Transfer Status values:
From Web Central, to help you track changes and fix errors, the Data Transfer feature typically includes Comparison reports that compare the data in the database to the data in the import file by generating insert, update, and error logs. You can generate Comparison reports before importing data; since no other changes are made to the database, these Comparison reports are useful for reviewing changes before you apply them to your data set. See Comparison Reports.
For certain tables, you can also track the files that are written using the Data Transfer Status field. See the section in this topic - Tracking the Status of fields when importing.
You transfer data and generate Comparison reports using the Data Transfer Wizard. See Data Transfer Wizard.
To read information from another spreadsheet file:
The Transfer Progress tab shows the number of records that are processed and the percentage complete for the job. The progress bar indicates when the import has completed. If you have generated Comparison reports, the URL for the reports appear in the lower section of the screen. If there are any errors, an error log is generated.
You can import data by transferring in a file exported from another database or by transferring in a local file.
Note: If you are importing or exporting document fields, see Working with Document Fields Using Data Transfer.
To import data:
The Transfer Progress tab appears. From this tab, you can view the progress of the job, and load the Comparison reports (insert and update logs) when the transfer completes if you selected to generate them. The lower section of the screen provides a link to these logs and to the error log if any errors occurred.
If there is a data transfer status field for the table holding the import, that field is updated for each record. See Data Transfer Status Field.
Note: The database does not have records that failed insertion, for instance because they had a validation error. These records are recorded only in the error log for your information.
When importing, the error log shows the following errors:
| Copyright © 1984-2016, ARCHIBUS, Inc. All rights reserved. |