Problem using the command oraext:query-database() in the xslt file

Hello

I ask a function through the query command - database () in a certain xslt in a BPEL process as below:

< name of xsl: variable = "Company" >

< xsl: value - of select = "string ('CORPORATION')" / >

< / xsl: variable >

< name of xsl: variable = "CustAccIdFrmDB" >

< xsl: value-of select ='orext:query - database (concat ("select xx_egytrans_integration.get_xid(",$getCustAccID,",",$Corporation,") from the dual"), false (), false (), string("jdbc/otmdatasource")) "/ >"

< / xsl: variable >

But, after the deployment of the BPEL process and when running it, I get the error at run time.

Here is the error,

" < bpelFault > < faultType > 0 < / faultType > < subLanguageExecutionFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < a name ="summary"part > < summary > XPath expression cannot run." An error occurs during the processing of the XPath expression; the term is ora: OutputVariable.OutputParameters). the XPath expression cannot run; the reason was: javax.xml.transform.TransformerException: XML-22900: (Fatal Error) an internal error condition has occurred. Check the detailed origin described in the text of the exception message and verify that the XPath query is correct. < Summary / > < / part > < part name = "code" > < code > XPathExecutionError < / code > < / piece > < / subLanguageExecutionFault > < / bpelFault >


Could if it you please let me know the probable reason for the error? Please help as soon as possible.


Thank you

Imane

Hello

The problem is now solved by adding an alias for the columns like below:

Select xx_egytrans_integration.get_xid (21468, 'CORPORATION') result of double;

Now, it could be used in xsl.

Thank you

Imane.

Tags: Fusion Middleware

Similar Questions

  • using the xslt file import

    I have several XSLT stylesheets to generate PDF documents for each modules. These XSLT all use the same models (functions) for data formatting. I love having these models all in a single file to be imported / included in the specific XSLT modules. I can not the right way to import, xsl language are both located in the same folder.

    So far, I have:

    * & lt; xsl: import href = "file:CommonFunctions.xsl" / > * "

    I used the line above with and without the file, the path and everything else I could think of.

    The only way I can get this to work is to appoint the full path like this:

    * & lt; ' xsl: import href="file:D:\projects\toolA\include\templates\CommonFunctions.xsl" / >. *

    but this is not portable to other servers.

    Can someone clarify which way I have to use?

    Generally speaking, relative paths for web applications are specified against the of the web application that you use if you can try that.

  • Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

    Hello!
    I m facing a problem with the help of oraext: query-database.

    In my transformation im try the following (Simplified):
    <xsl:template match="*">
      <xsl:variable sqlQuery="select ....."/>
      <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    {code}
    
    This always results in +some+ +other+ +val+ !!
    I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.
    
    {code}
    <xsl:template match="*">
      <xsl:variable sqlQuery=select ....."/>
      <xsl:variable name="storeSec">
        <ROWSET>
         <ROW num="1">
           <STORE_PART_SECTION>A100</STORE_PART_SECTION>
         </ROW>
         <ROW num="2">
           <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
         </ROW>
        </ROWSET>
      </xsl:variable>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    How to get the correct value when you use oraext:query - database?

    How should you exit? Several item ID with each having a value of the result set?
    If Yes, then you can try following:

     
                        
                            
                        
                             
                                  
                             
                        
                            
    
  • Is it possible to use the AND condition in oraext:query-database()

    Hello world.

    I think the answer to my question is no because it seems straight forward if it was possible, but I failed to do so.

    I tried:

    oraext:query - database (concat ('select create_ts the menu where order_num = ', substring($ticket,10,15)', and where table_num =', substring ($ticket, 20, 5)), false (), false (),'jdbc:oracle:thin:sysdba / oracle1 @localhost: 21/SOAINFRA ')

    Anyone confirm that with the help of State cannot be used oraext:query-database()?

    Thank you.

    I just saw my error. I have two WHERE clauses.

  • problems using the snap have amd, playback of Jpeg files

    Original title: I'm having problems using the component feature snap-in.

    Sometimes a single document disappears. When this happens while the document program is managed by then will not work. The document seems to be flying around the office. The last time this happened I had a doc JPEG upward and now I can't see what is JPEG. I don't know why the document wants to fly around, and I don't know how to get my use of the JPEG back.

    Hey Graham,.

    To view all jpeg images in the Viewer Windows photo or any other photo software visualization, you must configure this software as a default value in the default programs.

    Check out the link that allows you to configure the program as default.

    http://Windows.Microsoft.com/en-in/Windows7/change-which-programs-Windows-uses-by-default

    You can try to run the Aero Troubleshooter and see if that makes a difference.

    http://Windows.Microsoft.com/en-in/Windows7/open-the-Aero-Troubleshooter

    If the problem persists, provide us newspapers observer of events, as well as the error message if you receive a message.

    http://Windows.Microsoft.com/en-in/Windows7/open-Event-Viewer

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • recover the database unitl cancel using the control file

    I refreshed with db1 db2, copied all the newspapers dbfile and archive to the db2 server and setup/adjusted spfile, controlfile etc on the new db2 server and has
    recover the database unitl cancel using the control file.
    ALTER database open resetlogs.

    Now the customer want to refresh it after 2 days, I wonder of I need only archive newspapers or both? to do the same again?

    Published by: DBA2008 on November 11, 2009 09:49

    Yes, you can 'restore to cancel' several times.

  • How to upgrade a driver automatically in Windows NT by using the batch file

    I use the devcon tool to update a Windows XP driver, but unfortunately it does not support Windows NT. So I'm looking for a similar tool for Windows NT. Does anyone know any tool / or script that would update a driver via file/command line in Windows NT?

    Thank you for taking the time to read the question.

    Hello supportalcon,

    Thank you for the question!

    It is disheartening to know that have problems you with the Windows Driver. As I understand it, you need to update a driver automatically in Windows NT by using the batch file.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums. You can follow the link to your question:

    http://social.msdn.Microsoft.com/forums/en-us/categories/

    Meet us if you face any problem of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • problem with the Finder - files and folders displaying incorrectly

    After acquiring a new iMac, I noticed a problem with the Finder - files and folders are displayed wrong (see table).

    This is what happens always after the files have been transferred from one folder to another. I was reminded of my days of using Mac OS in the 1980s when automatic setting of files was not so "automatic." I use Mac OS for decades and I don't remember the last time I had to think about GUI problems like that.

    Other problems in the graphical display of files and folders were introduced, such as when you have hundreds of files in a single folder, you end up deleting about 30 to 40 of them say in a particular section, and you end up with gaps of the ChartSpace where files used to be, that is the remaining files automatically rearrange themselves (fill in these gaps) - never. A week later, you open the folder, and the gap of GUI is still there.

    I decided to do a clean install of the operating system but nothing works.

    Is there some setting in Prefs I'm missing?

    Hi there highland99,

    Looks like your folder icons are not accommodating themselves automatically you plan to do. To me, this indicates that you have organize by the None value in the view menu. You can change the way files and folders are prepared automatically by clicking on view > reorganize by and selecting how you would like that fixed.

    Thank you for using communities of Apple Support.

  • Problem with the executable files

    Hello all, I need a help from you...

    I use LV 2009 SP1 Professional Development Suite on Windows Seven and I have a problem with the executable files, a problem that I have ever found with other versions of LV (8.x, for example) and I'm a little surprised...

    In the attachment you will find an example of what I mean.

    There are two base screws, the main one (prova) and a Subvi (provasubvi). The main vi launches the Subvi and the Subvi simply create a chart. As you can see on the screws works fine, without any kind of problem.

    I also created the exe file, without specifying that no particular option... and 'magic' of the application does not work as I want. In particular, it seems that the Subvi is running, but the front panel will not be accessible.

    I also try to play with the Subvi construction structure and options, but nothing change.

    Did you ever solve something like that?... I would say that I thank you in advance for any suggestion...

    Andrea

    Hello andrea,.

    Looking at your project I've heard that you do not include the Subvi during the build of the project. SO I slightly modified. Please find the attachments.

    Thank you and best regards,

    srikrishnaNF

  • Cannot read the CD after you have used the active file system

    I use the active file system in Vista to save my work on CD - R. I have often refer to these discs, and occasionally add other files. Once the disk is full, I start a new.

    After referencing files on a disc, I pushed the button as usual. The disc was not immediately ejected. A window on the toolbar open and told me to wait and finally ejected the disc.  When I tried to use the disc again, I could not access the data. I know that the data is still on the disk. In 'Computer' I see '327 MB 702 MB free space'.

    If I click on the drive or try to open it, I get a message "no answer." Finally, I get a window that says to "drag files to the disc to add data. Vista think it as a blank disc.

    Is it possible to access data on the disk, so I can save up to a new drive? Also, what hurts which has caused this problem? I don't want to do it again.

    Thank you!
    Bob

    Hello

    Check the drive in another computer, better check in several. CD and DVD door, especially
    RW. If the question with a single disc? There are companies that may be able to recover the
    data if it is quite expensive.

    Very good idea to have redundant backups.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • problem in the zip file and tutorial. can someone remove or correct...

    Hi experts jdev,.

    use jdev11.1.1.5.0.

    When I am new on this webservice. I followed this tutorial
    http://docs.Oracle.com/CD/E18941_01/tutorials/jdtut_11r2_14/jdtut_11r2_14.html

    wsdl URL link when using that wsdl.

    throws an error.
    What is the reason, said john. OK at the second post of the thread.
    Consume a Web Service from a Web Page

    so if I change the wsdl means somethings should be changed in steps tutorial.

    If any newbie crossing this tutorials feels very difficult to work. so I can change the wsdl url link and these steps.

    and another thing, as I installed 11.1.2.0 and download zip file in this tutorial and I run up the same error.

    so. problem in the zip file and tutorial. any person may file or correct...

    I think it's the right place to say this. Otherwise, re - direct me.

    It's yours if you want to close. I ping the folks at Oracle.

  • Models of DW: 'this document uses the following files not in this site.

    I recently started using DW templates in CS6. It was a bit frustrating at first, but seems well wouth it. I've created quite a few pages in the folder root of hares and have no problems there. However, I created a new folder to a different section of my site (mysite.com/new_folder/new_page.htm), and then went to save a new page of the model and got the message "this document uses the following files not in this site. Its the same site, just a new folder which is placed at the root.  When I save the page in the new folder there to make a copy of duplicant images, css scripts and place them in the new folder to work? Must be a way to do it and have DW know where to find the original files surely?

    Thank you

    I downloaded a test page... It turns out that the 'message' was just misleading and all the Info page has correct links. Everything is good

  • Build dimension using the rules file

    I use Oracle Hyperion worm 9.3.1. So that the dimensions of formatting built using the rule file, I came across the 'JOIN' and 'Create Join using' options. Can someone help me to know the difference between these two options?

    Published by: 873675 on July 20, 2011 12:25 AM

    The documentation explains the difference with examples, now I was going to post the link, but I might as well post the info from the link.

    Join the fields

    You can join several fields into one. The new field is given the name of the first field in the join. For example, if a data source has separate fields for the number of product (100) and the family of products (-10), you must join the fields (100-10) before loading in the Sample.Basic database.

    Create a field by joining fields

    You can reach the fields by placing fields joined in a new field. This procedure leaves intact original fields. Creating a field is useful if you need concatenate the fields of the data source to create a member.

    For example, if a data source has separate fields for the number of product (100) and the family of products (-10), you must join the fields (100-10) before loading in the Sample.Basic database. If, however, you want to keep the two existing fields in the data source, you can create a field (100-10) using a join. The data source includes now all three fields (100, - 10 and 100-10).

    To read other rule options - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/ddlfield.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Problems with the audit files!

    Hi friends,

    We are facing a problem with the audit files we have a runnning on oracle 10g server and being an Institute of teaching many ppl to connect to the server and too much work with SQL and PL/SQL. We have disabled the option to audit the database, but the audit files grow enormous in size. May I know what can be the problem and how to fix that there could be something that we would have missed.

    Kind regards
    Maury

    There is no setting of "verification". Display the values of

    AUDIT_FILE_DEST, AUDIT_SYS_OPERATIONS, AUDIT_TRAIL.

    I don't know 'NULL' as the value for each of these parameters.

    Werner

