Issue with parameterized metadata file

There’s an issue with CloverGUI while using parameterized metadata file.

Indeed in a graph I want to use:

<Metadata fileURL="${metadata}" id="Metadata0"/> /* ${metadata} is a path to a .fmt file */

instead of (for example):

<Metadata fileURL="c:\table.fmt" id="Metadata0"/>

It generates an error in Eclipse :
ENGINE: Error during graph initialization (Can’t parse metadata: Metadata0).

Could you fix this problem in the next release please ?

Thanks a lot.

Hi,
this should work. Which version of GUI and engine are you using? Are you sure that the metadata file is valid? The comment for the metadata parameter ("/* … */) is not in the graph XML file, I suppose? You could post the graph and the metadata file here.

Jaro

The graph file is the same as with the problem of slowdown with CloverETL Engine 2.2 :slight_smile:

-—> http://maxani.homeip.net

I use the last version of CloverGUI : 1.7

Thanks.

post the metadata file too, please. thanks…

I don’t understand. My metadata file is dynamic. I think that it’s just that CloverGUI generates an error while parsing a graph file within the fileURL property of metadata node is not a real path but à property like “${xxxx}”.

Pls, check if you set correctly path name ( “c:\table\customer.fmt” is interpreted as “c: able\customer.fmt”, for “c:\table\customer.fmt” you should have "c:\\table\customer.fmt).

I may add something about this problem :

The problem only appears while opening a graph file in the java or other perspective under Eclipse.

Of course under CloverGUI perspective there are no issue.

Try to make a graph and then edit with a text editor the metadata node as below :

Then you’ll have an error in the problem view of Eclipse :
ENGINE: Error during graph initialization (Can’t parse metadata: Metadata0).

There will be also a “white cross over red background” icon over the graph file in the package view of java perspective.

See you.

Hello,
I can’t recreate this issue. Pls check what is written as reason (on the end of log should be something like that:
Caused by: java.io.IOException: Can’t read metadata definition file: metadata\delimited\employeeDB.fmt (No such file or directory)
at org.jetel.metadata.MetadataFactory.fromFile(MetadataFactory.java:62)
at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiateMetadata(TransformationGraphXMLReaderWriter.java:312)
)

I think that nobody understand me. My issue is not while I execute a process.
It’s just a display issue under Eclipse.

Below is a picture of what I have under Eclipse :

http://maxani.homeip.net/cloverGUI.jpg

When I execute a graph it works great. The ${metadata} can be any path.
I repeat it’s just a display issue under Eclipse in other perspective than Clover.ETL one.

It may help everyboby.

Thanks.