Redstone Content Solutions
  • About
  • Solutions
  • Product
  • Cloud
  • Business Blog
  • Technical Blog

Batch Loading Content with BatchLoader

7/31/2008

1 Comment

 
This is just a quick introduction to batch loading content into content server with the Batch Loader application. The application can be run from the command line as well as in graphical mode. I normally run it in graphical mode.

I also like to put the check mark in the box to produce an errors file. This file is kind of neat, if anything fails it is placed in that file where you can tweak the metadata and then point batch loader at that file to attempt loading all the content that failed to load. Why might things fail? Perhaps you forgot one of the required fields like dSecurityGroup or perhaps you performed a check-in using a particular metadata value that did not exist in a validated list.

Usually you will need to add a setting to the intradoc.cfg file called Batch Loader User Name. This setting in your configuration might look like this:

BatchLoaderUserName=sysadmin

I am sure you could come up with better values to put in this field besides sysadmin, but for the sake of this demonstration/test this should get you running pretty easily.

NOTE: intradoc.cfg, not config.cfg.

Now you must construct the batch load file. Nothing scary here, just a text file. This file contains key=value pairs one to a line of metadata and values and uses hash/pound characters (#) to begin lines that are comments, like this:

# This is a comment
Action=insert
dDoc
dDocTitle=Product Details
dDocAuthor=sysadmin
dSecurityGroup=Public
primaryFile=<path to file>
dInDate=7/23/2008
dDocName=TestContentID
<<EOD>>

What if you wanted to perform a metadata only check in? Try something like this:

# This is a comment
Action=insert
dDoc
dDocTitle=Product Details
dDocAuthor=sysadmin
dSecurityGroup=Public
#primaryFile=<path to file>
dInDate=7/23/2008
dDocName=TestContentID
createPrimaryMetaFile=true
<<EOD>>
1 Comment
Mardy
11/19/2013 06:37:17 am

Thanks for this post and i have been searching for this information.I think it is easy to batch load contents with the BatchLoader. Please do update such interesting articles often as I am very much interested in like these posts. Please do keep posting.

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    RSS Feed

    Build your career in software development at Redstone Content Solutions as an Oracle WebCenter Consultant

    Categories

    All
    Collaborate
    Content Server
    Database
    Dev Tricks
    Digital Asset Management
    Linux
    Misc
    Oracle OpenWorld
    Oracle OpenWorld
    Oracle UCM
    Oracle UCM
    WebCenter Content
    WebCenter Sites
    WebLogic Server

    Archives

    March 2017
    June 2015
    December 2014
    June 2013
    February 2013
    October 2012
    August 2012
    July 2012
    June 2012
    May 2012
    April 2012
    February 2012
    January 2012
    December 2011
    October 2011
    September 2011
    July 2011
    June 2011
    May 2011
    April 2011
    February 2011
    January 2011
    October 2010
    September 2010
    August 2010
    July 2010
    May 2010
    April 2010
    March 2010
    February 2010
    December 2009
    November 2009
    October 2009
    September 2009
    August 2009
    July 2009
    June 2009
    May 2009
    April 2009
    March 2009
    February 2009
    January 2009
    December 2008
    November 2008
    October 2008
    September 2008
    August 2008
    July 2008

Powered by Create your own unique website with customizable templates.
  • About
  • Solutions
  • Product
  • Cloud
  • Business Blog
  • Technical Blog