Maybe you are looking for

  • HUGE default page view

    Just installed Firefox for Windows8. The default page view is, I guess, 140%. In fact, I have to zoom out to get to a normal size. Is there any sort of SETTINGS that will allow me to set a smaller default view for web pages?

  • Fan on my satellite pro L10

    Toshiba prefer computer notebook laptop, not surprising because the laptop gets hot enough and makes portable use bad uncomfortable. The user can select silencers or performance (bios settings). After that 10 minutes of use, the fan comes a purges th

  • Search can't compare with the number to decimal

    Hi all you have a problem with 'Find '. I want to create an application that works average as mobile. So I take the Arith. Average of 30 blocks zaeler1 = zaeler1 + 1 zaeler2 = zaeler2 + 1 statsel (6) = 'Yes '. Call StatBlockCalc ("Block", zaeler1 & "

  • No access to the internet banking

    Whenever I installed upgrading windows explorer 8 I can't access internet banking.  So I uninstall the update and I get the internet banking.  Why this happens and what matter if I do not install this update.

  • I gave KB2685828, KB2604092 & KB2656369 who have already installed on my computer.

    Original title: update duplicate KB2685828, KB2604092 & KB2656369 Why am I asked to update KB2685828, KB2604092 & KB2656369, when, according to my history of update, they have already been updated three times?