Hi,
Pipeline pilot "Keep Properties" component let us select properties to keep from the data record flow and gives us the ability to rename those on the fly. However, it fails on data records missing one more of the listed properties as seen on the protocol below.
The joined component, written in perl, addresses that issue and will hopefully become obsolete soon :-)
Pierre

Thanks Pierre for bringing this up. However, your component doesn't seem to do anything for me?
To expand a bit on the issue in general with the standard Keep Properties component, the issue comes when you want to rename the properties you are keeping. If you're not renaming, then you don't get an error. It's not obvious to me that this is a desirable behavior, so may just be an oversight where the fault-tolerance wasn't built in properly, and I will enter a bug to make the appropriate change.
In the meantime, you can avoid getting a protocol error by changing the Error Handling for the Keep Properties component. To be able to view and set these, ensure the window is active (from the main menu: View > Component Windows > Error Handling). Set "On General Error" to Send Data out the (Pass|Fail) Port (whichever suits). Then you should get an extra error property for data records that are missing a value. Play around with this to familiarize yourselves how it works -- it's very useful for preventing protocol errors.
Thanks,
Andrew
Hi Andrew,
As you can guess, I know about error handling, the problem is that you get in the fail port all records which are missing one or more property, you then have to banch them back to the main point after removing the error message.
This reminds me a discussion or post with Willem a long time ago regarding the filter component behavior. Is it really the "best" pratice to ask users to script "Molecular_Weight is defined and Molecular_Weight < 500" in a filter component rather than "Molecular_Weight < 500". Although we are now used to this, it still makes filtering on several properties complicated.
Regarding my perl script component, it's not perfect: case sensitive and not keeping the properties order.