IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
#Supplychain
 View Only
  • 1.  Resource manager failure

    Posted 05/09/07 01:26 PM

    Originally posted by: Staar


    Using the IFD, I created 1 system containing 2 subsystems. Each subsystem contains 1 map. The first system contains a single map that uses the ftp adapter to get a directory listing from an ftp server on the input. In the output rule, it calls another map using the Run function to receive each file in the listing and place them in a Incoming folder, and a second map to delete them off the ftp server if the previous map was successful. If either of the maps fail it returns the step that failed and the lasterrormessage. This system runs perfectly.

    The 2nd system contains a single map and waits for files to appear in the Incoming folder and calls a single validation map. The rule states:
    =VALID(
    IF(RUN("Valid_TPA_Input","-IF1 '" + GETFILENAME(FTP_Data) + "'")="0",
    VALID(PUT("FILE","M:\Transfers\Drafts\files\Valid\" + SUBSTITUTE(GETFILENAME(FTP_Data),GETDIRECTORY(FTP_Data),""), FTP_Data),"Error Archiving File To Valid Directory."),
    VALID(PUT("FILE","M:\Transfers\Drafts\files\Invalid\" + SUBSTITUTE(GETFILENAME(FTP_Data),GETDIRECTORY(FTP_Data),""), FTP_Data),"Error Archiving File To Invalid Directory.")),
    "Error Running Valid_TPA_Input with File: " + GETFILENAME(FTP_Data) + " " + LASTERRORMSG())

    This worked fine until I decided to make a copy of the 1st system and added it a 2nd time. After I made the copy, I updated the source to look at a different directory on the ftp server. These 2 systems function flawlessly. They check the ftp site every 30 seconds and place the files found in the Incoming folder. The Validate map, however, always returns: Error Running Valid_TPA_Input with File: <filelocation> Resource manager failure

    What does 'Resource Manager failure' mean? I tried reverting back to just looking at 1 ftp folder but the same result occurred. When I run the map manually with the exact file it received from the ftp server, it completes successfully. I'm stumped.

    Any ideas?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Resource manager failure

    Posted 05/09/07 04:39 PM

    Originally posted by: LewS


    Hi,

    99.9% of the time, you will get a resource manager failure on a RUN map, only if the RUN map uses a source or target that is the same resource (i.e., file) as the map that it's called from (I call it the "top map". I would confirm this first. You are allowed to have both top map and the RUN map it calls the same resource only if they are both inputs and don't use a GETANDSET. If they use the same resource and one needs to write to it, then this error will occur.

    Please check your sources and targets for both the top map and RUN map that it calls. The easiest way is to turn on an execution summary audit on both maps and compare the sources and targets for both.

    hope this help!
    -lew
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Resource manager failure

    Posted 05/09/07 04:49 PM

    Originally posted by: LewS


    It sounds like your RUN map is using the same resources (i.e., file) as the top map (the map it's called from). If either top map or RUN map needs to write to the file, the RUN map will get the resource manager failure.

    To confirm this, turn on the execution summary audit for both top map and RUN map and when the error occurs, compare the sources and targets. Odds are, you are trying to write to a common resource in either one.

    It will run okay outside of the launcher because the command server doesn't have resource management.

    Hope this helps
    -lew
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Resource manager failure

    Posted 05/16/07 01:26 AM

    Originally posted by: jvanboga


    Shot in the dark - Could be an authorization issue. Is "m:\" a network path? Is it mapped to the user on the machine running IFD? Does the IFD user have autho?

    Consider, if possible reducing the complexity of your rule. It sounds like you may have an issue with punctuation (another shot in the dark without testing) that might resolve your problem...

    VALID(
    IF(RUN("Valid_TPA_Input"," -IF1 '" + GETRESOURCENAME(FTP_Data) + "'")="0",
    VALID(PUT("FILE","M:\Transfers\Drafts\files\Valid\" + WORD(GETRESOURCENAME(FTP_Data), "\", -1), FTP_Data),"Error Archiving File To Valid Directory."),
    VALID(PUT("FILE","M:\Transfers\Drafts\files\Invalid\" + WORD(GETRESOURCENAME(FTP_Data), "\", -1), FTP_Data),"Error Archiving File To Invalid Directory.")),
    "Error Running Valid_TPA_Input with File: " + GETRESOURCENAME(FTP_Data) + " " + LASTERRORMSG())

    You could also break this rule up a little see if that helps.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender