IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
  • 1.  File Adapter with -TE option

    Posted Thu October 27, 2011 03:07 AM

    Originally posted by: Haimame


    Hi,
    I am trying to use the File adapter in my map rule as given below.

    PUT("FILE","C:\Projects\FDI-V4.4.1\DSTX\Tmp\bammsg.queue -TE ..\Trace\error.mtr",PACKAGE( Message))

    Here the map fails on the above rule.
    But if i remove "-TE ..\Trace\error.mtr" command line option then the map works perfectly.

    Does it mean that the file adapter will not support -TE option?

    Could any one please confirm?

    Thanks,
    Shiva
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: File Adapter with -TE option

    Posted Thu October 27, 2011 04:06 AM

    Originally posted by: Dhiren.Ghelani


    Confirmed. I dont think the file adapter supports traces.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: File Adapter with -TE option

    Posted Thu October 27, 2011 04:58 AM

    Originally posted by: Haimame


    Thank you for confirming this.

    But any idea how to handle this, in case if there is an error and the trace file to be created?

    Thanks in Advance
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: File Adapter with -TE option

    Posted Thu October 27, 2011 05:24 AM

    Originally posted by: Dhiren.Ghelani


    on FILES, the error code and descriptions should be sufficient enough to tell you what's gone wrong.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 5.  Re: File Adapter with -TE option

    Posted Fri October 28, 2011 02:29 PM

    Originally posted by: repanzer1


    The only adapter command for the File adapter is the path/filename, there is no option for trace (or anything else).

    The only way to handle this issue really is to use the "VALID" and/or "FAIL" functions. If using it with "FAIL", the map will stop and give "30" error code and if you use "LASTERRORMSG", it will show "Adapter not found -99999" in the audit log, then you'll have to manualy figure out why the map can not write out the file. If you just use "VALID", it will put "Adapter not found -99999" in the field where the PUT statement executed.

    There really are only two possible errors for file adapter; the path doesn't exist, or, the user that is logged in (or if the map is running under launcher/event server, the user name WTX runs under) does not have access to that path/the file exists with read only status. I can't recall if there's any other possible reasons.
    -------------------------------------------------------------------------------------------------------------------------------------------------There are 10 types of people in this world. Those who understand binary and those who don't.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender