Dave,

RecordLoader is rejecting your input XML because it can't find the ID_NAME element that you specified in your configuration.

According to the stack trace, you're setting ID_NAME=XSLT2 - so you've told RecordLoader to expect a unique ID in an element named XSLT2. But that element does not exist in your input XML. For that configuration to work, your XML would have to look something like this:

<head>
<XSLT2>1</XSLT2>
...
</head>

Based on the XML snippet in the stack trace, I don't think that's what you want. Try reviewing the documentation for ID_NAME, at http://developer.marklogic.com/svn/recordloader/trunk/README.html

Within each input document or RECORD_NAME element, the first element
called ID_NAME will be used to compose the new document uri. If ID_NAME
starts with '@', an attribute with this local-name will be used to
compose the new document uri.

Note that namespace is ignored: only the local-name is used. The named
node must have a simple text value: it may not be empty, and it must not
contain any non-text children.

The special value ID_NAME=#AUTO will cause RecordLoader to automatically
generate ids, in sequence, for each input record. Since RecordLoader
automatically includes the base filename in each output URI, this is safe.

Note that when the input is standard input, the default value is #AUTO -
not #FILENAME.

The special value ID_NAME=#FILENAME will cause RecordLoader to
automatically load each input file into a single document per input
file, using the file's basename to compose the new document uri. This is
the default behavior.

Examples: ID_NAME=MedlineID, [EMAIL PROTECTED]

Given the XML snippet that we see in your stack trace, I'd suggest removing ID_NAME entirely (default ID_NAME=#FILENAME).

-- Mike

Dave Pawson wrote:
Starting a new thread, since I'm getting somewhere, the problem is now
connecting to the db.

Current error is
Dec 1, 2008 4:28:03 PM com.marklogic.recordloader.Loader processRecords
WARNING: buffer = <head>
<title>Differences, 1.0 to 2.0</title>
<summary></summary>
  <keywords> faq FAQ XSLT2 changes</keywords>
</head>
Dec 1, 2008 4:28:03 PM com.marklogic.recordloader.Loader processRecords
WARNING: pos =  END_TAG seen ...</keywords>\r\n</head>... @10:8
Dec 1, 2008 4:28:03 PM com.marklogic.recordloader.Loader processRecords
WARNING: text = </head>
Dec 1, 2008 4:28:03 PM com.marklogic.ps.SimpleLogger logException
SEVERE: exception
org.xmlpull.v1.XmlPullParserException: end of record element head with
no id found: ID_NAME=XSLT2
        at 
com.marklogic.recordloader.Producer.processEndElement(Producer.java:316)
        at com.marklogic.recordloader.Producer.processNext(Producer.java:531)
        at com.marklogic.recordloader.Producer.getCurrentId(Producer.java:359)
        at 
com.marklogic.recordloader.Loader.processStartElement(Loader.java:271)
        at com.marklogic.recordloader.Loader.processRecords(Loader.java:152)



"end of record element head with no id found: ID_NAME=XSLT2"  seems to be
the problem.

any translation to simple English please?

what record?
what 'id' value is sought?

~TIA



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to