XMLType extract method does not work if namespace attribute values are included

In the example below, only the second row returns an ID from the extract function. The presence of an xmlns attribute appears to be the cause.
SQL> drop table configs;
Table dropped.
Elapsed: 00:00:03.06
SQL>
SQL> create table configs (xml_data sys.xmltype);
Table created.
Elapsed: 00:00:00.02
SQL>
SQL> create index configs on configs (xml_data) indextype is ctxsys.context;
Index created.
Elapsed: 00:00:02.01
SQL>
SQL> insert into configs values(sys.xmltype.createxml('<config
2 xmlns="http://www.ourcompanykscl.com/configuration">
3 <dataformat
4 name="F1" description="format spec" id="14082" version="2"
5      status="started" deployed="true" lastModifiedBy="bloggsj" lastModifiedDate="2002-05-10T09:44:45">
6 <F11Format>
7 <SpecificationFilename>c:/formats/F1.txt</SpecificationFilename>
8 </F11Format>
9 </dataformat></config>'
10 ))
11 /
1 row created.
Elapsed: 00:00:01.02
SQL>
SQL> insert into configs values(sys.xmltype.createxml('<config>
2 <dataformat
3 name="F1" description="format spec" id="14082" version="2"
4      status="started" deployed="true" lastModifiedBy="bloggsj" lastModifiedDate="2002-05-10T09:44:45">
5 <F11Format>
6 <SpecificationFilename>c:/formats/F1.txt</SpecificationFilename>
7 </F11Format>
8 </dataformat>
9 </config>'
10 ))
11 /
1 row created.
Elapsed: 00:00:00.00
SQL>
SQL> BEGIN
2 ctx_ddl.sync_index('configs');
3 END;
4 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.02
SQL>
SQL> SELECT c.xml_data.extract('//dataformat/@id').getstringval(), c.xml_data.getstringval()
2 FROM configs c
3 WHERE CONTAINS(c.xml_data, '14082 INPATH (//dataformat/@id)') > 0
4 /
C.XML_DATA.EXTRACT('//DATAFORMAT/@ID').GETSTRINGVAL()
C.XML_DATA.GETSTRINGVAL()
<config
xmlns="http://www.ourcompanykscl.com/configuration">
<dataformat
name="F1" description="format spec" id="14082" version="2"
status="started" deployed="true" lastModifiedBy="bloggsj" lastModifiedDa
te="2002-05-10T09:44:45">
<F11Format>
<SpecificationFilename>c:/formats/F1.txt</SpecificationFilename>
</F11Format>
</dataformat></config>
14082
<config>
<dataformat
name="F1" description="format spec" id="14082" version="2"
status="started" deployed="true" lastModifiedBy="bloggsj" lastModifiedDa
te="2002-05-10T09:44:45">
<F11Format>
<SpecificationFilename>c:/formats/F1.txt</SpecificationFilename>
</F11Format>
</dataformat>
</config>
Elapsed: 00:00:00.03

Hi Amarnath,
Thanks for looking into my issue.
When I started writing the dynamic custom approver group, I did not use FND_NUMBER and it didnt work. After that I checked it in the AME Implementation Guide which says
"Queries for number and currency attributes must select the number or currency
amount converted to a varchar2 by:
fnd_number.number_to_canonical"
So that should not be a problem.
Please correct me if I am wrong but Now I see two different possibilities :
1. The seeded variable :transactionId which is being passed to the query is not able to get the value. In other words, the transactionId is not being passed.
2. I am using wrong Attributes to identify the transaction which is being used in the Condition and that condition is used in a Rule. In this case, I am trying to identify that the Basic Person details are changed and I am using seeded attribute HR_IS_PERSON_BASIC_DETAILS_CHANGE_SS in condition.
Any feedback?
Appreciate all replies.
Thanks,
CAH

