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?
Tags: VMware
Similar Questions
-
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:18 Get-VMHostSnmp The 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; Label Policy Running required --- ----- ------ ------- -------- snmpd snmpd on True Fake 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
-
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}} } } }
-
Get-advancedsetting showing only a limited set of results
Hi all
I'm very new to using PowerCLI, so please be patient with me.
I am trying to determine which of our virtual machines have the Advanced setting "device.hotplug" 'true '.
I think I got the script to do so, the only question is, is not producing the expected results.
When you run a command that does not filter results, it only returns results for 40 VM, when I expect to slightly more than 200.
This is the command that I expect the return value for each virtual machine in a cluster:
Get-Cluster-name of the "cluster" | Get - vm | Get-AdvancedSetting - name devices.hotplug | Format-Table-entity property, Name, Value - AutoSize
I get a complete list of virtual machines, when I run:
Get-Cluster-name of the "cluster" | Get - vm
That should be all that you need to see my problem, however, for good measure and any comment, here is the little script I'm working on the only exit from the virtual computer with the "device-hotplug" setting enabled. Feedback or comments welcome.
$hosts = get-cluster-name of the "cluster" | Get - vm |
Where-Object {$_ .name-notlike 'exclude'}
}
$results = {foreach ($vihost in $hosts)
Get-vm-name $vihost | Get-advancedsetting - name devices.hotplug |
Where-Object {$_.} Value - notlike 'false'}
}
$results | format-table-entity property, Name, Value - AutoSize
See you soon
Lloyd
Make sure that each VM has who progress together setting?
Try like this, it should return all the virtual machines, also those who does not have the setting
Get-Cluster-name "group" | Get - VM |
Select Name,@{N='device.hotplug'; E={$_ | Get-AdvancedSetting - name devices.hotplug | Select value - ExpandProperty}}
-
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.
-
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
-
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
Is there a way other than the above?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;
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:29Hello 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 - 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 youHello
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.
-
get the return value of a method of the application module in the workflow
Hello
I use jdeveloper 11.1.1.7.0
I defined a method (return type is useful java card) in the Module of the Application and add this method to the client interface.
also I have a workflow and in this TF firstly I should execute this method and put the return value for the pageFlowScope parameter. I know that to use this method as a methodCall and set it as an activity by default, but I don't know how to get the return value before entering the jsff page and set the pageFlowScope parameter.
Habib
Concerning
When you add the activity to the way to deal, there are 'Return value' property that you can set to #{pageFlowScope.yourVariable}
Dario
-
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
- The parameter ("2sample' in the example) is NULL, or when
- 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.
-
How do you exit name of Virtual Machine of ' Get - VM | Get-AdvancedSetting' command?
Hello, I have a question which is hopefully enough simple to answer.
I'm having this problem explained in KB 2078352 and you want a list of VMs affected before hotfixing them, to see if it helped with our problem or not.
Sample line:Get - vm | Get-AdvancedSetting - name tools.deployPkg.fileName
Name value Type Description
---- ----- ---- -----------
tools.deployPkg.f... imc1D01.tmp VM
tools.deployPkg.f... imc937E.tmp VM
tools.deployPkg.f... imc32EE.tmp VM
tools.deployPkg.f... imc6030.tmp VM
This shows only the value of the file names, but not the names of virtual machine. So I was just wondering how I can get an output of name of virtual machine with this information?
Thanks in advance.
Try adding a Format-Table may
Get - VM | Get-AdvancedSetting |
Select @{N = "VM"; E={$_. @entity.name}}, Name, Value | Format-Table - AutoSize -
Why my function returns nothing when I create as a schema object
I have the ABC's of the user who owns several paintings, some of which have foreign key constraints.
I have user XYZ who has access to all the tables belonging to the user ABC.
When I create a user XYZ feature to use more I get no return when I run:
Select XYZ.ztm_tables_depended_on ('ABC', 'A_TABLE_OWNED_BY_ABC') of double:
Please see after the function definition.
CREATE or REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON (p_Owner VARCHAR2, nom_table_p VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = nom_table_p
AND CONSTRAINT_TYPE = 'R '.
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
--
v_Referenced_Owner VARCHAR2 (31);
v_Ret_Val VARCHAR2 (4000);
--
The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND the argument CONSTRAINT_NAME = p_Constraint_Name;
--
v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
--
RETURN v_Ret_Val;
END;
--
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';
ANOTHER v_Referenced_Owner: = NULL;
END IF;
--
v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
--
RETURN LTRIM (v_Ret_Val, ',');
END;
/
But if I enter the function within an anonymous block as follows, I get results:
DECLARE
CURSOR C1 IS
Select owner, table_name
From all_tables where owner = 'ABC ';--
The FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND TABLE_NAME = nom_table_p
AND CONSTRAINT_TYPE = 'R '.
ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
--
v_Referenced_Owner VARCHAR2 (31);
v_Ret_Val VARCHAR2 (4000);
--
The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
CURSOR C1 IS
SELECT TABLE_NAME
OF ALL_CONSTRAINTS
WHERE OWNER = p_Owner
AND the argument CONSTRAINT_NAME = p_Constraint_Name;
--
v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;
BEGIN
OPEN C1;
FETCH C1 INTO v_Ret_Val;
CLOSE C1;
--
RETURN v_Ret_Val;
END;
--
BEGIN
FOR R IN C1 LOOP
IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';
ANOTHER v_Referenced_Owner: = NULL;
END IF;
--
v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
END LOOP;
--
RETURN LTRIM (v_Ret_Val, ',');
END;--
BEGIN
FOR R IN C1 LOOP
DBMS_OUTPUT. Put_line (ztm_tables_depended_on (R.Owner, R.Table_Name));
END LOOP;
END;
/Any ideas what is happening here?
Any ideas what is happening here?
Justin said the likely reason.
See the section "How to exercise roles in PL/SQL blocks" the doc of database security for details
http://docs.Oracle.com/CD/E25054_01/network.1111/e16543/authorization.htm#i1007304
Operation of the roles in PL/SQL blocks
The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.
Roles used in the appointed with rights to define blocks
All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.
The
SESSION_ROLES
view shows all roles that are currently enabled. If a named PL/SQL block that runs with Definer Rights queriesSESSION_ROLES
, then the query will return no rows.Roles used in blocks named with the rights of the plaintiff and anonymous PL/SQL
Named PL/SQL blocks that run with the rights of the applicant and the anonymous PL/SQL blocks are executed at the end of the privileges granted through active roles. Current roles are used for verification within rights Summoner of privilege the PL/SQL block. You can use dynamic SQL statements to define a role in the session.
See this line beginning by "all roles are disables in any PL/SQL block named"?
-
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
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
-
I just published my Muse on Adobe site, and now when I do a search and get a return on research, it contains the name of the site several times. is it in the properties of the page?
You mean search Google search? or you use any search module in your site and the keywords shows same subject several times on the page?
Please elaborate more, indicate the url of site.
Concerning the use of keywords, description, etc, you can add on your page using the page properties > metadata section.
http://Muse.Adobe.com/strategies-for-SEO.html
Thank you
Sanjit
-
How to get the return value from Java runtime.getRuntime.exec?
I am running shell from a (GR 11, 2) Oracle database commands on aix.
But, I would get a return value of a shell comand... as you get with "echo $?"
I use a code like
but I do not get a return value... because I don't know how to get the return value...CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS import java.io.*; public class Host { public static int executeCommand(String command) { int retval=0; try { String[] finalCommand; finalCommand = new String[3]; finalCommand[0] = "/bin/sh"; finalCommand[1] = "-c"; finalCommand[2] = command; final Process pr = Runtime.getRuntime().exec(finalCommand); pr.waitFor(); } catch (Exception ex) { System.out.println(ex.getLocalizedMessage()); retval=-1; } return retval; }; /
Published by: user9158455 on 22-Sep-2010 07:33Hello
Your pr.exitValue () has tried?
I think you also need a finally block that destroys the sub-process
Concerning
Peter
Maybe you are looking for
-
Strange noise emitting from Satellite Pro S500
For the last 24 hours my laptop as mentioned above makes a low hum of short (3-4 seconds) about every 5 minutes. It seems to come from the top LHS of the machine. In all other ways, the machine is in perfect working condition. It is 4 weeks old.(I ho
-
Drive TSST TS-H653F not read disks in Windows XP
Computer: Dell VOSTRO 200
-
Vista Service Pack 1: Error Code 80010108
I need help installing vista service pack 1. I tried to install it but I got the error code 80010108. Vista service pack 2 installed successfully but I need service Pack1 to install Office Home and Student 2010 on my computer. Help, please.
-
My icons on my shortcuts changed.
My icons on my shortcuts changed. All my icons look like the e on enternet. I can't change back don't know how. Thanks anyone who can help.
-
'Unidentified Publisher UACproxy.exe' of Windows UAC
I have a horse of Trojan on Vista, care cleaned 3 x, now at startup UAC access request & I refuse. Ever happnd b4, can I still prob?