Function returning error - change notification
I have a function returning error text. When error occurs I get the message
'xx error has occurred' on the screen (in notification). Is there a way to control the message text so I can display different text?
It's something like this:
DECLARE l_code zip.code%TYPE;
got_error varchar2(1) := 'N';
l_check_fld varchar2(30000);
l_error_fld varchar2(32000);
vErrorFields varchar2(1000);
CURSOR check_zip IS
select ''
from zip
where code = l_code;
BEGIN
apex_collection.create_or_truncate_collection('ZIP');
FOR i IN 1 .. apex_application.g_f03.COUNT LOOP
vErrorFields := '';
/* Code MUST be entered */
if (apex_application.g_f03(i) is null and
(apex_application.g_f04(i) is not null or
apex_application.g_f05(i) is not null))then
got_error := 'Y';
vErrorFields := vErrorFields || ',f03';
l_error_fld := l_error_fld || 'Row ' || to_char(i) || ':' ||' <span style="color: red">Code cannot be <strong>blank.</strong></span><br>';
end if;
END LOOP;
if got_error = 'N' then
apex_collection.delete_collection('ZIP');
end if;
RETURN l_error_fld;
END;
Similar Messages
-
Function returning error text validation
Hi,
I have a page where i can insert/update user, organisation, responsible.
Organisation can be nullable.
Only one user at a time can be responsible for a organisation.
To check this responsible validation i made a function returning error text validation as follow:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;
The validation works fine.
But it goes wrong when i want to insert a new user, without assigning him to an organisation.
I get following message:
ORA-01722: invalid number
ERR-1024 Unable to run "function body returning text" validation.
Can someone please help me solve this problem?
ThanksHi,
try:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = nvl(:p22_usr_org_id,-1)
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;This assumes that :p22_usr_org_id could be null and converts this to -1 (pick another default value if this may exist as an id). It is possible that the statement would otherwise be seen as WHERE usr_org_id = null which is invalid.
or you could do:
BEGIN
IF :p22_usr_org_id IS NOT NULL THEN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END IF;
END;As this would stop the validation running if the :p22_usr_org_id is null.
Or, you could just make your validation conditional on p22_usr_org_id not being null?
Andy -
To_numer function return error in pl/sql
Hello,
I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
Please help me out.
Do I have to set parameter in DB ?
BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
Thanks.to_numer function return error in pl/sql
hlthanh wrote:
Hello,
I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
Please help me out.
Do I have to set parameter in DB ?
BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
Thanks.Handle: hlthanh
Status Level: Newbie
Registered: Mar 7, 1999
Total Posts: 94
Total Questions: 60 (38 unresolved)
so many questions & so few answers.
How SAD! -
Problem Description:
ODBC functions SQLExecDirectW and SQLExecute functions return error:”DIAG [22001] [Microsoft][SQL Server Native Client 10.0]String data, right
truncation (0) “. When we enable tracing in the ODBC administrator, in the SQL.log we see that values for the arguments: ColumnSize, BufferLength, and StrLen_or_IndPtr of ODBC function SQLBindParameter are not being displayed.
Environment Used:
OS: Microsoft Windows Server 2003 R2 Standard x64 Edition.
Complier: Microsoft Visual Studio 2008 SP1 for x64.
Database: Microsoft SQL Server 2008
MDAC: Microsoft Data Access Components SDK 2.8
Note: This problem is seen only in our 64bit application. However, in 32bit
SQLExecDirectW and SQLExecute functions return successfully.
As we could not find the values of 6<sup>th</sup>, 9<sup>th</sup> and 10<sup>th</sup> arguments(ColumnSize,
BufferLength, and StrLen_or_IndPtr) passed to
SQLBindParameter in the ODBC traces for 64bit, we are not sure whether the values for the above mentioned arguments are received correctly by SQLBindParameter or not. This information would help us to debug further. So, could you please let us know why
these values are not displayed.
1)Here is the extract of the SQL.log file for 32bit where the values for SQLULEN , SQLLEN and SQLLEN* are displayed properly:
PR0CNFG 1028-15f0 ENTER SQLBindParameter
HSTMT 0x006FBDD8
UWORD 1
SWORD 1 <SQL_PARAM_INPUT>
SWORD -8 <SQL_C_WCHAR>
SWORD -9 <SQL_WVARCHAR>
SQLULEN 23
SWORD 0
PTR 0x0595EBBA
SQLLEN 46
SQLLEN * 0x05A5FB00
2)Here is the extract of the SQL.log file for 64bit where the values for SQLULEN , SQLLEN are not displayed properly and
SQLExecDirectW function return error:”DIAG
[22001] [Microsoft][SQL Server Native Client 10.0]String data, right truncation (0) “. :
PR0CNFG a78-fe4 ENTER SQLBindParameter
HSTMT 000000000431D2F0
UWORD 1
SWORD 1 <SQL_PARAM_INPUT>
SWORD -8 <SQL_C_WCHAR>
SWORD -9 <SQL_WVARCHAR>
SQLULEN SQLULEN SWORD 0
PTR 0x0000000005364EFA
SQLLEN SQLLEN
SQLLEN * SQLLEN *
PR0CNFG a78-fe4 EXIT SQLBindParameter with return code 0 (SQL_SUCCESS)
HSTMT 000000000431D2F0
UWORD 1
SWORD 1 <SQL_PARAM_INPUT>
SWORD -8 <SQL_C_WCHAR>
SWORD -9 <SQL_WVARCHAR>
SQLULEN SQLULEN SWORD 0
PTR 0x0000000005364EFA
SQLLEN SQLLEN SQLLEN *Hi Nalsr,
From my research, I found:
"[Microsoft][ODBC SQL Server Driver]String
data right truncation" error may be returned from a call to
SQLBindParameter if the size of the string parameter being used is greater than the size of the column being compared to. In other words if the
string size of the <expression> to the left of the <comparison_operator> is less than the
string size of the <expression> to the
right, ODBC may return this error.
The resolution is to make the string size of the <expression> to the
right of the <comparison_operator> less than or equal to the
string size of the <expression> on the left.
It is difficult to track down this type of problem when third party development applications are being used. ODBC Trace can be used to help determine if this problem is occuring.
Here is an example where the customer has submitted a query "select count(*) from type1 where type1 = ?", type1 is varchar(5) and the
data type being passed by the application is char[9].
Here is the relevant portion of the trace. The following information from the "exit" of SQLDescribeParam
SWORD * 0x0095e898 (12)
UDWORD * 0x0095e880 (5)
Maps to the following with the actual value in parenthesis - SQL_VARCHAR Size 5:
SQLSMALLINT *DataTypePtr
SQLUINTEGER *ParameterSizePtr
The "exit" value from SQLBindParameter provides the following
information:
SWORD 1 <SQL_PARAM_INPUT>
SWORD 1 <SQL_C_CHAR>
SQL Data Type SWORD 12 <SQL_VARCHAR>
Parameter Size UDWORD 5
SWORD 0
Value PTR 0x0181c188
Value Buffer Size SDWORD 5
String Length SDWORD * 0x0181c103 (9)
The string length parameter is the length of the
string being bound to the parameter, in this instance there is a size mismatch which results in the SQLError and the SQLErrorW with the message "[Microsoft][ODBC SQL Server
Driver]String data
right truncation" .
Hope this could be helpful.
Best regards,
Halin Huang -
PL/SQL Function call error while reading or assigning returned value
Hi,
I am getting the following error while tryih to read the value of the PL/SQL Function. I am calling a function in one of my PL/SQL Packages passing mutliple IN parametes and the function returns some value back. Now on BPEL side when I try to read the return value I am getting an error:
*<summary>*
empty variable/expression result.
xpath variable/expression expression "/ns3:OutputParameters/ns3:TEST_FUNCTION" is empty at line 124, when attempting reading/copying it.
Please make sure the variable/expression result "/ns3:OutputParameters/ns3:TEST_FUNCTION" is not empty.
*</summary>*
Even though in the console when I check the Invoke Output Parameter it does shows me a valid value being retuned by a Function but when I am trying to Assgn this value to some variable using Assign Activity I get the above error.
Even though all goes fine but looks like I am not able to read or assign the value returned from the Function.
So just wondering if this even works as to me I have a very simple example and that seems not to work. Function is called successfully and is returning the value as I can see it in the BPEL console but when tryin to read or assign that value to some other variable I get the above error.
Any ideas?
ThanksThis issue has come up a lot. The problem is with a mismatch between the version of JDeveloper and SOA. You'll encounter namespace issues if you use 10.1.3.1 in combination with 10.1.3.3 (or 10.1.3.4). You MUST synchronize both JDev and SOA to 10.1.3.3 or 10.1.3.4 (mixing 10.1.3.3 and 10.1.3.4 is OK). We changed when going to 10.1.3.3 by adding elementFormDefault="qualified" to the generated XSD. We used the default "unqualified" in 10.1.3.1. So you'll encounter namespace issues unless you're using 10.1.3.3 or higher JDev AND SOA. The fact that I see <*db:*...> tells me that you're using 10.1.3.1 JDeveloper. The correct solution is to upgrade your components.
-
I want to call Stored Procedure that return records and output parameter, from CVI
I can get output parrameter but when I want to get records stream I recieve following wrror:
function return value == -10. Native error code -2146824584 ADOBD.Recordset: Operation is not allowed when object is closedin Stored procedure I create table variable and and insert into string values
when I remove usage of table variable the error desappear -
try to create an installer in Labview 8.6. The build fail and I got this message.
CDK_CreateNewWizard_Invoke.vi.ProxyCaller >> CDK_CreateNewWizard_Invoke.vi >> CDK_InstallerConfiguration_Editor.vi
>> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi
Loading product deployment information
Loading product deployment information
Loading product deployment information
Loading product deployment information
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
Copying distribution 'NI LabVIEW 8.6.1 Datalogging and Supervisory Control Module' from:
D:\software\application\LabView\NI.LABVIEW\NI-Labview 8.6.1 DSC Module\ to: C:\Documents and Settings\Lidaoling\桌面
\Builds\generate waveform\My Installer\
Building deployment
Copying setup files
Setting merged database information
Setting product information
Setting developer part information
Starting final build
Validating...
Copying files...
Updating files...
Creating merged database...
*** Error: Windows SDK function returned an error. (Error code -12)
*** End Error Report
Done building deploymentSolution
-
ORA 28817 PLSQL function returned an error . when Access instance apex 4 2
Hello,
I have just upgraded from apex 4.1 to apex 4.2. Everything is fine except for this error that I get when I try to access Instance Setting on the Admin App (localhost/apex/apex_admin)
ORA-28817: PL/SQL function returned an errorWhat could be the problem ?? How can we fix it ..
I am working on Win server 2012 machine .. apex 4.2 with apex listener 2 deployed on Glassfish 3.1.2.
Best Regards,
FatehHello Fateh,
we are already aware of that problem, although it is not yet present on our Known Issues webpage. The reason for this error is that the new installation overwrites an instance-wide encryption key. Values in the instance preferences that were encrypted with the old value (the SMTP password and the wallet password) are invalid after the upgrade and decryption causes this error. As a work around, you can use the apex_instance_admin package to overwrite the invalid passwords.
The following code shows how decryption throws ORA-28817:
SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual
ERROR at line 1:
ORA-28817: PL/SQL function returned an error.
ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
ORA-06512: at "SYS.DBMS_CRYPTO", line 44
ORA-06512: at "APEX_040200.WWV_FLOW_CRYPTO", line 89
ORA-06512: at "APEX_040200.WWV_FLOW_INSTANCE_ADMIN", line 239You can fix this by entering new passwords:
SYS@a411> exec apex_instance_admin.set_parameter('SMTP_PASSWORD','my smtp password');
PL/SQL procedure successfully completed.
SYS@a411> exec apex_instance_admin.set_parameter('WALLET_PWD','my wallet password');
PL/SQL procedure successfully completed.
SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
APEX_INSTANCE_ADMIN.GET_PARAMETER('SMTP_PASSWORD')
my smtp password
1 row selected.Regards,
Christian -
Error: Windows SDK function returned an error. (Error code -12)
I receive this error when attempting to build an installer for my Labview application.
CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFDistCopyList_CopyItem.vi
Loading product deployment information
Loading product deployment information
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
Copying distribution 'NI-DAQ 8.0.1' from: D:\ to: C:\DARTS\ATS_TE_Project\DARTS_NI-DAQ_HP3561A_Dynamic_Signal_Analyzer\Installer\
*** Error: Windows SDK function returned an error. (Error code -12)
The system cannot find the file specified.
*** End Error Report
Done building deploymentI was able to get the install builder to build an installer for my
Application today 6/6/07. These are the steps I performed along with good amounts of trail and error.
1) I attempted to re-install the NI-DAQ 8.0.1 drivers however I didn't
perform this because it said it remove NI products which I didn't want
removed. But it didn't tell me what it would remove.
2) Instead, I copied the entire NI-DAQ 8.0.1 distribution to a directory on my hard drive.
3) I set the NI-DAQ 8.3 install build type to FULL in install builder.
4) In install builder when prompted for the components from the NI-DAQ
8.0.1 I browsed to the NI-DAQ 8.0.1 directory on the hard drive and
also un-checked the cache box.
5) It through another error this time saying it couldn't find
C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker71\LVBroker71Deu.mst (and,
LVBroker71Fra.mst, LVBroker71jpn.mst, LVBroker1071Deu,
LVBroker1071Fra.mst, LVBroker1071jpn.mst). It also could not find the
LVBroker1071 files in the
C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker1071 directory either.
6) I performed a search for these files and they did not exist in the
NI-DAQ 8.0.1 directory on my hard drive or the 8.0.1 CD I have.
7) These files DID exist in my NI-DAQ 8.3 directory located on my hard drive.
8) I copied the LVBrokerxxxx.mst (listed in 5 above) files from the
NI-DAQ 8.3 directory on my hard drive to the corresponding location in
the NI-8.0.1 directory on my hard drive.
9) This time when I rebuilt the installer for my application the build was successful.
Additional information:
When I built my application I only selected English for language
support. In Install builder in "Dialog Information I also selected
English.
I haven't attempted to try the installer on my target yet so I'm not
quite sure how successful I really was but at least I have a installer.
Let me know if this also works for you.
Rich... -
Change Notification Service for Detla functionality in DM
Hi All,
We are implementing DM(Deposit Management ) for BI.For extracting data from the standard extractor we have to do some Prerequisites(refer the link).
Can anyone help me to explain the functionality of change notification service for extraction(delta) the data for the DM datasource.
Please refer the link below.
http://help.sap.com/saphelp_nw70/helpdata/EN/07/1986bce40449a88d6ceb784ae0c424/frameset.htm
Regards,
SidHey ,
I have split the files into 4 but still its going to dump saying memory too low. i have also increased the memory parameters but no use. Is there any other way to download such huge file onto the presentation server.
Please let me know if there is any alternative solution for this.
Regards
Rock -
Deployment to the client is successful but the error reported within Clients "SCCM Software Center"
The software change returned error code 0x87D00324(-2016410844).
Also States on "Status" Past Due - Will be Retired"
Can't figure this one out and I did some googling with no success in finding a solution?
I am running an Adobe Flash install (.EXE)
Any help or direction would be greatly appreciated
RFHi,
Thank you for your response
""Wow6432Node is not valid on x86 systems."""
Yes, that I am aware of that.....Windows on Windows, for running x86 apps on x64 Windows<o:p></o:p>
When I first created the detection method I had only created the "WoW" Check
for Flash value in the reg, which was running against both x86 & x64 Win 7
systems, and forgot to include the x64 check/, either case, the error appeared
on the WOW check. Presently I have 2 "Detection Clauses" one for x86
and the second clause is x64 ( non WOW Path), and still receive the same erorrs
on both x86 & x64 systems. ( and x64 system have both reg entries since Win 7 has both x86 & x64 versions of IE)
Looking at the registry of an x64 Win 7 system I find the Adobe Flash registry entry is
located in both Wow6432Node and also in the x64 sections of the reg.....<o:p></o:p>
""""Also, why use the default value? I doubt there's anything in there (the default value is the
value display in a key in regedit with the name of
"@").""""<o:p></o:p>
When Default Value is selected the boxes/options below that allow for more detailed
information to be entered when performing the "reg check"? This is
where I had been able to enter specific Build/Version to look for, Flash
11.4.402.265, so that if it does not discover the build # it will proceed with
the install.....<o:p></o:p>
I figured having the option to check for Build/Version # would omit SCCM reinstalling on
systems that have build 11.4.402.265 already?<o:p></o:p>
From what I understand is that Adobe Flash x64 installs both versions x86 & x64 since Win 7 has both IE
x86 & IE x64 bit versions by default, and this would explain the Wow6432Node reg
entries and the true x64 reg entries in both locations when installing.
Overall, I am thinking I may be heading in the wrong direction in resolving this, as x86 & x64 versions install on the systems, so this tells me it is detecting when / what needs to be installed, the issue seems to be how it reports back after installing......
Looking further, I view the Content Status Page, and there reporting info in Asset Detail under [Success] all others { / In Progresss / Error /Unknown } has no info......
If this helps provide further details.....
Thanks
Regards,
Ron
RF -
How do you fix a R6025 pure virtual function call error? When I try to search for music, iTunes freezes & returns this message.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
How to return error from subscription function of an event
I am creating a subscription function for an oracle shipped event, oracle.apps.eng.cm.changeObject.submit. The event fires fine, i can do my custom validations in this function. In case the validations fail, I need to return an error message.
As per the guides and metalink documents, the way to do this is by returning 'ERROR' . But even though I return an ERROR, it does not error out. Whether I return SUCCESS or ERROR , the behaviour is the same.
While creating the subscription function, for On Error , I selected, "Stop And Rollback ".
Is it possible to return errors from the subscription functions.
thanks
SatyaYou shouldn't be passing ResultSet objects across the EJB layer.
Instead you should be passing data back and forth.
All of the data access code should be in one place in one class.
That class should open the connection, run the query, process/store the results of the query and then close the connection.
In this case you probably want to return a list of something to your jsp.
So your EJB call should be more like
public List<resultBean> check(String id){
ResultSet rs = Statement.("select * from table1 where id=123");
List resultList = new ArrayList();
while (rs.next()){
Bean myBean = new Bean();
myBean.setProperty1(rs.getString("field1"));
myBean.setProperty2(rs.getString("field2"));
resultList.add(myBean);
return resultList;
} -
AYUDA me sale --Error code-12-- Windows SDK function returned an erro
Buenas compañeros, necesito una super ayuda ya que quiero instalar en mi laptop q tiene wind7 y me sale este error:
Error: Windows SDK function returned an error (Error code-12)
End Error Report
Por favor ayudemen con alguna solucion para poder instalar el Labview 2008 8.6, ya que necesito hacer mi tesis.
Les estare agradecido por todo, estamos en contacto y graciasTry posting in english here
Translation
I need a super help because I want to install on my laptop has wind7 q and I get this error:
Error: Windows SDK function returned an error (Error code-12)
End Error Report
Please help me with some solution to install the Labview 2008 8.6, and I need to do my thesis. -
The software change returned error code 0x87D00607(-2016410105).
Hi to everyone. I am learning SCCM 2012 R2 using book Mastering SCCM 2012 R2 in addition to various video trainings and online resources. Currently I am focused on application deployment. I created Foxit Reader application - msi deployment type, distributed
it to DP and deployed it to device collection containing only one test computer (Win 7 Pro SP1 x64). Having done all these steps I went to client's Software Center and Application Catalog. Foxit Reader app is visible but as soon as I click on Install
button I receive an error:
The software change returned error code 0x87D00607(-2016410105).
I deployed Office 2013 a few days ago (although I am struggling to uninstall it silently) without problems. Meanwhile I did not change anything related to boundaries, boundary groups and DPs. I have only one SCCM 2012 R2 server (Primary stand-alone site).
I hate these situations when I follow along some official learning material such as this book, doing everything the same as it is done there and it does not work at all.
Unfortunately I can not afford official MS training, my company does not invest in their system engineers so we are on our own. It is nice to learn something by yourself but situations like this take too much time - probably on official training it would be
solved immediately.Its likely that your problem is being caused by incorrectly configured boundaries with Configuration Manager. There are quite a few blogs on this particular error, as an example:
http://www.vmadmin.co.uk/microsoft/64-mssystemcenter/350-sccm2012errorboundary87d00607
and
http://peerk.blogspot.com.au/2013/01/sccm-2012-app-stuck-at-downloading-0.html
or
http://heineborn.com/tech/application-installation-error-0x87d00607/
Take a look at your boundaries and make sure that you have one configured relative to the location of the Distribution Point that the client is trying to download content from.
Cheers
Damon
Maybe you are looking for
-
Do you have to have a person in contacts to IMessage them?
Do you have to have a person in contacts to iMessage them?
-
Hi, I have to put values(like bottleneck material 02) in delivery block field of va02 screen when there are multiple schedule lines ie vbapd-epmeh = 'X'. Can anybody guide me how to proceed. rgrds, yashwin
-
Calling a C++ MFC dialog from c code
Hi, I use MFC for the GUI and want to use a dialog class from within the C code. Is that possible? Any comments gratefully appreciated.
-
Hi everyone, I have recently installed a trial version of SDL Trados (a computer-assisted translation software) and at some point (when I try to create a new translation memory) this error message appears: Unable to cast object of type 'System.DBNull
-
i have four days using it and i have iOS 6.0.2, does someone have or had the same trouble?? please HELP im nervous, i bought it on Movistar