Similar Messages

  • Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.

    Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.  HP 600-1315xt.
    Have tried everything I can find on internet and here on HP. None of the suggestions worked. Windows fixit for windows could not fixit. Any suggestions are appreciated. I can always use my disks and rebuild the computer. A last resort.

    Hi,
    It might be the graphic driver not compitable with the graphic device.  Has there been a change to the graphic driver?
    One thing you can try is to uninstall graphic driver and download the latest from Windows Update (if you haven't tried this).  Here are the possible steps:
    1.  Go to Control Panel->Hardware and Sound->Device Manager,  uninstall the graphic card driver by right clicking and select "uninstall".  Make sure the option "Delete the driver software for this device" is selected.
    2.  Reboot the system.
    3.  Go to Control Panel->System and Security->Windows Update, click on "Optional updates" and find the driver for g210 and do the update.
    I work on behalf o HP.
    Please click the white Kudos star to say thanks.
    Please click Accept As Solution if you found my response helpful.

  • I have upgraded to Lion Os but my Network storage (Iomega Home Media Network hard drive) does not work with Time Machine.  Are there any solution available?

    I have upgraded to Lion  OS only to find that my NAS (Iomega Home Media Network hard drive) does not work.  It tells me that it is not configured.  Are there any solutions .  Have Iomega sorted out the problem?

    Same issue here.  Based on what I can tell, iomega still has not developed a solution to the problem.  See below:
    https://iomega-na-en.custhelp.com/app/answers/detail/a_id/28327/kw/Mac%20OS%20X% 20Lion

  • Cascading LOV does not work when setting the value of the parent LOV with DA

    Hello All,
    Using APEX 4.2.2.
    I have tow LOVs
    Parent LOV item is: P50_TYPE
    Child LOV item is :  P50_PROJECT_ID
    In other words in the attributes of the item P50_PROJECT_ID we have :
    > Cascading LOV Parent Item(s): P50_TYPE
    > Page Items to Submit: P50_TYPE
    > List of values definition: something similar to:
    Select * from mytable where type = :P50_TYPE
    I use DA that execute JS code to set the value of the P50_TYPE item
    something similar to:
    > $('#P50_TYPE').val(2);
    Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
    Any help please ?
    Regards,

    Thanks Scott,
    By the way, I remember reading a thread posted by you about  Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
    If you use it, and it works find with you, can you please send it to me on [email protected] ?
    Regards,
    Fateh

  • Files.copy() method does not copy every file attribute - any suggestions???

    Hi,
    I am using Files.copy() method to copy a file. The exact code is:
    Files.copy(sourcePath, targetPath, StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING);
    However, it won't copy the UAC attributes on Windows. If I create a file with elevated access on Windows, the created files cannot be deleted/modified in Java with an non-elevated session for the same user account. I want to copy a file so that the elevation attributes get copied as well but the above code does not do that.
    Thanks.
    Imran.

    Resolved!
    I used the following script and it worked like a charm.
    On Error Resume Next
    'DECLARE VARIABLES HERE
    Dim fso
    Dim oFolder1, objFolder, oFolder
    Dim path
    Dim WSHShell
    Dim colFolders
    Dim sDocsAndSettings
    Dim strComputer
    strComputer = "."
    Set WSHShell = CreateObject("WScript.Shell")
    Set fso = createobject("Scripting.FileSystemObject")
    'SPECIFY THE PATH OF THE FOLDER IN WHICH SOURCE FILES RESIDE
    oFolder1 = fso.GetParentFolderName(WScript.ScriptFullName)
    If Right(oFolder1, 1) <> "\Macromedia" Then oFolder1 = oFolder1 & "\Macromedia"
    'COPY FILES TO USER PROFILES
    sDocsAndSettings = "C:\Users\"  
    Set colFolders = fso.GetFolder(sDocsAndSettings)
    For Each oFolder In colFolders.SubFolders
     Select Case LCase(oFolder.Name)
      Case "admin", "administrator", "newuser", "all users", "default user", "default user.original", "localservice", "networkservice"
       'LEAVE THE DEFAULT PROFILES ON THE MACHINE
      Case Else
       ' Check for the path
       If fso.FolderExists(sDocsAndSettings & oFolder.Name & "\AppData\Roaming") Then
        'COPY FOLDER TO USER PROFILE
        fso.CopyFolder oFolder1, sDocsAndSettings & oFolder.Name & "\AppData\Roaming\" ,True
        'MsgBox "Copied  to: " & sDocsAndSettings & oFolder.Name & "\AppData\Roaming"
       End If
     End Select
    Next
    Set fso = Nothing
    Set WSHShell = Nothing
    Thanks, Souvik.

  • Mdm abap api retrieve method does not work properly

    Lets say i have
    in a qualified flat lookup several qualifiers.
    i try to get the table using the following code:
      loop at wa_contract_data-CONT_REMINDER into ls_qual_link.
                      wa_keys_reminder = ls_qual_link-QUALIFIED_link_ID.
                      append wa_keys_reminder to lt_keys_reminder.
                CALL METHOD g_mdm_api->mo_core_service->retrieve_simple
                      EXPORTING
                      iv_object_type_code = 'TBL_REM'
                      it_keys = lt_keys_reminder
                      IMPORTING
                      et_ddic_structure = lt_remainder_data.
    endloop.
    finally lt_remainder_data contains only the non qualifier, but not the maintained data of the qualifiers.
    what confuses me is that some fields are even not transfered at all.
    does anyone know how to get what i would expect: the actual data of all other fields?
    Thanks.
    Gideon

    Hi Gideon,
    I have used ABAP API's to successfully retrieve the data from the MDM into a DDIC structure in ECC side using the program Retrive Simple.
    I had followed the webinar by Klaus David. Here is the link for the same:
    ABAP API for SAP NetWeaver Master Data Management - Webinar Replay
    PPT:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44
    Webinar Replay
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00dd47bd-f2f1-2910-5eab-e9ca52465ae4
    These links will take you through the configs, Sample source code for Retrieving data etc using both Retrive Simple & Retrive.
    May be there is a problem with the DDIC that you have designed. ( the data types etc.)
    Here are some additional links:
    Master Data Management ABAP API Overview:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/tip%2b%2bMDM%2bABAP-API%2b%2bThings%2bto%2bRemember%2b(for%2bStarters)
    Kindly go through the links to figure out the problem.
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • Runtime bones does not work if imported by Flash (example included)

    Created a runtime bone animation (more complicated than the one included in this example).  When I loaded the swf using the Loader class in master application, the runtime animation stopped working.  The authortime bones still work.
    I included my source files for the bones, and another fla that only calls the Document class Main.as.  Try running bonesRuntime.html, and the runtime bones work; call bonesSwfLoader.html and only the authortime bones work.
    Is this a bug or a programming error?

    I found the solution at http://www.mad.com.au/blog/?p=208
    I quote: (Paul Burnett)
    Tip – loading a swf with a Bones Armature (IK) into another swf
    A few people have asked me how to load a swf file that contains an armature, into another swf file. If you just try to do it the armature doesn’t work. The trick is that you need to register the armature in the loader file. I have attached a couple of very simple files to demonstrate. The bones.swf contains a simple armiture set to ‘Runtime’. The ‘loader.swf’ loads the bones.swf and registers the armature. For more info check out the new IK class in Flash CS4.
    import fl.ik.*;
    import flash.display.*;
    //load the bones swf
    var request:URLRequest = new URLRequest("bones.swf");
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, init);
    //set up the vars
    var boneClip:Sprite;
    var myArmature:IKArmature;
    function init(e:Event):void{
         //add the clip to the stage
         boneClip = Sprite(loader.content);
         addChild(boneClip);
         //set up IK
         IKManager.setStage(stage);
         myArmature = IKManager.getArmatureAt(0);
         myArmature.registerElements(stage);
         IKManager.trackAllArmatures(true);

  • Java.io.File renameTo does not work on Solaris

    Hi Experts,
    I have a code-piece which tries to move files from one directory to another on the SAME FILE SYSTEM using java.io.File.renameTo method.
    It works fine when there less no. of files in the source directory. But the renameTo does not work as expected when there are very huge no. of files(~40K) present in the source directory.
    I am aware that there is a known issue when one tries to use this method to move files across file systems OR if the file exists at the destination directory.
    But in my case the file system is the same and the there is no such file in the destination directory.
    I suspect some inode related issues. But not sure what it is exactly.
    Is there any limitations of renameTo?
    Please help.

    OK, we all now understand you have a problem in doing this, but without the specifics of the problem that you are experiencing, then it is fairly difficult to give you anything other than a guess. If you would like some specific and relevent answers, please supply specifics about how exactly the operation differs from your expected results. You should also post example code as it is almost always asked for eventually.

  • Draw method is not working

    Why the drawLine() is working only inside the paint method??
    BufferedImage image = new BufferedImage(800,500,BufferedImage.TYPE_INT_ARGB);
         Graphics2D g = (Graphics2D)image.getGraphics();
    public void paint(Graphics g)
                   g.setColor(Color.black);
                             //Here, the drawLine() method works
                   g.drawLine(50,0,50,150);
    public void paintX(Graphics g,Point c)
                        //Here, the drawLine() method does not work
                        g.setColor(Color.black);
                   g.drawLine(0-e,0-e,50-e,50-e);
                   g.drawLine(0-e,50-e,50-e,0-e);
                   repaint();
         }

    er, unless you're using JDK 1.5 and it introduces methods I know nothing about, as far as I know
    public void paintX(..) is not a AWT or Swing method. Thus it will never be invoked unless you call it.

  • Lync 2013 - Silent install via .msp does not work

    The thread listed below is marked as "answered" and indeed the answer given is correct and should work. . . but recently it seems to have stopped working for many.
    (EDIT:  Site will not allow me to post the link I was planning to post, "until it verifies my account."  So, I can only refer you to the thread named "Lync 2013 Client - Silent Installation")
    Specifically, it should be possible to do a silent install of Lync 2013 by following the instructions given in the link above to use setup.exe /admin and create an .msp to put in the "updates" folder for the silent install.
    The problem is, recently (September 2014-ish) this appears to have stopped working.  The thread quoted above has several people replying, all during September 2014, that this method does not work.  I am among them.  Lync 2013 runs through
    the setup, but only Office Tools ever appears as installed in the Start menu.  However, if you go to Control Panel, Uninstall Programs, and look for Lync 2013, it is listed there.  You can then tell it to "repair" the Lync installation,
    and it reinstalls properly.  This, of course, defeats the whole purpose of trying to do a silent install, however.
    Since it appears that the .msp silent install method used to work, but now does not -- what changed?  And what kind of workaround can be used?

    Hi,
    Did the Lync Package to be the latest version from Microsoft Website?
    As the issue have been met by several users, you can feedback the issue on the link below:
    http://blogs.technet.com/b/lync/archive/2012/11/01/lync-app-feedback-you-asked-and-here-it-is.aspx
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

  • Quick Look does not work

    For some reason, my quick look doesnt work since yesterday. I tried: 1) pressing the spacebar, it behaves like in tiger and selects a document if nothing is highlighted, if something is highlighted nothing happens 2) Pressing the eye button in the toolbar 3) pressing cmd-Y 4) selected quick look from the contextual menu. All of these methods does not work. And I've tried restarting the computer countless times.
    Does anybody have a fix for this? Did I accidentally press a key combination that turned it off?
    I really dont want to reinstall my computer since it's gonna be a big hassle
    Thanks

    I too just noticed this sudden loss of space-bar Quick Look functionality on my Mac Pro after updating to 10.5.2. However, on a recent aluminum iMac, the feature does work with the same update (??).

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • Lightroom 5.4, syncing photo settings edited in CS6 does not work. Maverick OS 10.9, Raw 8.3.0141

    I recently updated Lightroom to 5.4 and noticed that when the file comes back from CS6, the edit/sycn settings does not work. Selecting the gray area of the source file, and selecting another, clicking on the sync produces nothing. When I select a source image and another that has not visited CS 6 the sync works fine. I have used this simple technique for years with previous versions and never had a problem. Something has changed with the update and/or compatibility with the file coming back into Lighroom. Any thoughts about this would be appreciated.

    ssprengel, thanks for following up. I work with DNG files in Lightroom that have been converted from Raw CR2 files. They are exported from Lightroom to Photoshop as Tiff files and any files that i edited and traveled round trip could not be used to sync other files in Lightroom. Even simple edits like saturation or exposure have disabled the file from being able to sync the settings to other files. I do most of the syncing of develop settings in Lightroom, but occasionallly I will adjust basic settings in Photoshop for one reason or another and after updating to 5.4 I noticed that sync worked fine within Lightroom only. I have tried a few changes to preferences with regard to how develop settings are registered with the file and that hasn't made any difference. Any ideas?

  • Moved 8.1 - Nodemanager starts but does not work... SSL problem..

    Hello!
    We moved our weblogic 8.1 installation to a new production machine (which used to be very easy with weblogic 5.1) but of course, it didn't work because of the SSL demo certificates which were tied to the old server name. It dumped the following line on the log and refused to work:
    ...Certificate chain received from localhost - 127.0.0.1 failed hostname verification check
    We changed our demo certificates as stated in the documentation (certgen, keytool...) and now it starts ok but does not work either. Now we are seeing the following expection on the logs:
    weblogic.nodemanager.NodeManagerException: [SecureCommandInvoker: Could not create SSL Socket Factory, reason - java.lang.NullPointerException]
    at weblogic.nodemanager.client.SecureCommandInvoker.init(SecureCommandInvoker.java:67)
    at weblogic.nodemanager.client.CommandInvoker.invoke(CommandInvoker.java:89)
    at weblogic.nodemanager.client.NodeManagerClient.executeCommand(NodeManagerClient.java:161)
    at weblogic.nodemanager.client.NodeManagerExecuteRequest.execute(NodeManagerRuntime.java:1605)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    No Exception Messages
    Any clue or idea?
    Thanks in advance!
    Bernardo Riveira

    I have seen this myself moving domains to a different server. The way I got around it was to set the Hostname Verification for the admin and managed servers to None. This is done via the admin console, SSL tab, Advanced.

  • HTML Editor in HTMLDB Does Not Work Properly

    Dear Developer,
    The HTML Editor provided in the Build 1.5.0.00.33 (9i) does not work properly. The problems are:
    1. When you press Enter Key in HTML Editor <P> tag is
    added instead of <BR> tag. This causes inconvenience to the end user while editing & displaying the fields formatted by HTML Editor.
    2. Similar problems occur when Bullets are used.
    3. Maximum field width for varchar is only 4000 & there is no other field provided by HTML DB which can store more than 4000 characters information.
    I would like to know whether:
    1. The problem is fixed in the newest buid ?
    2. Is there any workaround or am I missing something, please comment.
    I am using HTML Editor so that user can write long free flowing HTML text, but end users have inconvenience.
    Thanks.

    Hi Ayush,
    The answer to your question 3 is increase the size of the Maximum width on the item. I increased it to 32767 and was able to insert into a clob. I think the limit is 32767.
    Vivek

