1 Reply Latest reply on Feb 10, 2012 9:02 AM by rareddy

    How to use the ExceptionIfFileNotFound property for the file translator

    rakeshsagar

      Hi all,

       

      Can anyone provide me with the example on the usage of the ExceptionIfFileNotFound for the file translator.

       

      I searched the docs but could not find the usage example. Also there is no example of file-ds.xml template.

       

      I am using teiid 7.6

       

      Thanks

      Rakesh

        • 1. Re: How to use the ExceptionIfFileNotFound property for the file translator
          rareddy

          when you use the translator property override in the vdb.xml file like

           

              <translator name="file2" type="file" />
                  <property name="ExceptionIfFileNotFound" value="true" />
              </translator> 
          

           

          Then when you use "file2" as the translator in your VDB, if that file translator does not find the file it throws an exception. The default behavior with out it is much like a empty table.

           

          Ramesh..