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    [SOLVED] How to run Stored Procedure in pFlow

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to run Stored Procedure in pFlow
 Login/Join
 
Member
posted
I am fairly new to iWay integration tools and I have been having difficulties with a few things. I am currently trying to understand how to run Stored Procedures inside a pFlow. Which execution object should be used for this? And how would I use a Transform to input data into the Stored Procedure? Any help would be awesome. Thanks in advanced!

This message has been edited. Last edited by: Tamra,


iWay 7.0.0, Linux
 
Posts: 6 | Registered: September 05, 2014Report This Post
Silver Member
posted Hide Post
1) Create an adapter Target for connection to the database and import it into your iIT Project;
2) Locate the SP in question and generate request & response schemas out of it and import them as well into your iIT Project;
3) Create a pFlow in your iIT Project and use the imported resources. Build your input payload based on the request schema and put it right in front of Adapetr object inside your pFlow;
4) Test the efforts;
 
Posts: 38 | Registered: April 13, 2012Report This Post
Member
posted Hide Post
Thank you so much for the response. I was pretty sure I needed to use the adapter I just wasn't sure how it was supposed to be used.


iWay 7.0.0, Linux
 
Posts: 6 | Registered: September 05, 2014Report This Post
Member
posted Hide Post
So I just tried this solution and I am getting this error back.

cause: com.ibi.rdbms.exceptions.RDBMSException: Invalid lookup:
Adapter is running in a transaction; propagating the exception higher up
Detected problem in execute of agent 'EBS_PLMB' on execute: getMessage(): Invalid lookup:
int getError(): Server
getAdapterCode(): null
getVendorThrowable(): com.ibi.rdbms.exceptions.RDBMSException: Invalid lookup:

What causes this error to happen?


iWay 7.0.0, Linux
 
Posts: 6 | Registered: September 05, 2014Report This Post
Silver Member
posted Hide Post
If the input XML, that is passed to adapter obejct in your pFlow, doesnt contain the location attribute, it will fail with this error. The location attribute will be present in the schema generated out of the target. If you use external tools like Altova XML Spy to generate a sampel XML file from the schema, make sure to check "Generate non-mandatory Attributes" or something along those words and use that XML or simply add attribute to the XML root and retest.

-
Srii

This message has been edited. Last edited by: Srii,
 
Posts: 38 | Registered: April 13, 2012Report This Post
Member
posted Hide Post
So the Schemas that I am using were generated from a target inside iWay explorer. However I still get this error. Do I need to make special changes to the Schema once I have generated it? I am currently using Transforms to create the XML's from the Schema's that I have created.


iWay 7.0.0, Linux
 
Posts: 6 | Registered: September 05, 2014Report This Post
Silver Member
posted Hide Post
Open the schema, look for an attribute called 'location' and pick up its default value. Come back to your sample xml input file, verify that the root tag is indeed Adapter and add the attribute tag 'location' with its value set to what was taken out of the 'default' value from the schema. Run your test again.

-
Srii
 
Posts: 38 | Registered: April 13, 2012Report This Post
Member
posted Hide Post
That worked! Thank you so much for you help.


iWay 7.0.0, Linux
 
Posts: 6 | Registered: September 05, 2014Report 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    [SOLVED] How to run Stored Procedure in pFlow

Copyright © 1996-2020 Information Builders