Gettinf error while creating metadata

Discussion on developing CloverETL engine, transformation components etc.

mishra.hanu@yahoo.co.in
Posts: 65
Joined: Mon Jul 07, 2008 2:04 pm
Location: India

Gettinf error while creating metadata

Postby mishra.hanu@yahoo.co.in » Thu Sep 18, 2008 2:52 pm

Hi Jaro,
When i validate a file it gives error that "File ended is not currect". I came to know that this is the related to metadata which i created for that file..i am making these settings for the metadata

MetadataInput.setFieldDelimiter(",");
MetadataInput.setRecordDelimiters(System.getProperty("line.separator"));


so can any body suggest me that what should i use instead of these
or

this error is for something else..

Thanks,
hanuman Mishra
Hanuman ,
Technical Developer

avackova
Posts: 841
Joined: Fri Jul 20, 2007 9:28 am

Postby avackova » Fri Sep 19, 2008 8:07 am

Hello,
does your file finish with "line.separator"? If not try to set eof as delimiter (setEofAsDelimiter(boolean eofAsDelimiter)) for the last field.
Agata Vackova
Javlin a.s.
agata.vackova@javlin.eu

Jamese46
Posts: 2
Joined: Fri Nov 18, 2011 10:37 am

Re: Gettinf error while creating metadata

Postby Jamese46 » Wed Nov 23, 2011 5:54 am

Thanks for the pointer. I was able to fix the issue without using metdata sequencer and still using the XML Splitter. However, I have tested with using Meta data sequencer instead of XML splitter and the error still persists. The fix was not related to what you use for splitting but to do with the Capture Fields Generator plugin as I describe below.

I will explain the scenario in detail.

My xml data stream has a node that has the id of the document with the following structure.

<records>

<record>
<id>001</id>
<other stuff>
<record>

<record>
<id>002</id>
<other stuff>
<record>

<record>
<id>003</id>
<other stuff>
<record>

</records>

I want to use the contents of the id node to identify the capture document in the database, so that when I go to Prefernces > PP Capture > Manage Documents, I see a list like as follows. (Please let me know if there is another better way to do this).

CaptureDoc_001
CaptureDoc_002
CaptureDoc_003

Here is my workflow that has removed the I/O errors but I have a new issue with printing the capture ready doc on the printer.

1 - Folder capture

2 - XML Splitter - It is set to split when condition node "<record>" is found.

3 - Create metadata - I have selected the appropriate ptk file.

4 - Capture Fields Generator - Here is where I have now selected "Continue Process with PDF (with new metadata)" instead of "Continue process with optimized PS (no metadata)". This is what fixed the errors as mentioned in my previous post. Also here is where in the "Document Title" field I am using the "<id>" field from the data stream through a data selection. This stores the capture documents as required and as mentioned above - CaptureDoc_001, CaptureDoc_002...etc.

5 - Unconditional Branch (go right) - Printer queue output (LPR pointing to the IP of my printer). I have selected passthrough mode. The new problem here is now that it gives PS errors in the printout. I assume it is because the printer is expecting PS and not an already ripped PDF?

6 - After the Branch (go down) - Send to folder and save as .pdf - this works without any problems.

stysm
Posts: 2
Joined: Fri Nov 25, 2011 2:54 pm

Re: Gettinf error while creating metadata

Postby stysm » Fri Nov 25, 2011 3:47 pm

Dear Jamese46,

I am not quite sure what your issue is about. As 'XML Splitter' is certainly not a part of the CloverETL software, I guess you are using an OEM solution, are you not?

Please be more specific and send us an example or the ETL graph you are referring to. Thank you.
Miroslav Stys
Javlin, a.s.
miroslav.stys@javlin.eu