Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] How to obtain iDM return codes from iSM

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to obtain iDM return codes from iSM
 Login/Join
 
Member
posted
I am pretty new to iSM, so forgive me if this is something simple. I tried looking around for it, and also tried a number of things, but nothing seems to work.

I have an iSM flow. It is calling a iDM process. The process if verifying files before the actual load occurs. If all the files are fine, the return code from iDM should be a 0. If there are verification errors, then 9991 is being returned. To be honest, I don't even know if the way that the iDM process is returning the 9991 is the best way.

We just upgraded to iSM 7.0.0.

The first thing I tried was creating a ETL Return Code on the call to the iDM process. Again, new to this. When creating it, it asked for a value and I entered 9991 and gave a description of Verification Failed. I also entered a 0 and called it Verification Successful. I then created two QA agents. I created a relationship to each. On one, I said OnCustom and selected 0. On the other, I selected OnCustom and selected 9991. The process went through both QA agents. I am not sure why.

So, then I thought maybe I could capture the return code into a variable and use that. I tried various ways, but nothing seemed to help. For my properties on the ETL object, my Document Return Type is Statistics and the Statistics Handler is etlsm. Here is the top portion of my QA agent results that show the statistics output. You can see the 9991 in it.

   <document xddoctype="XML">
      <etl stats_retry="0" error="false" job_id="20140417142553_e1561044" job_name="REQ_NAME=pf_verify_files, STOPAT=0, STARTAT=0, CM_ASYNC=OFF, PARMS="" errors="0">
         <statistics>
            <statistic name="REQ_RC">9991</statistic>
            <statistic name="STAT_ACCEPTS"/>
            <statistic name="STAT_INPUT"/>
            <statistic name="STAT_INVALID"/>
            <statistic name="STAT_DBMSERR"/>
            <statistic name="STAT_FORMAT">0</statistic>
            <statistic name="STAT_DUPLS"/>
            <statistic name="STAT_NOMATCH"/>
            <statistic name="STAT_CHNGD"/>
            <statistic name="STAT_DELTD"/>
         </statistics>
      </etl>
   </document>
  


Any help would be greatly appreciated.

This message has been edited. Last edited by: <Kathryn Henning>,


iDM 7.7.05
WebFOCUS 7.7.05
Windows, All Outputs
 
Posts: 11 | Registered: May 25, 2012Report This Post
Silver Member
posted Hide Post
Based on your QA Agent, it does seem that the agent you had used to call the iDM process returns a valid etl document.

While I am not sure why your custom branches do not take effect, may be the oncompletion is checked on both?, I could still think of the following to get it to working:

Start - iDM Agent [returning ETL status doucment] - Decision Step [use XPATH expression for element statistic with attribute name as REQ_RC to compare it against a constant value REQ_RC] - Branch out your decision step here further accordingly.

Note: You can build the same logic using Switch case instead of a Decision step.

-
Srii
 
Posts: 38 | Registered: April 13, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] How to obtain iDM return codes from iSM

Copyright © 1996-2020 Information Builders