Maybe you are looking for

  • HP Laserjet 6l

    Hello, I recently found a working HP laserjet 6l curbside recently and I am wondering what's the best way to connect it to my Mac G4. I read somewheres off of google search about it might work with some of the built in drivers in OSX but as far a con

  • TS4429 Reset iPhone 5 and now it says "No Service" and something about a SIM card

    Help, please! I basically did a factory reset on my iPhone 5 and it says that I have "No Service" - When I view my phone info, there's not even a number for it. The number says "unknown" ***, HELP. It says that I NOW need a SIM card. It's been workin

  • Unable to display Crystal Reports 2008 PDF output on smart phones

    Hi Folks, I'm not sure if this is the proper forum, but here goes. I am just finishing a large ASP.NET web app which makes extensive use of Crystal Reports 2008 and a CrystalReportViewer control.  My users routinely e-mail the reports in PDF format.

  • Viewing PDF files with blackberry pearl 8100

    Is it possible to view PDF files with blackberry pearl 8100? If so, how?

  • Item Groups G/L settings

    Our postings to G/L COGS are done by ITEM GROUPS therefore the ITEM GROUP Setup/Accounts screen governs most of the postings to the G/L. a.What I wonder if anyone knows of a chart that shows which function in SAP effects whch Nomial Setting in this s