Error in Delare/Begin/End block
Dear all
i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
I should say that using the structure delcare,begin,end is mandatory for me here.
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;but i get this error
Error starting at line 3 in command:
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;
Error report:
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
So would you please rewrite the query?
im using oracle 11.2.0.2
thank you in advance.
best,david
1003209 wrote:
Dear all
i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
I should say that using the structure delcare,begin,end is mandatory for me here.
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;but i get this error
Error starting at line 3 in command:
DECLARE
BEGIN
SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
join user_objects uo
on ua.object_id=uo.object_id
WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
END;
Error report:
ORA-06550: line 4, column 1:
PLS-00428: an INTO clause is expected in this SELECT statement
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
So would you please rewrite the query?
im using oracle 11.2.0.2
thank you in advance.
best,davidHi David,
The query will throw error if the schema where you are executing has more than "1" function or procedure in the system.
Its not clear in your requirement.
Assuming you want to display the output
SQL> set serveroutput on
SQL> DECLARE
2 CURSOR cur_obj IS
3 SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE
4 FROM user_arguments ua
5 join user_objects uo
6 on ua.object_id=uo.object_id
7 WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
8 BEGIN
9 FOR rec_obj IN cur_obj LOOP
10 dbms_output.put_line('OBJECT_NAME:'||rec_obj.object_name||' '||'ARGUMENT_NAME:'||' '||rec_obj.a
rgument_name||' '||'OBJECT_TYPE:'||rec_obj.data_type);
11 END LOOP;
12 END;
13
14
15 .
SQL> /
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: OBJECT_TYPE:NUMBER
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: REGKEY OBJECT_TYPE:NUMBER
OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: PARTNERKEY OBJECT_TYPE:NUMBER
OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: OBJECT_TYPE:NUMBER
OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: ACCOUNT_KEY
OBJECT_TYPE:NUMBER
OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: OBJECT_TYPE:VARCHAR2
OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: INPUT OBJECT_TYPE:VARCHAR2
OBJECT_NAME:GSK_PB_SHOW ARGUMENT_NAME: OBJECT_TYPE:NUMBER
...........Regards,
Achyut K
Similar Messages
-
SQLplus command in a begin/end block
Hi all,
is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?
thanks in advance and regards
Johnuser10899797 wrote:
is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?Just a quick explanation why not.
That begin..end block is called an anonymous (nameless, unlike a procedure or function) PL/SQL block. The client (in this case, SQL*Plus) transmits the block to Oracle.
The server process servicing that client receives the block, parses it and executes it.
This server process only understands SQL and PL/SQL. Not any language.
So just as you cannot use .Net/Cobol/Visual Basic/Java/etc commands inside that PL/SQL anonymous block, you cannot use SQL*Plus commands in it.
Part of the confusion regarding SQL*Plus is using substitution variables. This enables you to create an anonymous PL/SQL block in SQL*Plus that contains substitution variables.
However, SQL*Plus itself does a very primitive parse of that block before it fires it off at the server - it detects these substitution variables and replace them with the assigned values for these variables. It then transmits this resulting block to the Oracle server for parsing and execution.
Just remember that PL/SQL is a server-side language that runs inside an Oracle server process and that should clear most confusion in this regard (including whether PL/SQL can read keyboard data or write to a client PC's harddrive, or interactively display progress status on a client monitor). -
How to start a trigger in a begin/end block ?
Hi all, I need to start a trigger inside a block begin end in order to manage errors.
The trigger is created inside trigger_faef_c.sql as
CREATE OR REPLACE TRIGGER TRIGGER_FAEF
and I would like to start the trigger in another file "create_trigger.sql" with this format:
BEGIN
@trigger_faef_c;
EXCEPTION WHEN OTHERS THEN
dbms_output.Put_Line('#255#> Error in trigger_faef_c ' || Sqlerrm );
END;
I have this error executing the script:
PLS-00103: Encountered the symbol "@" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "<an identifier>" was substituted for "@" to continue
Can anyone help me please ?
I have to use EXCEPTION WHEN OTHERS THEN.
Thansk
ErikHi Erik,
I think you mean Create the trigger(?), i.e, executing the trigger_faef_c.sql script.
SQL*Plus doesn't have exception handling (Someone please correct me if I'm wrong).
One way to circumvent that is to rewrite the script itself to PL/SQL. Something like:
Declare
stmt varchar2(32767);
Begin
stmt := 'Create Trigger ....';
Execute Immediate stmt;
Exception
When Others Then
--Do what?
End;
/And then just execute that
@trigger_faef_c.sqlDon't know if you want to go that way. I use it myself to be able to run the same deployment scripts multiple times, without causing various failures due to "Table Already Exists" and so on.
But, for triggers, I would never do that, since this has CREATE OR REPLACE.
For triggers, I just (This time script is plain static SQL)
WHENEVER SQLEXCEPTION CONTINUE
SPOOL deployment.log
@trigger_faef_c.sql
@other_script.sql
SPOOL OFF
EXITRegards
Peter -
Sequence of begin/end blocks.Delete only if updated.Updte only if row exist
Here is a sequence of events I need to perform.
1) I need to update a table with the systime for a given id.
2) Commit (so that the systime is stored before I delete)
3) Once updated, delete row from that table for the given id so that the row moves to the audit table with the updated systime - added in step 2.
For this I need to keep the following things in mind:
a) Update only if that particular id (passed as IN parameter to the SP) exists. That is validate existence before updating/deleting.
Here are questions ralted to the above scenario:
1) How is this kind of validation usuallty performed?
2) Update and delete will be in 2 separate begin exception end block?
Example
begin
begin
update...
commit
exception
rollback
end;
delete...
commit
exception
rollbacl
endHowever if update fails for some reason, I do not wish to come to the delete option.
How can I take care of that?
Edited by: [email protected] on Oct 20, 2008 9:47 AM
Edited by: [email protected] on Oct 20, 2008 9:48 AMMass25 wrote:
The reason why I commit after doing the update is so that when I delete, what I have updated goes to the audit table.But that would only be necessary if it was a seperate session trying to read the data.
If you update data on a table then your own session will see that data at existing on the table whether you have committed it or not, whilst other sessions will only see that data once it is committed.
A commit should be issued when it logically makes sense, not just to try and ensure that the data is on the table for yourself.
What would happen if you update some data, commit it, someone else reads it in their session and then you go and delete it? They have read your updated data whereas if they do a read before you delete then it's more logical that they should have read the pre-updated data.
It seems like you are trying to incorporate more steps than are necessary to perform a simple task. -
Want to ignore exception in a begin-end block
Hi,
For a given plsql block (inside a procedure or function for example) I want to ignore a certain oracle exception. Ignore as in, it should not be raised at all.
What I want to do is something like this -
begin (tell somehow to NOT raise NO Data Found (NDF) )
bq. select <something> \\ into <some Variable> \\ from <somewhere>; \\ if sql%rowcount = 0 \\ then \\ +<take action meant for NDF>;+ \\ end if;
end;
Any Ideas ?
cheers
raghav..Justin,
If you have queries that can properly return 0 or more rows, that is the natural way to implement that. It won't raise an exception if no data is found, it won't raise an exception if multiple rows are found.How can I write a query that would not raise an exception when 0 rows are returned ?
I'm not clear on how a design can "not like the NDF as such". Why would you have to convert that to a business exception and pass it along to the caller? Why wouldn't you just handle the exception in your code if you expect that the NO_DATA_FOUND exception is valid.
The design doesnt like NDF just because the end user has to receive a better response than "No Data was found". We want to include lots of contextual info about the error and the location etc. Even though the NDF is valid, I wont pass it along as such, I would probably convert it to a business exception which would probably say something like "no entities found for end client <ID>" etc..
cheers
raghav.. -
Performance: Cursor declaration versus explicit query in BEGIN/END block
Hi guys!
Anyone knows if declare an explicit cursor inside a pl/sql block is faster than using a cursor declaration, and how fast it its?
Which block runs faster? And how fast? ( once, twice, once and a half ? )
Block1:
DECLARE
CURSOR cur_test (p1 NUMBER) IS
SELECT field1, field2 FROM table WHERE field0 = p1;
vf1 VARCHAR2(1)
vf2 NUMBER;
n NUMBER := 0;
BEGIN
OPEN cur_test ( n );
FETCH cur_test INTO vf1, vf2;
CLOSE cur_test;
END;
Block2:
DECLARE
vf1 VARCHAR2(1)
vf2 NUMBER;
n NUMBER := 0;
BEGIN
BEGIN
SELECT field1, field2
INTO vf1, vf2
FROM table WHERE field0 = n;
EXCEPTION
WHEN others THEN
null;
END;
END;
I have LOOP in a cursor and may open/fetch/closes in this loop. I´m wondering how fast would it be if I change the open/fetch/closes to explicit query blocks...
Thanks!
MuriloIf you expect your qurey to return a single row, you would generally want to use a SELECT ... INTO. You'd only want to use a cursor if you expect to return multiple rows of data.
If you are doing this in a loop, I would strongly suspect that you should be letting Oracle join the tables in SQL rather than doing your own pseudo-join logic in PL/SQL. Letting SQL do the work of joining tables is going to generally be a sustantial performance difference. The difference between the two blocks you posted will be marginal at best.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Using nested BEGIN..END Block....
Hi,
I am unable to use nested BEGIN..ENF Block.See error defined below
BEGIN
BEGIN
SELECT xcod_code INTO v_cmpy_xcod_code
FROM ext_code_type
WHERE xcod_code = sdiStruct.cmpy_xcod_code
AND inst_borg_ind = 'B';
EXCEPTION WHEN NO_DATA_FOUND
THEN
erm := 'CMPY XCOD CODE not found with indicator of B';
RAISE err;
END;
BEGIN
SELECT borg_num,borg_code INTO v_borg_num,v_borg_code
FROM borg_code
WHERE borg_code = sdiStruct.cmpy_id
AND xcod_code = sdiStruct.cmpy_xcod_code;
EXCEPTION WHEN NO_DATA_FOUND
THEN
erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
RAISE err;
END;
EXCEPTION
WHEN err THEN
RAISE_APPLICATION_ERROR(-20001,erm);
END;The ERROR I get is this
LINE/COL ERROR
113/3 PLS-00103: Encountered the symbol "RAISE" when expecting one of
the following:
. ( * @ % & = - + ; < / > at in is mod not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like
between ||If I remove the 2nd nested BEGIN..END BLOCK,It works fine.
Cant I write multiple BEGIN..END BLOCK??The error that you are receiving indicates that it happened on line 113 of your code, so you have obviously left out a whole lot. The portion of the code that you posted works fine, as long as you have all of the correspoinding pieces. I don't know if sdistruct is a package or a row of a cursor or what and I don't know your table structure, so I have just made something up, in order to demonstrate below. In the future, it helps if you include things like complete code and table structure and Oracle version.
scott@ORA92> CREATE TABLE ext_code_type
2 (xcod_code NUMBER,
3 inst_borg_ind VARCHAR2(1))
4 /
Table created.
scott@ORA92> CREATE TABLE borg_code
2 (borg_num NUMBER,
3 borg_code NUMBER,
4 xcod_code NUMBER)
5 /
Table created.
scott@ORA92> CREATE OR REPLACE PACKAGE sdiStruct
2 AS
3 cmpy_xcod_code NUMBER := 1;
4 cmpy_id NUMBER := 1;
5 END;
6 /
Package created.
scott@ORA92> SHOW ERRORS
No errors.
scott@ORA92> CREATE OR REPLACE PROCEDURE your_proc
2 AS
3 v_cmpy_xcod_code ext_code_type.xcod_code%TYPE;
4 v_borg_num borg_code.borg_num%TYPE;
5 v_borg_code borg_code.borg_code%TYPE;
6 erm VARCHAR2(80);
7 err EXCEPTION;
8 BEGIN
9 BEGIN
10 SELECT xcod_code
11 INTO v_cmpy_xcod_code
12 FROM ext_code_type
13 WHERE xcod_code = sdiStruct.cmpy_xcod_code
14 AND inst_borg_ind = 'B';
15 EXCEPTION
16 WHEN NO_DATA_FOUND THEN
17 erm := 'CMPY XCOD CODE not found with indicator of B';
18 RAISE err;
19 END;
20 --
21 BEGIN
22 SELECT borg_num,borg_code
23 INTO v_borg_num,v_borg_code
24 FROM borg_code
25 WHERE borg_code = sdiStruct.cmpy_id
26 AND xcod_code = sdiStruct.cmpy_xcod_code;
27 EXCEPTION
28 WHEN NO_DATA_FOUND THEN
29 erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
30 RAISE err;
31 END;
32 EXCEPTION
33 WHEN err THEN
34 RAISE_APPLICATION_ERROR(-20001, erm);
35 END your_proc;
36 /
Procedure created.
scott@ORA92> SHOW ERRORS
No errors.
scott@ORA92> EXECUTE your_proc
BEGIN your_proc; END;
ERROR at line 1:
ORA-20001: CMPY XCOD CODE not found with indicator of B
ORA-06512: at "SCOTT.YOUR_PROC", line 34
ORA-06512: at line 1
scott@ORA92> INSERT INTO ext_code_type VALUES (1, 'B')
2 /
1 row created.
scott@ORA92> EXECUTE your_proc
BEGIN your_proc; END;
ERROR at line 1:
ORA-20001: No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.
ORA-06512: at "SCOTT.YOUR_PROC", line 34
ORA-06512: at line 1
scott@ORA92> INSERT INTO borg_code VALUES (1, 1, 1)
2 /
1 row created.
scott@ORA92> EXECUTE your_proc
PL/SQL procedure successfully completed. -
How to handle the plsql error occuring in the exception block
We know how to handle exceptins which occur in BEGIN block.
But am unable to catch the exception in the exception block. Am writing an erroeneous code so that the control will go to exception block and there is also one plsql error, but am unable to handle that error, it's returning the error to the calling environment.
DECLARE
cnt NUMBER(5):=0;
BEGIN
select 'debalina' INTO cnt from dual;
DBMS_OUTPUT.PUT_LINE(to_char(cnt));
EXCEPTION
WHEN invalid_number THEN
DBMS_OUTPUT.PUT_LINE('error has occured inside begin block');
cnt:='deba';
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('error has occured inside begin block');
END;
please suggest me how to catch this exception?Hi,
DECLARE
cnt NUMBER(5):=0;
BEGIN
select 'debalina' INTO cnt from dual;
DBMS_OUTPUT.PUT_LINE(to_char(cnt));
EXCEPTION
WHEN invalid_number THEN
DBMS_OUTPUT.PUT_LINE('error has occured inside begin block');
cnt:='deba';
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('error has occured inside begin block');
END;
First of all your namee exception which you have posted i.e invalid_number itself is wrong.
You need to use named exception VALUE_ERROR for catching the exception in the main block.
SQL> DECLARE
2 cnt NUMBER(5):=0;
3 BEGIN
4 select 'debalina' INTO cnt from dual;
5 DBMS_OUTPUT.PUT_LINE(to_char(cnt));
6 EXCEPTION
7 WHEN Invalid_number THEN
8 DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
9 end;
10 /
DECLARE
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 4
SQL> DECLARE
2 cnt NUMBER(5):=0;
3 BEGIN
4 select 'debalina' INTO cnt from dual;
5 DBMS_OUTPUT.PUT_LINE(to_char(cnt));
6 EXCEPTION
7 WHEN VALUE_ERROR THEN
8 DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
9 end;
10 /
error has occured inside main block
PL/SQL procedure successfully completed.Your doubt regarding catching the exception in exception block, you can execute as below, by nesting a Begin block inside the exception block itself.
SQL> DECLARE
2 cnt NUMBER(35):=0;
3 BEGIN
4 select 'debalina' INTO cnt from dual;
5 DBMS_OUTPUT.PUT_LINE(to_char(cnt));
6 EXCEPTION
7 WHEN Value_error THEN
8 DBMS_OUTPUT.PUT_LINE('error has occured inside main block');
9 Begin
10 cnt:='deba';
11 Exception
12 WHEN OTHERS THEN
13 DBMS_OUTPUT.PUT_LINE('error has occured inside exception block');
14 End;
15 END;
16 /
error has occured inside main block
error has occured inside exception block
PL/SQL procedure successfully completed.Hope your doubt is clear.
Twinkle -
Getting a error invoking web service action block
HI
I am first time using web service action block in xmii. I am using it for executing my transaction . But it is giving error stating that
Error invoking web service action block. I dont know please help me out?Hi Mike,
I am using xMII - 11.5 version and with java 1.6.0_07. In My system i have installed service pack 3. When ever i use webservice action block and execute it, It gives error stating .
[INFO ]: Execution Started At: 11:07:16
[DEBUG]: 00000.01600 Begin Transaction 'TMP83E3D064-F6E8-4E3D-647F-6CE6B41C9E83'
[DEBUG]: 00000.01600 Begin Sequence Sequence : ()
[DEBUG]: 00000.01600 Begin Action WebService_0 : ()
[ERROR]: Error Invoking Web Service Action: null
[ERROR]: ACTION FAILED: End Action WebService_0 : ()
[DEBUG]: 00001.42200 Begin Sequence Sequence_0 : ()
[DEBUG]: 00001.42200 Begin Action Tracer_0 : ()
[INFO ]: <?xml version="1.0" encoding="UTF-8"?><XacuteResponse xmlns="http://www.lighthammer.com/Xacute"><Rowsets DateCreated="2000-01-01T00:00:00" EndDate="2000-01-01T00:00:00" StartDate="2000-01-01T00:00:00" Version=""><FatalError/><Messages><Message/></Messages><Rowset><Columns><Column Description="" MaxRange="0.00" MinRange="0.00" Name="" SQLDataType="0" SourceColumn=""/></Columns><Row><Output/></Row></Rowset></Rowsets></XacuteResponse>
[DEBUG]: 00001.43700 End Action Tracer_0 : ()
[DEBUG]: 00001.43700 End Sequence Sequence_0 : ()
[DEBUG]: 00001.43700 End Sequence Sequence : ()
[DEBUG]: 00001.43700 End Transaction 'TMP83E3D064-F6E8-4E3D-647F-6CE6B41C9E83'
[INFO ]: Execution Completed At: 11:07:17 Elapsed Time was 1421 mS
please help me out . -
LOV Select List How to create query with begin & End in LOV
Dear All,
i am using Apex 3.2 ver
i want to use below code in LOV select list
BEGIN
IF UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
WHERE NVL(ACTIVE_FLG,'N') = 'Y'
AND NVL(GUIDE_FLAG,'N') = 'Y'
and CITY_CODE LIKE NVL (:P23_CITY_CODE, '%')
ORDER BY 2
ELSIF
UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
SELECT NAME D, CODE R
FROM HOTEL_MAS
WHERE NVL (ACTIVE_FLG, 'N') = 'Y'
AND CITY_CODE LIKE NVL(:P23_CITY_CODE,'%')
ORDER BY PRIORITY
END IF;
END;When i put this code in my LOV Select list Section then display me Error
Not Found
The requested URL /pls/apex/f was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at tidevserv1 Port 7777
How to Resolve it.Hi Vedant,
you dont need to use begin ...end block
Try the Below code
IF UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
RETURN
'SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
WHERE NVL(ACTIVE_FLG,''N'') = ''Y''
AND NVL(GUIDE_FLAG,''N'') = ''Y''
and CITY_CODE LIKE NVL (:P23_CITY_CODE, ''%'')
ORDER BY 2' ;
ELSIF UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
RETURN
'SELECT NAME D, CODE R
FROM HOTEL_MAS
WHERE NVL (ACTIVE_FLG, ''N'') = ''Y''
AND CITY_CODE LIKE NVL(:P23_CITY_CODE,''%'')
ORDER BY PRIORITY' ;
END IF;In this way you can create conditional LOVs ,
Hope this will helps you.
Regards,
Jitendra -
Code 91 - Caused Error: (Object variable or With block variable not set)
Hi,
We are using FDM 9.3.1. We have enabled batch processing.
We are having following process being followed
- Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
- Batch processing is set to serial and processlevel set to Up-To-Check
- We had following five files created for Location - EMAFF100
i. 1_EMAFF100_ACT_May-2011_RR.txt
ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
v. 1_EMAFF100_ACT_Sep-2011_RR.txt
Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
When we checked the view error log from tool menu we found following
** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
ERROR:
Code......................................... 91
Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
Procedure.................................... clsBatchLoader.mFileCollectionProcess
Component.................................... upsWBatchLoaderDM
Version...................................... 931
Thread....................................... 5600
IDENTIFICATION:
User......................................... ncreighton
Computer Name................................ HYAPSDEV1
App Name..................................... EMATTEST
Client App................................... WebClient
CONNECTION:
Provider..................................... ORAOLEDB.ORACLE
Data Server..................................
Database Name................................ hydev_serv
Trusted Connect.............................. False
Connect Status.. Connection Open
GLOBALS:
Location..................................... EMAFF100
Location ID.................................. 762
Location Seg................................. 16
Category..................................... ACT
Category ID.................................. 13
Period....................................... Jun - 2011
Period ID.................................... 30/06/2011
POV Local.................................... False
Language..................................... 1033
User Level................................... 1
All Partitions............................... False
Is Auditor................................... False
We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
Thanks in advance.Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Batch Processing error: Object variable or With block variable not set - 91
We are experiencing the following error when trying to execute the FDM Batch Processing of files in our UAT environment. This error is not occuring in our DEV environment. I have seen this error before when the data file had been left open and FDM could not access the file, so it appears this error is usually due to file permissions. However, this time none of the files are open, and as far as we can see, FDM should have full access to the OpenBatch and Inbox folders etc.
Does anyone please have any suggestions, particularly on what account FDM will carry out the various tasks? Would it use a system account?
Error:
"Object variable or With block variable not set - 91"
FDM Log:
** Begin FDM Runtime Error Log Entry [2012-07-06 16:07:09] **
ERROR:
Code............................................. 75
Description...................................... Path/File access error
Procedure........................................ clsBatchLoad.fFileCollectionCreate
Component........................................ upsWBatchLoaderDM
Version.......................................... 1112
Thread........................................... 5828
IDENTIFICATION:
User............................................. admin
Computer Name.................................... *******
App Name......................................... *******
Client App....................................... WorkBench
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... *******
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... *******
Location ID...................................... 748
Location Seg..................................... 2
Category......................................... *******
Category ID...................................... 14
Period........................................... *******
Period ID........................................ 02/07/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... FalseI can confirm that there is definitely data present in our data files in this case.
Please note that this error only occurs when using the Batch Processing functionality of FDM Workbench (which requires files to be placed in the OpenBatch subfolder of the Inbox). I can load individual files fine when using the FDM Web Client.
As part of the first step of the batch load process, FDM Workbench moves files from the OpenBatch folder to a new folder which it creates in the Inbox\Batches directory. However, it is not even managing to do this, and gives the error below.
We have tried to share the OpenBatch folder, to allow specific users access to drop files into this folder. Consequently, I believe suggests a security problem on the OpenBatch folder itself (please see original post). I have been told privileges should be sufficient for FDM to make use of this folder too, however I suspect this is not the case at present.
In the meantime, please let me know if this could be due to other causes. -
How to hide the selection-screen Begin of Block
Hi,
I copied the standard program into my new 'Z' prog.
But i dont need a selection-screen begin of block and end of block i.e. I have to hide the entire block from the output screen.
I can delete the selction-screen block , but the field which is present inside the block is used in several places of program
and i dont know the purpose of the fields.
Can any one help me to hide the block.
Thanks in advanced
Regards,
DarshanaHi
Use keyword NO-DISPLAY with the select options or parameter which u want to hide in the selection screen.
No need to comment statements Begin of block or end of block.
SELECTION-SCREEN BEGIN OF BLOCK ss_01 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_month FOR isellist-month no-display .
PARAMETERS: p_email LIKE somlreci1-receiver no-display.
SELECTION-SCREEN END OF BLOCK ss_01.
It will work this way.
Thanks -
Buffer I/O error on device hda1, logical block 81934
I getting the follow erro message when I session into the CUE of the UC520. All advice appreciated. I read the similar post, however I'm not given any prompts to make a selection.
Buffer I/O error on device hda1, logical block 81934
Processing manifests . Error processing file exceptions.IOError [Errno 5] Input/output error
. . . . . . Error processing file zlib.error Error -3 while decompressing: invalid distances set
. . . . . . . . Error processing file zlib.error Error -3 while decompressing: invalid distances set
. . complete
==> Management interface is eth0
==> Management interface is eth0
malloc: builtins/evalfile.c:138: assertion botched
free: start and end chunk sizes differ
Stopping myself.../etc/rc.d/rc.aesop: line 478: 1514 Aborted /bin/runrecovery.sh
Serial Number:
INIT: Entering runlevel: 2
********** rc.post_install ****************
INIT: Switching to runlevel: 4
INIT: Sending processes the TERM signal
STARTED: cli_server.sh
STARTED: ntp_startup.sh
STARTED: LDAP_startup.sh
STARTED: SQL_startup.sh
STARTED: dwnldr_startup.sh
STARTED: HTTP_startup.sh
STARTED: probe
STARTED: superthread_startup.sh
STARTED: ${ROOT}/usr/bin/products/herbie/herbie_startup.sh
STARTED: /usr/wfavvid/run-wfengine.sh
STARTED: /usr/bin/launch_ums.sh
Waiting 5 ...Buffer I/O error on device hda1, logical block 70429
Waiting 6 ...hda: no DRQ after issuing MULTWRITE
hda: drive not ready for command
Buffer I/O error on device hda1, logical block 2926
Buffer I/O error on device hda1, logical block 2927
Buffer I/O error on device hda1, logical block 2928
Buffer I/O error on device hda1, logical block 2929
Buffer I/O error on device hda1, logical block 2930
Buffer I/O error on device hda1, logical block 2931
Buffer I/O error on device hda1, logical block 2932
Buffer I/O error on device hda1, logical block 2933
Buffer I/O error on device hda1, logical block 2934
REISERFS: abort (device hda1): Journal write error in flush_commit_list
REISERFS: Aborting journal for filesystem on hda1
Jun 17 16:36:11 localhost kernel: REISERFS: abort (device hda1): Journal write error in flush_commit_list
Jun 17 16:36:11 localhost kernel: REISERFS: Aborting journal for filesystem on hda1
Waiting 8 ...MONITOR EXITING...
SAVE TRACE BUFFER
Jun 17 16:36:13 localhost err_handler: CRASH appsServices startup startup.sh System has crashed. The trace buffer information is stored in the file "atrace_save.log". You can upload the file using "copy log" command
/bin/startup.sh: line 262: /usr/bin/atr_buf_save: Input/output error
Waiting 9 ...Buffer I/O error on device hda1, logical block 172794
INIT: Sending processes the TERM signal
INIT: cannot execute "/etc/rc.d/rc.reboot"
INIT: no more processes left in this runlevelThe flash card for CUE might be corrupt. Try and reinstall CUE and restore from backup to see if that fixes it. If it doesnt, try a different flash card.
Cole -
Demuxing error right at the end of the iDVD process - iMovie file bad?
Hello!
I am getting a demuxing error right at the end of the iDVD process. I am posting here because one comment I received is that the issue could be the iMovie file?
I am using:
QT 7.6.2
iMovie 6.0.3
iDVD 7.0.4
OSX 10.5.7
Are these compatible?
All my "apps" are on a 10K main drive, the files on another 7.5k - have been using this for two months with no problems.
It is a big project pulling a number of clips from 4 imported VHS (I have been doing this successfully for years). I do a lot of "split clip of video head" to distinguish the clips.
The first project using about 25% of content worked fine creating a VIDEO_TS file (I always use pro quality setting). The second project trying to use another ~25% gave the aforementioned errors. One symptom is went I begin to create DVD process, the Time Remaining is 5+ hours, which is higher than normal. After about 20mins processing it drops down to the usual 2hr or so.
I create the iDVD project first, then import video.
To resolve: I am making sure I dont have index points close to anything etc., reinstalled both apps, fix this and that, removed pref file, themes, ALL the fixes I could find on all the discussions.
I even exported all the project clips as one .dv file, didnt split at video head, just put index points, and entered into new iMovie project, and started over. No good.
How can I tell if the iMovie file is bad?
Help - thoughts?It might be that you have mixed audio formats in your movie, one or more of which is incompatible with iMovie/iDVD.
Make a copy of your movie and try using the free download Streamclip to demux to aiff. Drag the copy of your movie into the Streamclip window and then File > Demux to Aiff.
Don't know if that will work, but it is worth a try.
Maybe you are looking for
-
When I convert my excel spreadsheet to pdf objects like graphs move down in the page!
Hi everyone I am very new to this! Please help! I was working with someone who has been migrated to Office 2007. If we create an Excel Spreadsheet and convert it to Pdf all is well. When we do the same with his old files the graphs move to the botto
-
Currently using iOS 7.1.1 For longtime trying to update to 7.1.2 I am unable to install it, as it is asking me for Passcode. Is passcode different from my Apple ID Password? I tried to put the pass word, it gives me failure notification Because of th
-
Add/Delete rows in TableView
hi all, i wanna add rows in the tableView and also wanna delete the selected rows from the tableView. how to do it? regards, purushothaman.
-
Cannot connect essbase sever using Essbase administration service console
Hi: I installed Essbase 11.1.2.2 in my PC, but I cannot connect essbase server with the administration servise console. but I try to connect with ESSCMD.exe, everything is OK. could you pls help to advise how can I connect it ?
-
Help with two phones on one Apple ID.
My step father put his iPhone on my Apple ID. Now he's getting all my emails and my apps that I download. It doesn't matter how many times I turn off the settings, it always happens. Is there a way to permanently fix this? I don't like the fact t