FormatDate function returning #MULTIVALUE error
I need to display the raw date returned by a Universe Element in DD-MMM-YYYY format into a cell positioned in the Page Header.
So used the below formula, which is returning "#MULTIVALUE" error to the cell.
=FormatDate([Bank Business Date]; "dd-MMM-yyyy"), where [Bank Business Date] is the Date element from the Universe whose data type is "date time"
However, I am not facing this issue in another report where the data type of the Universe Element is "date"
Any guidance is appreciated to address my above issue
Hi Rajeswarudu
Is this error arising in Webi or Universe ?
Make sure the dates should be not overlapped with the same values in a single cell
Similar Messages
-
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... -
I'm trying to write a PL/SQL function to dynamically return a query with varying # of columns. I've done this type of thing before wiith much success, however this is the first time I'm using a cursor for loop within a function to accomplish my task.
here is the error I get:
ORA-01858: a non-numeric character was found where a numeric was expected
Error ERR-1101 Unable to process function body returning query.
Mind you I have tested the PL/SQL from a SQL editor and it works fine. I'm confused.
Code is below.
Thanks in advance!
DECLARE
my_query varchar2(4000);
string1 varchar2(50) := 'select city, ';
string2 varchar2(4000) := '' ;
string3 varchar2(4000):= 'from
( select a.title, a.city, a.start_date, sum(a.total_stu) cnt
from sj_class_summary3 a
group by a.title, a.city, a.start_date
having a.title = :P4_COURSE )
group by title, city';
TYPE date_tab_type IS TABLE OF date INDEX BY PLS_INTEGER;
date_tbl date_tab_type;
i number;
BEGIN
i:=1;
for myrec in (select distinct start_date from sj_class_summary3
where start_date between :P4_START_DATE and :P4_END_DATE order by 1) loop
date_tbl(i) := myrec.start_date;
string2 := string2 || ' max( decode( start_date, ''' || date_tbl(i) || ''', cnt,0) ) "' || date_tbl(i) || '", ';
i := i+ 1;
end loop;
string2 := SUBSTR(string2,1,LENGTH(string2)-2);
string2 := string2 || ' ';
my_query := string1 || string2 || string3;
return my_query;
END;Hi Bob,
you also have another date to character to date conversion in:
decode( start_date, ''' || date_tbl(i) || ''', cnt,0)
does this need to be:
decode( start_date, to_date(''' || to_char(date_tbl(i), 'dd/mm/yyyy') || ''', ''dd/mm/yyyy''), cnt,0)
Regards
Michael -
Hi,
I use LabWindows CVI 8.5 to build the D-kit in windows xp os.when i try to build the D-kit it is throwing the following error.i have attached the error log along with this post.request to provide solution to over come this issue ASAP.it is very urgent.Thanks in advance
Regards
Parthipan
Attachments:
errorlog.txt 1 KBI have not a direct experience on distribution kit, but the error seems related to the absence of NI-DMM 3.0.2 disk in your CD reader (D: could it be the cause?
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
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. -
#MULTIVALUE error when I add Text in a cell
Hi,
There is a funny error occurring in the report.
I have build this report on Excel sheet. The sheet has ONLY 4 rows,(and it always will have 4 rows).
Following is the format of the Excel sheet:
Plant Division Comment1 Comment2 Week
1 10 A E 4
2 10 B F 4
3 10 C G 4
1 20 D H 4
In the report I have made a connection on the Excel sheet. I have made made the fields Plant,Division,Comment1 and Comment2 as Dimensions and Week as Measure.
In 4 different cells, with 4 combinations on Plant and Division, I want the following output:
- Comment1: A
- Comment2: E
When I put the formula: =([Comment1] where ([Plant]="1" and [Division]="10")) + ([Comment2] where ([Plant]="1" and [Division]="10"))
it returns Correct Results.
But when I add Text values in the formula it returns #MULTIVALUE error:
Example: ="- Comment1: "+ ([Comment1] where ([Plant]="1" and [Division]="10"))
Where am I going wrong?
Thanks,
AmritaHi Amrita,
This is because when you are going only with the formula, it will provide you the value for one cell and blank for other.
But when you are going with the comments as well, you will get 4 values for this. (one for each row)
1. -Comment1:
2. -Comment1:
3. -Comment1:
4. -Comment1: A
So when you are selecting this in a single cell it will throw you #Multivalue error.
Hope it is understood.
Regards,
Subrat -
Standalone decrypt returning an error
Dear All,
As the part of MAC check mechanism,
We need to decrypt the original data(un encrypted).
But we are getting an error .Can any one suggest on this?
SQL> DECLARE
2 encryption_type PLS_INTEGER := -- total encryption type
3 DBMS_CRYPTO.ENCRYPT_AES128
4 + DBMS_CRYPTO.CHAIN_CBC
5 + DBMS_CRYPTO.PAD_PKCS5;
6 decrypted_raw RAW (2000);
7 BEGIN
8 decrypted_raw := DBMS_CRYPTO.DECRYPT( src => 'FABC12345',
9 typ => encryption_type,
10 key => hextoraw('A1234FEB98491234A1234FEB98491234'));
11 DBMS_OUTPUT.PUT_LINE ( 'Decrypted value: ' || decrypted_raw);
12 END;
13 /
DECLARE
encryption_type PLS_INTEGER := -- total encryption type
DBMS_CRYPTO.ENCRYPT_AES128
+ DBMS_CRYPTO.CHAIN_CBC
+ DBMS_CRYPTO.PAD_PKCS5;
decrypted_raw RAW (2000);
BEGIN
decrypted_raw := DBMS_CRYPTO.DECRYPT( src => 'FABC12345',
typ => encryption_type,
key => hextoraw('A1234FEB98491234A1234FEB98491234'));
DBMS_OUTPUT.PUT_LINE ( 'Decrypted value: ' || decrypted_raw);
END;
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 line 9
Please suggest on the same.
Regards,This is the Forms forum. Go the the pl/sql forum for this question.
-
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 -
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 -
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; -
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! -
Multivalue error when using the previous() function
I am getting a multivalue error when using the previous() function on a dimension object in the report. I thought that the previous function was supposed to look at the current report and then look at the previous record's contents. How could this possibly give me a multivalue error when the value is clearly output in the previous row? Anyone have any ideas?
By the way, this is a valuable function for the types of reports that I design. The next() function would be even more valuable.
Thanks for your help.Hi Michael,
Could you please test the following solutions it might help you to resolve the issue.
Solution1:
Use slice and dice to reset all the tables that have #multivalue in it. The only problem with this workaround is they have to do the formatting manually.
Solution2:
Also, test the issue by changing the object to dimension if it is a measure or to measure if it is a dimension.
Regards,
Sarbhjeet Kaur -
Error with function returning "multiple" values
Hi
i am trying to write a function to return "multiple" values
however, it returned the following error during compilation
Compilation errors for FUNCTION sch1.myfn
Error: PLS-00382: expression is of wrong type
Line: 19
Text: RETURN V_res;
Error: PL/SQL: Statement ignored
Line: 19
Text: RETURN V_res;
ques :
1 - is there a need to always declare a table ? as it'll only return a single record with multiple columns
CREATE OR REPLACE TYPE result as table of result_t;
CREATE OR REPLACE TYPE result_t as object
(user varchar2(100), comments varchar2(4000));
CREATE OR REPLACE FUNCTION myfn (IN_ID IN VARCHAR2, IN_BEGIN IN DATE) RETURN result IS
type V_res_t is RECORD (user varchar2(100), comments varchar2(4000));
V_res V_res_t;
BEGIN
select a.user, a.comment
into V_res.user, V_res.comments
from view1 A,
(select distinct id,
begin_time,
max(time) over(order by time desc) max_time from view2 b
where id = IN_LOTID
and begin_time = IN_BEGIN) b
where a.id = b.id
and a.begin_time = b.begin_time
and a.time = max_time
and a.id = IN_ID
and a.begin_time = IN_BEGIN;
RETURN V_res; --> this is the line that the system keep complaining
END;
Note : pls ignore whether the return results is correct but i am expecting it to always return a single row
pls advise
tks & rgdsAnd if you really want to return a type as a table of, work with PIPELINED function :
SQL> CREATE OR REPLACE TYPE result_t as object
2 (user# varchar2(100), comments varchar2(4000));
3 /
Type created.
SQL> CREATE OR REPLACE TYPE result as table of result_t;
2 /
Type created.
SQL>
SQL> CREATE OR REPLACE FUNCTION myfn (IN_ID IN VARCHAR2, IN_BEGIN IN DATE) RETURN result
2 pipelined is
3 user# varchar2(100);
4 comments varchar2(4000);
5 BEGIN
6 pipe row (result_t(user#,comments));
7 return;
8 END;
9 /
Function created.
SQL>PS: there is non sense to use pipelined function in my example, it is just an example to return a type as table.
Nicolas.
Maybe you are looking for
-
11i valuation of foreign currency expenses
Hi everyone, The Polish Legal requirement of valuation of foreign currency expenses is to value of these expenses and exchange rate differences at currency cost layers (by historical rates), not at current exchange rate! It works exactly the same as
-
Image border problem using JAI
I've written some very simple code to scale an image down to a small thumbnail in JPG format but the quality is quite horrible. Is there a way of making it look nicer? src = JAI.create("fileload","filepath") ParameterBlock params = new ParameterBlock
-
What is Retro active rebates and how there are configured
Hi, What it means by retro active rebates and how there are configured. Please also explain how rebates settlement will happen... Regards Sankar
-
Does the entire query always have to execute?
We have a large (100 line) query that is used for detecting bad data. The query looks like select * from table where clause1 is true -- for example, start_date is null OR clause2 is true -- end_date is null OR clause3 is true -- start_year < 1970 . 1
-
CVI debugger reports dynamic memory corrupt
Hi, There is a problem most likely between debugger and CVIXML group of functions. When I operate even one of CVI examples involving population of tree control out of XML the following function corrupting heap: CVIXMLGetElementValue (