If you want to use the TCL route in Workbench you could use the
FME_BEGIN_TCL directive to test for the file and submit a dummy
dataset if it doesn't exist. See...

http://www.fmepedia.com/index.php/Category:TCL_Pre_Post_Processing_FAQ

If the dataset exists, but you don't need to read it, then what you
can do is use the 'features to read' setting available in 2006-GB. Set
this to 1 to read just a single feature, or use the Sampler with a
similar setting to drop everything. By publishing either parameter
you'll be able to set this easily at run time.

Hope this helps,

Mark

Mark Ireland, Product Support Engineer
Safe Software Inc. Surrey, BC, CANADA
[EMAIL PROTECTED] http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access


--- In [email protected], "peter laulund" <[EMAIL PROTECTED]> wrote:
>
> Hi
> 
> You can use the RecorderFactory to read and write FFS files at any
point in 
> a mappingfile, but you would have to combine it with some tcl
testing wether 
> the file exists or not before including the factory ( or the reader )
> 
> In a mapping file this would be quite simpel to implement, but how
you would 
> do it in a workebench i dont know
> 
> 
> Peter Laulund
> 
> 
> 
> >From: "gunter_nt" <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: [fme] Reading a FFS file inside Workbench
> >Date: Tue, 13 Jun 2006 00:45:39 -0000
> >
> >Hi,
> >I have a workbench file that tries to reads a FFS file (one of
several).
> >This FFS file may or may not be needed in the current workbench script.
> >
> >Is there a way I can choose weather to try to open/ read it or not?
> >or ignore the 'file does not exist' error?
> >
> >If the file is not there when the script runs if falls over with
> >invalid FFS dataset.
> >Currently I have it set up to always read in the file and I create a
> >dummy file if it is not needed.
> >
> >The 'player' and the FME reader both return the invalid dataset error.
> >
> >Thanks
> >Gunter
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >Join us at the FME Worldwide User Conference Sept. 21-22, 2006
Vancouver BC 
> >Canada. For more information, visit www.safe.com/2006uc.
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> 
> _________________________________________________________________
> Opret en personlig blog og del dine billeder på MSN Spaces:  
> http://spaces.msn.com
>







Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC 
Canada. For more information, visit www.safe.com/2006uc.   
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to