Profile of user - purchase - returns nothing

I created a user profile in the Oracle Applications Sub - application developer

Application: purchase
Profile name: PO: CHANGE of SBM
Type of hierarchy: security
Validation of SQL:
SQL = "select decode (meaning,".
"Yes',"Full. "
'No', 'None') \"Access Level\ «,»
lookup_code
in: visible_option_value,: profile_option_value
of fnd_lookups
where lookup_type = 'YES_NO '.

Now, I am trying to run this query that returns nothing. Is it because I have the application level * purchase *.

{code}
Select apps.fnd_profile.value ('PO: SBM CHANGE ') twice;
{code}

Thank you

Hello

First you need to get the values of this profile option (resp. system administrator > profile > system).
In addition, when you use fnd_profile.value, you must specify the option of internal profile name and not the name of user profile option (maybe they are the same in your case?).
And also, in general, you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize to do this.

It will be useful.

Tags: Oracle Applications

Similar Questions

  • What is a good way to check if the selection ADB sql cursor returns nothing

    Hi all

    I am trying to find a good way to identify that a select SQL basic cursor return nothing.
    I know that or we use exception when no data found or count (*) to check how many rows are returned.


    I have a cursor based on a long statement select.
    As
    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
         CURSOR long_cursor IS
              --long select statement(with input variable) ;
    
    BEGIN
         Select count(*) 
         Into v_count
      From
      -- a long select statment with input again ;
      IF v_count > 0 then
        For record in long_cursor loop
         --Get information from cursor
            --other processing for output
        End loop;
      END IF;
    
    END;
    Is there a way other than the above?
    I would like to reduce the amount of typing. I know that repetition in code is not good.

    Thanks in advance,
    Ann

    Published by: Ann586341 on February 28, 2013 14:29

    Hello Ann,.

    Apart from the possibility has already been mentioned that other users can change the data during execution of your process, you can check if something needs to be done without the COUNTY. Set a flag in the cursor for loop. When there is no data, then the flag will not change one you can perform the necessary procedure.

    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
    
        v_data_found    BOOLEAN := FALSE;
        CURSOR long_cursor IS
            --long select statement(with input variable) ;
    
    BEGIN
        For record in long_cursor loop
            v_data_found := TRUE;
            --Get information from cursor
            --other processing for output
        End loop;
        IF NOT v_data_found THEN
            -- set processed flag
        END IF;
    END;
    

    Concerning
    Marcus

  • Profile of user failed to connect

    Profile of user failed to connect.  Paswor does not work.

    Hello

    These methods should help for Windows 7 or Vista.

    References to Vista also apply to Windows 7.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. THE ADMIN
    Safe Mode account has no default password (so unless someone changed
    the password should be available).

    Some programs such as the Google Updater (if you've added the Google toolbar,
    Chrome or Google Earth) has been known to cause this problem.

    Error message when you log on to a Windows Vista-based or Windows 7
    computer by using a temporary profile: "the user profile Service has no logon.

    Unable to load the user profile.
    http://support.Microsoft.com/kb/947215

    Difficulty "the user profile Service has no logon. User profile cannot be loaded. "Error in Windows 7
    http://www.SevenForums.com/tutorials/186131-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "the user profile Service has no logon. Could not load user profile. "in Vista & Windows 7.
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have visited
    logged on with a temporary profile. "in Vista & Windows 7.
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrupts you are TOAST.

    ----------------------------------------------------------------------------------------------------------

    For Windows 7:

    How to enable or disable the built-in Windows 7 Administrator account
    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    Use the hidden administrator account to lower your user account APPLY / OK then
    Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
    If necessary after following the above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
    your password even (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the command prompt
    from there if necessary.

    How Boot for Windows 7 System Recovery Options or use a Windows 7 boot disk.
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html

    What are the system recovery options in Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7

    How to create a Windows 7 system repair disc
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html

    ----------------------------------------------------------------------------------------------------------

    For Vista:

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    Use the hidden administrator account to lower your user account APPLY / OK then
    Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
    If necessary after following the above message.

    You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
    your password even (or two with the same password) use a test or difficulty to another.

    You can run the command Admin account hidden from the command prompt
    from there if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    What are the system recovery options in Windows Vista?
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    How to create a Vista - free methods recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

    ---------------------------------------------------------------------------------------------------------

    If you can't access your old account you can still use an Admin to migrate to one
    new (remember to always leave an account Admin who is not used except)
    to test and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

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

  • Services Web site deployment error "server returned nothing (no header, no data)" and much more

    I develop a VI on a large scale with a VI of web service combined in 2010 SP1. The "auxiliary" VI is responsible for storage of data capture and analysis as well as data and communications. It's big enough and communicates with the web method VI through shared network variables [and I use the DSC module to allow the management of shared variables of events].

    I can build and deploy the web method VI very well and it runs great. However, I need to communicate between the auxiliary and web method VI, and it seems that I can't do without including the auxiliaries vi when generating RESTful web services [also, is there a way to make this web service generates?]. When I added the auxiliary vi for the construction, he built very well, but then I got during deployment:

    "Server returned nothing (no header, no data).

    The next time I tried to deploy, I got a fake NI Auth dialog by this knowledge base article. By following the instructions for case 1 ["failure of Web application server since last started"], I ran Services.msc and found that NEITHER Application Web Service was not running. I tried to restart the service, but got this error:

    "The NI Application Web Server service on Local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the service logs and alerts. »

    Knowledge base article suggests to restart at this point and I did, but I still see the same behavior. So really, I have a few questions:

    1. is it possible to deploy a variable library shared on the network through a local web service deployed and VI?

    2. What are the causes "server returned nothing (no header, no data)" in the deployment? A google search gave very little.

    3. what this means: "NI Application Web Server service on Local computer started and then stopped... '. "and what do I do to get my Web Application Server up?

    [to pile on the pile... I tried to re - activate the localhost:3580 Web application server and got an error. Localhost:3580 then offline also.]

    Thank you!

    Update.

    I noticed that the Web application server attempted to deploy the web service broken and choke her. There seemed to be no way to clear the .lvws created at the origin of the construction. I was able to remove the deployment folder to \UserServices\deployed\ $(WebServicesRoot)- , but it has been recreated from the .lvws whenever I tried to restart the service.

    So I called NOR and they told me this directory [XP]:

    C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone

    The .lvws has been in this folder. I deleted it and now I can run the ApplicationWebService. Apparently this file hidden undocumented is a "not-quite-bug" that is recognized as needing a fix in future releases.

  • Error message: the user profile service has no logon. Profile of user was not found.

    Just after that Microsoft updates yesterday we received the following message: the user profile service has no logon.  Profile of user was not found.

    The user is locked.  I tried the system restore, but the computer does not. I don't have a disk of Vista to re - install.  Peux-I re - install online?  I have the product key.

    Thank you

    Joe R.

    ·                        http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    See if the information in the above tutorial will help you.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Also ask them if it is possible to do the recovery disk/s since the Partition of recovery in case of hard drive failure or System Crash, when you are running correctly.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Or borrow a good Microsoft Vista DVD (not Dell, HP, Acer, recovery disk/s etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

  • while trying to reset to fix the slowness, firefox never finished, so I closed it, now it says my profile is not valid, and nothing will load.

    while trying to reset to fix the slowness, firefox never finished, so I closed it, now it says my profile is not valid, and nothing will load. So I have no possibility to repair. I tried to anUpgrade, but which resulted in the same situation.

    Sorry, when an update is interrupted, it can happen. Please start by creating a new profile. There is no data in it, but it will get us started.

    You will start the Firefox profile manager using the Windows Run dialog box (hold down the Windows key and tap R) or the system Windows 10 search box. Paste the following and press ENTER:

    firefox.exe -P
    

    This should start a small window.

    Click on the button to create a profile, assign a name like OldSettings and ignore the ability to move the profile folder. After you create the profile, select it and start Firefox in this profile.

    I guess that Firefox works?

  • Profile of user not loaded correctly, you have been connected with a temporary profile. How can I fix it?

    I use a Toshiba Satellite with windows vista. My father gave it to me, but instead of creating a new user account, I have renamed the original administrator account. two years later, I have 3 accounts on the laptop, which only the original is still the sole Director and has access to all partitions on the hard drive as well.

    A week ago, my computer laptop power had reported issues so I immediately sent for repair. I came home today and the Standard 2 user accounts work perfectly. However when I connect to my original administrator account I get this pop - up message:

    "The user profile was not loaded correctly. You have been logged on with a temporary profile. Changes to this profile will be lost when you log out. Check the log of the events for more information or contact your administrator "

    I lost all my profile settings, including internet bookmarks, music playlists, etc. The office looks like a brand new installation of Vista and all the customization disappeared. I can't afford to lose all data. It is seriously important and was on my desk and in my documents.

    How can I get my profile without losing any data?

    Hi Salman91,

    Thank you for visiting the Microsoft Windows Vista Community.   New profile created, try browsing to the old profile (C:\users\username).  You should see all the old user data.  If this does not work, try to copy the files in Safe Mode.

    Please let us know if that helps.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • type it the password of the account, it says the user profile service Service failed the profile logon.user cannot be loaded.on from the system restore, it said: System Restore could not start. What should I do? __

    type it the password of the account, it says the user profile service Service failed the profile logon.user cannot be loaded.on from the system restore, it said: System Restore could not start. What should I do?

    Have a look here:
    http://support.Microsoft.com/kb/947215
    or here:
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

  • Profile of user not in dba_profiles. What happens to PWD security?

    Hello

    I don't know exactly how it happened, but I have users in dba_users with dba_users.profile values that do not exist in dba_profiles. For these users, what happens in a perspective of security password?

    Thank you

    ponderdj

    is ponderdj, what version of Oracle?  With the help of a 10.2.0.5 system for test, I determined that Oracle does not allow you to create a user that references a non-existent profile in create it or if it let you change a user in a non-existent profile.  So I create a new profile, new user referenced the profile, which then attempted to abandon the profile.  Oracle has refused to give up the profile since it was used unless I have clear WATERFALL.  I've made and then checking the DBA_USERS entry for my test user.  The information had been updated to display the DEFAULT profile has been used.

    - -

    If I get a chance I'll try this on one of my 11.2.0.3 systems, but I expect the same results.  I don't know if I have a reference anywhere, but Oracle used to have a dictionary check script that would search for and identify problems in the RDBMS database tables.  A research on support may be worth your time.

    - -

    HTH - Mark D Powell.

  • How to filter data according to internal application and in case if returns nothing outside the query must return all the lines

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    Select * AB

    where b in (select b BC where b = "2sample")

    This query will return me 1 row, but there are cases where the value of the parameter b is null

    and that it should return all rows in the table

    as

    Select * AB

    where b in (select b BC where b = "2sample")

    which return specific values, but I want to change in a way when the inner query returns nothing then outer query should return all the lines and works as

    Select * AB;

    Is it possible to put in a single query

    Hello

    You seem to ask for different things.  You want all the lines AB when

    1. The parameter ("2sample' in the example) is NULL, or when
    2. There is no corresponding row in the 2 tables (which could happen even if the parameter is not NULL)

    ?

    Assuming you want the option 2, here's one way:

    WITH got_rnk AS

    (

    SELECT ab.*

    DENSE_RANK () (ORDER IN CASE

    WHEN b (IN)

    SELECT b

    BC.

    WHERE b = "2sample" - parameter

    )

    THEN "A".

    OF ANOTHER 'B '.

    END

    ) AS rnk

    AB

    )

    SELECT a, b

    OF got_rnk

    WHERE rnk = 1

    ;

    This does not assume b is unique in each table.

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.

  • PowerCLI Get-AdvancedSetting returns nothing

    Hello.

    I have a problem with the Get-AdvancedSetting command.

    The return is always nothing, unless an error occurs, which in this case indicates the error.

    In the example below, it should return a list of required parameter for all virtual machines that have this setting:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get - vm | Get-AdvancedSetting - name disk. EnableUUID

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >

    Also the same in this variant:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get-AdvancedSetting - entity (Get - VM - name SRVNAME) - disk name. EnableUUID

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >

    As you can see, it only skips line and returns nothing. I am able to enumerate all the virtual machines if I just launched Get - vm and I get an error if I try the above without the entity.

    I tried with arguments of different setting different disk . EnableUUID, but got the same result.

    What could be wrong?

    Thank you.

    Ouch, that's a pretty old version.

    No particular reason, you can not upgrade?

  • Get-VMHostSnmp returns nothing

    Hi all

    I need to get out a bunch of SNMP parameters for some 5.5 ESXi hosts.

    This bit is easy. I say that because when I run the command set-vmhostsnmp to add the targets and community names, no error is returned.

    It's when I try to check the settings, or search the SNMP settings on different hosts that I run into trouble.

    I want to add that I tried the following on PowerShell (v3), Powershell ISE, with VMware PowerCLI (5.5 Release 1).

    Always with the same results.

    to connect-viserver MyESXiHost-credential (get-credential)

    Get-VMHostSNMP #returns nothing

    Get-VMHostSNMP-returns # server MyESXiHost the below error

    Get-VMHostSnmp: 26/Jun/2015 12:14:18Get-VMHostSnmpThe method or operation is not implemented.

    On line: 1 char: 1

    + Get-VMHostSnmp-Server MyESXiHost

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [Get-VMHostSnmp], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostSnmp

    I checked the snmpd Service and it is running

    Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"}

    Required Label key running policy

    ---                  -----                          ------     -------  --------

    snmpd snmpd on True False

    I even restarted the snmpd service after adding the SNMP parameters using

    Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"} | Restart-VMHostService-confirm: $false

    That is to say;LabelPolicyRunning required
    ---------------------  --------
    snmpdsnmpdonTrueFake

    I even tried to Get-EsxCli

    $esxcli = get-EsxCli - VMHost siprb3esx01.corp.emc.com

    $esxcli.system.snmp.get)

    several errors returned

    Community string has not been specified in the trap target

    When I put something inside the brackets, I get the following

    The 'get' method is called with parameters '1', but the number of parameters expected is '0'

    Any help that can be offered would be appreciated.

    Thank you all

    Problem solved.

    I've updated since PowerCLI 5.5 Release 1 to PowerCLI version 5.8 Release 1 and the get-vmhostsnmp command now works.

    Better yet Get-VMHostSnmp | Select VMHost, works of TrapTargets

  • Extract XML Value returns nothing

    Hi, I have a table where I put an XMLTYPE column called XML_RESPONSE and a CLOB called XML_RESPONSE_CLOB with the same XML content each.

    One of the values of records in the two columns look like this:

    <? xml version = "1.0" encoding = "UTF - 8"? >< s : Envelope xmlns:S = » http://schemas.xmlsoap.org/soap/envelope/ « >< Body >< ns2:StampCFDBytesResponse xmlns:ns2 = » http://impl.Controllers.massive.Fe.STO.com/ "xmlns:ns3 = » http://exception.Fe.STO.com/ "><stampedDocument>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk6Q29tcHJvYmFudGUgdmVyc2lvbj0iMy4yIiBmb2xpbz0Cinb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCBodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbC9UaW1icmVGaXNjYWxEaWdpdGFsLnhzZCIgeG1sbnM6dGZkPSJodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCIvPgogICAgPC9jZmRpOkNvbXBsZW1lbnRvPgo8L2NmZGk6Q29tcHJvYmFudGU+</stampedDocument></ns2:StampCFDBytesResponse></S:Body></S:Envelope>

    I am trying to extract the base64 code, that is inside the < stampedDocument > element.

    If I use this code, the procedure runs, but returns nothing:

    Select apex_web_service.parse_xml (XML_RESPONSE, "/ / envelope/body/stampedDocument")

    in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;

    If I use the following the procedure returns an error:

    Select apex_web_service.parse_xml (XML_RESPONSE, '//Envelope/Body/stampedDocument/stampedDocument ()')

    Select apex_web_service.parse_xml (XML_RESPONSE, '//S:Envelope/S:Body/stampedDocument/stampedDocument ()')

    Select apex_web_service.parse_xml (XML_RESPONSE, ' / / s: Envelope / Body / stampedDocument')

    in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;

    06503 00000 - "PL/SQL: function returned no value."

    * Cause: A call to the PL/SQL function completed, but no RETURN statement has been

    executed.

    * Action: Function to rewrite PL/SQL, ensuring that it always returns

    a value of the appropriate type.

    I also tried with the ExtractValue function and retunrs null or an error.

    SELECT id_cfdi_timbrado,

    EXTRACTVALUE (e.xml_response, ' / envelope/body/stampedDocument ')

    'CFDI_BASE_64 '.

    OF e f_cfdi_timbrados

    WHERE id_cfdi_timbrado = 1002;

    Please notify. It's my first experience of XML parsing and it seems that I am lost.

    Francisco

    The error message provides the clue that you need.  If you were to search on this error message, you will see he's trying to tell you that you are missing a RETURN statement at the end of your function.  Something like

    RETURN v_stamped;

    That would resolve the issue causing the error ORA.

    Regarding the second question, that you will encounter, your clips are not correctly name space which is part of the XML.  For extractValue, there is a third parm

    EXTRACTVALUE

    If your query would look like

    EXTRACTVALUE (e.xml_response, ' / s: Envelope/Body / ns2:stampedDocument ',' xmlns:S = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2 = "http://impl.controllers.massive.fe.sto.com/"')

    I leave you to you of apex_web_service.parse_xml of research

    That said, depending on your version of Oracle, extractValue might be obsolete and you will have to go in a different direction.

    Here are a few tips to post on the forums

    Re: 2. How can I ask a question in the forums?

  • QueryUnresolvedVMFSVolumes() returns nothing

    Hi @all,

    I build a PowerShell script to mount the snapshot LUN in a case of DR. But my QueryUnresolvedVMFSVolumes returns nothing in my script. If I use all the lines manually I get the expected return. There is nothing in the script. Can anyone help?

    function Getunresolved()
    {
    $hostdetail = get-VMHost $vmhosts [0]
    $hostview = get - see $hostdetail. ID
    $hostss = get - see $hostview. ConfigManager.StorageSystem
    $hostds = get - see $hostview. ConfigManager.DatastoreSystem
    $hostss. RefreshStorageSystem()
    $hostuvmfs = $hostds. QueryUnresolvedVMFSVolumes()
    Write-Host $hostuvmfs.count
    }

    Thanks Klaus

    Maybe try to wait between the RefreshStorageSystem and the QueryUnresolvedVMFSVolumes of the calls.

    For example put a 10 ' sleep ' cmdlet between 2 calls. "

    You probably play with the duration

  • Custom view get-inventory returns nothing

    Here is an excerpt of what I'm trying to accomplish (I filter certain fields/results)

    Get-Inventory | %{
         $type = $_.Id
         if($_.Id.Contains("-")) {
              $type =  $type.Substring(0, $type.IndexOf("-"))
         }
    
         switch ($type) {
              "ClusterComputeResource" {
                   select  @{name="[MACHINE_NAME]"; expression={$server}},
                             @{name="[PATH]Id"; expression={$_.Id}},
                             @{name="[PATH]Name"; expression={$_.Name}},
                             @{name="Name"; expression={$_.Name}},
                             @{name="HA Enabled"; expression={$_.HAEnabled}},
                             @{name="HA Admission Control Enabled"; expression={$_.HAAdmissionControlEnabled}},
                             @{name="HA Failover Level"; expression={$_.HAFailoverLevel}},
                             @{name="HA Restart Priority"; expression={$_.HARestartPriority}},
                             @{name="HA Isolation Response"; expression={$_.HAIsolationResponse}},
                             @{name="DRS Enabled"; expression={$_.DrsEnabled}},
                             @{name="DRS Automation Level"; expression={$_.DrsAutomationLevel}},
                             @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}},
                             @{name="Custom Fields"; expression={$_.CustomFields}},
                             @{name="Type"; expression={$type}}
              }
              "HostSystem" {
                   select  @{name="[MACHINE_NAME]"; expression={$server}},
                             @{name="[PATH]Id"; expression={$_.Id}},
                             @{name="[PATH]Name"; expression={$_.Name}},
                             @{name="Name"; expression={$_.Name}},
                             @{name="State"; expression={$_.State}},
                             @{name="VM Swapfile Datastore Id"; expression={$_.VMSwapfileDatastoreId}},
                             @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}},
                             @{name="Custom Fields"; expression={$_.CustomFields}},
                             @{name="Type"; expression={$type}}
              }
              ...
    

    It returns nothing every time.  If I just run Get-inventory I collect a lot of data.  My guess is that I do something wrong in a perspective of PowerShell, not a point of view CLI.

    Any ideas?

    It's because you're not 'feed' anything in the select cmdlet.

    And the Switch statement modifies the contents of the variable $_

    And to get the type that you can use the GetType method that exists on any object.

    Get-Inventory | % {
         $type = ($_ | Get-View).gettype().Name
         $obj = $_
         switch ($type) {
              "ClusterComputeResource" {
                   $obj | select @{name="[MACHINE_NAME]"; expression={$server}},
                   @{name="[PATH]Id"; expression={$obj.Id}},
                   @{name="[PATH]Name"; expression={$obj.Name}},
                   @{name="Name"; expression={$obj.Name}},
                   @{name="HA Enabled"; expression={$obj.HAEnabled}},
                   @{name="HA Admission Control Enabled"; expression={$obj.HAAdmissionControlEnabled}},
                   @{name="HA Failover Level"; expression={$obj.HAFailoverLevel}},
                   @{name="HA Restart Priority"; expression={$obj.HARestartPriority}},
                   @{name="HA Isolation Response"; expression={$obj.HAIsolationResponse}},
                   @{name="DRS Enabled"; expression={$obj.DrsEnabled}},
                   @{name="DRS Automation Level"; expression={$obj.DrsAutomationLevel}},
                   @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}},
                   @{name="Custom Fields"; expression={$obj.CustomFields}},
                   @{name="Type"; expression={$type}}
              }
              "HostSystem" {
                   $obj | select @{name="[MACHINE_NAME]"; expression={$server}},
                   @{name="[PATH]Id"; expression={$obj.Id}},
                   @{name="[PATH]Name"; expression={$obj.Name}},
                   @{name="Name"; expression={$obj.Name}},
                   @{name="State"; expression={$obj.State}},
                   @{name="VM Swapfile Datastore Id"; expression={$obj.VMSwapfileDatastoreId}},
                   @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}},
                   @{name="Custom Fields"; expression={$obj.CustomFields}},
                   @{name="Type"; expression={$type}}
              }
         }
    }
    

Maybe you are looking for