on 05-31-2006 9:22 PM
I am using Import Server for a Batch input, I have several files and several maps.
Is there to a way to control the import into MDM , first the main table map needs to be executed and then the rest of the maps needs to be executed.
Hi ,
The best bet for you is to use the Import Manager Batch.
To run the Import Manager Batch , you don't neet the Import Server.
Command Syntax.
ImportManagerBatch /INI <configfile> /CLIENTSYSTEM <clientsystem> /MAP <mapname> /LANGUAGE <language>
.
.
.
.
.
You put all the command in the .bat file in what ever order you want and execute the .bat file.
To schedule timely import, use the OS scheduling task feature to schedule the .bat file to execute periodically.
Hope this helps.
Thanks and Regards
Subbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As you might be knowing each port is associated with one map.
As you said you have multiple maps. You need to create multiple ports to execute the imports.
When you have multiple maps and you want to execute them in a particular order using Ports concept. I have not seen an option/configuration in the Import server configuration file to specify the map order.
Even I have the same situation, and I am using Import Manager Batch.
I think even in your case you want to have the control over the map order. To my knowledge I don't think we have an option to control the map order in Import Server.
Thanks and Regards
Subbu
If I created multiple ports for multiple maps, where do I specify them in the .ini file .
As far as I know I see in the .ini there is a map option and a port option where you enter the logical port(2045) and not the port you create for inbound and outbound unlike Import Server.
If its ImportServer it would automatically pull from the Ready folder.
Hi Bob,
What I am saying is when you have multiple maps, which needs to be executed using ports concept. You will not have control over the map order.
I had the same problem like you, that is why I am using the Import Manager Batch.
Hope I answered your question. Let me know if it is not clear.
Thanks and Regards
Subbu
Subbu,
I totally understand what you are trying to explain .
So that means if I use Import Batch then we don't have to create several inbound ports and have maps associated with them at all. Rather mention the maps in the order we require in the batch file which is executed.
Correct me if I am wrong.
Subbu,
I have the client and map name saved for the repository,
I have a batch file created containing
ImportManagerBatch /INI <ini> /CLIENTSYSTEM <Clientcode>
/MAP <MAPname> /LANGUAGE "English[US]"
And in the .ini file specified the TYPE, Filename,Repository,Port and the Server name.
Please advise if I have missed any step , because its not working.
Thanks & Regards
Bob.
Hi Bob,
Just an example for the configuration file.
[Source]
Type=Excel
File name=<Absolute path of the file name>
DSN=
DBMS Server=<DBMS Server Name/IP>
Database=
User=<username who has DBA rights>
Password=<password>
//possible values are: True or False
Read-only=False
[Destination]
Repository=<Repository Name>
Server=<MDM Server Name>
Port=<Port No for the Repository>
User=admin
Password=<Password>
Agency=<Client System Name>
Map=<Map Name>
Language=English [US]
Thanks and Regards
Subbu
Subbu- I have pasted the ini file
[Source]
Type=EXCEL
File name=C:\Material.xls
DSN=
DBMS Server=
Database=
User=
Password=
//possible values are: True or False
Read-only=
[Destination]
Repository=MATERIAL_1
Server=10.12.22.221
Port=2400
User=admin
Password=
Agency=
Map=
Language=
[Batch Import Default Option]
//possible values are: Yes or No
Automap Batch Unmapped Value=Yes
//possible values are: Add or Ignore
Batch Unmapped Value Handling=Add
//possible values are: Yes or No
Always Use Batch Unmapped Value Handling=No
Hi Bob,
Could you please cross check the following parameters.
1. Source file location.
2. Port No.
3. Repository Name.
4. Repository Password.
5. Finally try pinging the MDM Server from the client systems command prompt.
Could you please paste the contents of the log file, which you can find under the Import Manager Batch insttalation directory.
Thanks and Regards
Subbu
Thanks you all,
The commands I have given are pretty much the same you have suggested. There might be some connectivity issue from our side, I can check that.
Nevertheless, If we use ImportServer we donot have to specify the directory from which the data has to be picked up as of the Port Concept.
In ImportBatch how do we tell the ini file to a get all the input files from a directory ?? Because against FileName you just specify the name of the file.
Bob,
In this case, try to create multiple "ini" files and trigger the Import Manager Batch multiple times. Please note that even with Import Manager you can not input more than one file per map(except for the case where file type in Import Manager is "XML Schema").
In the case you mentioned, obviously you need to create multiple maps for each file (except for the case where file type in Import Manager is "XML Schema")and hence multiple "ini" files is the right approach.
Create a batch file with multiple Import Manager Batch triggering commands (one per file & map) if you want to trigger all the Import Manager commands in a sequence.
Regards,
Rajani Kumar
Hi Bob,
Scenario 1:
Let say if you have multiple source files and multiple maps (One to one relation, I mean each map is associated with one source file), then you can have that many .ini files and in the ImportManagerBatch command with option /INI you can specify the config file name and in each config file you will be specifying the source filename path.
Scenario 2:
If you have multiple source files and you are using single map to load the data.
[This scenario can occur, where you get source data from all your source systems in a specific XML format]
You can have one ini file in which
Source type as XML Schema and filename(s) seperated by comma.
[This is what i am guessing, but I have not tried this scenario with multiple source files in ImportManagerBatch.]
Because In ImportManager once you select XML Schema file as source file type, we can select multiple source file and it combines all the source files and populate the source hierarchy in the Import Manager.
I am not sure whether we can do with the other source file types or not ?.
Thanks and Regards
Subbu
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.