Home › Forums › Data Migration › Running Data Migration
- This topic has 6 replies, 3 voices, and was last updated 5 years, 4 months ago by David McAnuff.
-
AuthorPosts
-
-
August 6, 2019 at 6:36 am #11582ngildayParticipant
I have been writing scripts to load data in the NexJ.DM* tables.
I would like to test running the DM process to see if the data from the DM tables moves into the NexJ tables.
What is the best way to run this? In admin console via the Batch Broker?
What is the best way to run it and then check that the data showed up and then undo so it can be run again?
Can I run the data migration for a subset of the tables like perhaps only DMUsers to start?
Thanks
0 -
August 6, 2019 at 9:59 am #11591ddonciuParticipant
There are several ways to trigger the data import. For a detailed description of each, please refer to the Data Migration Operations Manual, specifically the Trigger Process section.
In a nutshell, you can use Admin Console to trigger Data Migration (this is described in the Manual Load section). As you become more familiar with the process, you should also try the other possibilities which support different business needs.
The processName parameter (the name of the runbook to be executed) determines the objects loaded by Data Migration. Out of the box two types of runbooks are created, a Data Migration runbook containing all objects supported in the proper order, and individual runbooks for each object. In your case you can use the runbook named Runbook LoadUser (unfortunatelly an error in the documentation refers to an older name for this runbook, this has already been fixed and will be present in future versions of the documentation).
0 -
August 9, 2019 at 1:04 pm #11665ngildayParticipant
Where can I find out about the other ways to run RunBooks?
On Admin Console, Batch Broker what are the parameters to be put in?
Going through the instruction in the DM guides I am not sure what to put in as parameters.
I chose dm:DMRequst-create
then enter processName and batch Id
But what values do I put in?
processName:Â LoadRunBook Users (?)
batchId: [I am guessing the batchId in the DM tables?]
Thoughts?
0 -
August 9, 2019 at 3:49 pm #11674David McAnuffParticipant
The options for executing a load process/runbook is either manual, which by using the Admin Console or Automated. Examples of automation can be via the DM_START stored procedure. There is an example of using stored procedures in the automated load section of developers guide for starting and monitoring a load to NexJ CRM.
When doing a manual or automated load. The arguments to pass are the name of the runbook and the batchId.
How to use the Admin Console to perform a load is covered in the section of the document “Manual Load”. The name of the arguments required by the “dm:DMRequest-create” are processName and batchId. The values to assign to these two arguments are the name of the runbook for processName and identifier tagged to the records to processed. The is a screenshot in the document how to add the arguments and assigned the values.
The list of runbooks and data associated to each runbook is covered in the specification document and the developers guide.
As an example, let’s say you want to load users into NexJ CRM. Below are the steps you would follow:
- populate the staging table DMUser with the users to be loaded into NexJ CRM. In the staging table there is a column called batchId, that I will set to “101” one all the user records that you want to load into NexJ CRM
- Bring up the NexJ Admin Console and click “Batch Broker” and for Batch Process select “dm:DMRequest-create”
- Select the “+” next to Arguments and add these two arguments “processName” and batchId
- Set the value for “processName” to “Runbook LoadUser”
- Set the value for “batchId” to “101”
- User records that do not have a batchId of “101” will be skipped and not load into NexJ CRM.
- batchId can any thing a client’s wants to use to group a series of records together
- Click “Ok”
0 -
August 10, 2019 at 10:20 am #11683ngildayParticipant
Much thanks. Make sense.
0 -
August 10, 2019 at 2:48 pm #11692
-
August 12, 2019 at 1:41 pm #11732David McAnuffParticipant
I am assuming that you launched the application from NexJ Studio. If my assumption is correct to get the actual error message for reference Id “fso376″, do a search from the NexJ Console for by the reference Id ” that appears in the screenshot. If the application was not launched from NexJ Studio then search for the reference Id in the application log.
0
-
-
AuthorPosts
- You must be logged in to reply to this topic.