Difference between revisions of "Database Asset Relationship Import"

From Hornbill
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
This document can now be found at its new location in the [https://docs.hornbill.com/data-imports-guide/asset-relationships/overview Hornbill Document Library].
 +
 +
[[file:hornbill-document-library.png|Data Imports Guide|link=https://docs.hornbill.com/data-imports-guide/asset-relationships/overview]]
 +
 +
<!--
 +
 
= Database Asset Relationship Import - [https://golang.org/ GO] =
 
= Database Asset Relationship Import - [https://golang.org/ GO] =
  
Line 6: Line 12:
  
 
* Download the [https://github.com/hornbill/asset-rel-import/releases/latest ZIP archive] containing the import executable relevant for your architecture
 
* Download the [https://github.com/hornbill/asset-rel-import/releases/latest ZIP archive] containing the import executable relevant for your architecture
* Extract zip into a folder you would like the application to run from e.g. <code>C:\assetrelationshipimport\</code>
+
* Extract zip into a folder you would like the application to run from e.g. <code>C:\Users\YourServiceAccount\HornbillImports</code>
 
* Open <code>conf.json</code> and add in the necessary configration
 
* Open <code>conf.json</code> and add in the necessary configration
 
* Open a Command Line/Terminal as Administrator
 
* Open a Command Line/Terminal as Administrator
* Change Directory to the folder with the executable and config file <code>C:\assetrelationshipimport\</code>
+
* Change Directory to the folder with the executable and config file <code>C:\Users\YourServiceAccount\HornbillImports</code>
 
* Run the command : asset_rel_import.exe
 
* Run the command : asset_rel_import.exe
  
Line 131: Line 137:
 
If you run the application with the argument dryrun=true then no asset relationships will be created or updated, the XML used to create or update will be saved in the log file so you can ensure the data mappings are correct before running the import.
 
If you run the application with the argument dryrun=true then no asset relationships will be created or updated, the XML used to create or update will be saved in the log file so you can ensure the data mappings are correct before running the import.
  
<code>goDBAssetRelationships.exe -dryrun=true</code>
+
<code>asset_rel_import.exe -dryrun=true</code>
  
 
= Scheduling =
 
= Scheduling =
  
 
== Windows ==
 
== Windows ==
You can schedule goDBAssetRelationships.exe to run with any optional command line argument from Windows Task Scheduler:
+
You can schedule asset_rel_import.exe to run with any optional command line argument from Windows Task Scheduler:
* Ensure the user account running the task has rights to goDBAssetRelationships.exe and the containing folder.
+
* Ensure the user account running the task has rights to asset_rel_import.exe and the containing folder.
* Make sure the Start In parameter contains the folder where goDBAssetRelationships.exe resides in otherwise it will not be able to pick up the correct path.
+
* Make sure the Start In parameter contains the folder where asset_rel_import.exe resides in otherwise it will not be able to pick up the correct path.
  
 
= Logging =
 
= Logging =
  
All Logging output is saved in the log directory in the same directory as the executable the file name contains the date and time the import was run <code>assetRelationships20190925140000.log</code>
+
All Logging output is saved in the log directory in the same directory as the executable the file name contains the date and time the import was run <code>asset_rel_log_20190925140000.log</code>
 +
 
 +
-->
 +
[[Category:HDOC]]

Latest revision as of 18:39, 11 April 2024

This document can now be found at its new location in the Hornbill Document Library.

Data Imports Guide