PLS-00103: Encountered the symbol "" when expecting one of the following:
Hi I am creating trigger using CFQUERY tag of cold fusion on oracle..
<CFQUERY DATASOURCE="CRM">
create or replace trigger AWC_ACCESSROLESID_TRI
before insert on AWC_ACCESSROLES
for each row
begin
select AWC_ACCESSROLESID_SEQ.nextval into :new.AR_ID from dual;
end;
</CFQUERY>
But the created trigger is not compiled, it is giving the following error
"Line # = 1 Column # = 6 Error Text = 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 <a single-quoted SQL string> pipe The symbol "" was ignored."
If I edit that trigger in enterprose manager console by pressing space and compile that, it is working fine with out any error. If i run the above statement in sql *plus, It is working fine with out any error.
Can you please tell me why this is happening if i run it using cfquery tag and also the possible solutions.
Thanks in advance,
Vinod
So it works in Enterprise manager. It works in SQL*Plus. It doesn't work in CFQUERY. Sounds to me like a ColdFusion problem rather than an Oracle problem to be honest. Aren't there any ColdFusion support resources?
Cheers, APC
Similar Messages
-
PLS-00103: Encountered the symbol "SELECT" when expecting one of the follow
Can any one tell me why I an getting compile error in Trigger with the following code (see below for the error message). Error is indicated in the IF statement Select clause.
Code:
-- AUdit Code Begin
-- Note: Ony for those tables having 'AUDIT' UDP
-- Value set to 'T'
IF (Select Count(*) From DBConfiguration
Where ConfigurationCode = 'AUDIT' AND
ConfigurationValue = 'T') > 0 THEN
WHEN (:new.WORKREQUESTSTATUS <> :old.WORKREQUESTSTATUS)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSTATUS',
:old.WORKREQUESTSTATUS,:new.WORKREQUESTSTATUS,:new.UserId)
End;
WHEN (:new.WORKREQUESTSOURCE <> :old.WORKREQUESTSOURCE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCE',
:old.WORKREQUESTSOURCE,:new.WORKREQUESTSOURCE,:new.UserId)
End;
WHEN (:new.WORKREQUESTSOURCEID <> :old.WORKREQUESTSOURCEID)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCEID',
:old.WORKREQUESTSOURCEID,:new.WORKREQUESTSOURCEID,:new.UserId)
End;
WHEN (:new.WORKREQUESTDESC <> :old.WORKREQUESTDESC)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDESC',
:old.WORKREQUESTDESC,:new.WORKREQUESTDESC,:new.UserId)
End;
WHEN (:new.WORKREQUESTDATE <> :old.WORKREQUESTDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDATE',
CAST(:old.WORKREQUESTDATE AS varchar2(256)),CAST(:new.WORKREQUESTDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.WORKREQUESTOWNER <> :old.WORKREQUESTOWNER)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTOWNER',
:old.WORKREQUESTOWNER,:new.WORKREQUESTOWNER,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPCODE <> :old.WORKREQUESTAPPCODE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPCODE',
:old.WORKREQUESTAPPCODE,:new.WORKREQUESTAPPCODE,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPROVER <> :old.WORKREQUESTAPPROVER)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPROVER',
:old.WORKREQUESTAPPROVER,:new.WORKREQUESTAPPROVER,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPDATE <> :old.WORKREQUESTAPPDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPDATE',
CAST(:old.WORKREQUESTAPPDATE AS varchar2(256)),CAST(:new.WORKREQUESTAPPDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.WORKREQUESTCOMMENT <> :old.WORKREQUESTCOMMENT)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTCOMMENT',
:old.WORKREQUESTCOMMENT,:new.WORKREQUESTCOMMENT,:new.UserId)
End;
WHEN (:new.CLOSEDATE <> :old.CLOSEDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'CLOSEDATE',
CAST(:old.CLOSEDATE AS varchar2(256)),CAST(:new.CLOSEDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.ANALYTEKEY <> :old.ANALYTEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'ANALYTEKEY',
CAST(:old.ANALYTEKEY AS varchar2(256)),CAST(:new.ANALYTEKEY AS varchar2(256)),:new.UserId)
End;
WHEN (:new.SUBPURPOSEKEY <> :old.SUBPURPOSEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'SUBPURPOSEKEY',
CAST(:old.SUBPURPOSEKEY AS varchar2(256)),CAST(:new.SUBPURPOSEKEY AS varchar2(256)),:new.UserId)
End;
WHEN (:new.PURPOSEKEY <> :old.PURPOSEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'PURPOSEKEY',
CAST(:old.PURPOSEKEY AS varchar2(256)),CAST(:new.PURPOSEKEY AS varchar2(256)),:new.UserId)
End;
End if;
-- Audit End
Error:
95/5 PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + case mod new not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set specification>
<an alternativ
97/39 PLS-00103: Encountered the symbol ")" when expecting one of the following:
* & - + ; / at for mod remainder rem <an exponent (**)> and
or group having intersect minus order start union where
connect || multisetHere is the code:
-- AUdit Code Begin
-- Note: Ony for those tables having 'AUDIT' UDP
-- Value set to 'T'
IF (Select Count(DBConfigurationValue) From DBConfiguration
Where DBConfigurationCode = 'AUDIT' AND
DBConfigurationValue = 'T') > 0 THEN
WHEN (:new.WORKREQUESTSTATUS <> :old.WORKREQUESTSTATUS)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSTATUS',
:old.WORKREQUESTSTATUS,:new.WORKREQUESTSTATUS,:new.UserId)
End;
WHEN (:new.WORKREQUESTSOURCE <> :old.WORKREQUESTSOURCE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCE',
:old.WORKREQUESTSOURCE,:new.WORKREQUESTSOURCE,:new.UserId)
End;
WHEN (:new.WORKREQUESTSOURCEID <> :old.WORKREQUESTSOURCEID)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTSOURCEID',
:old.WORKREQUESTSOURCEID,:new.WORKREQUESTSOURCEID,:new.UserId)
End;
WHEN (:new.WORKREQUESTDESC <> :old.WORKREQUESTDESC)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDESC',
:old.WORKREQUESTDESC,:new.WORKREQUESTDESC,:new.UserId)
End;
WHEN (:new.WORKREQUESTDATE <> :old.WORKREQUESTDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTDATE',
CAST(:old.WORKREQUESTDATE AS varchar2(256)),CAST(:new.WORKREQUESTDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.WORKREQUESTOWNER <> :old.WORKREQUESTOWNER)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTOWNER',
:old.WORKREQUESTOWNER,:new.WORKREQUESTOWNER,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPCODE <> :old.WORKREQUESTAPPCODE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPCODE',
:old.WORKREQUESTAPPCODE,:new.WORKREQUESTAPPCODE,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPROVER <> :old.WORKREQUESTAPPROVER)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPROVER',
:old.WORKREQUESTAPPROVER,:new.WORKREQUESTAPPROVER,:new.UserId)
End;
WHEN (:new.WORKREQUESTAPPDATE <> :old.WORKREQUESTAPPDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTAPPDATE',
CAST(:old.WORKREQUESTAPPDATE AS varchar2(256)),CAST(:new.WORKREQUESTAPPDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.WORKREQUESTCOMMENT <> :old.WORKREQUESTCOMMENT)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'WORKREQUESTCOMMENT',
:old.WORKREQUESTCOMMENT,:new.WORKREQUESTCOMMENT,:new.UserId)
End;
WHEN (:new.CLOSEDATE <> :old.CLOSEDATE)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'CLOSEDATE',
CAST(:old.CLOSEDATE AS varchar2(256)),CAST(:new.CLOSEDATE AS varchar2(256)),:new.UserId)
End;
WHEN (:new.ANALYTEKEY <> :old.ANALYTEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'ANALYTEKEY',
CAST(:old.ANALYTEKEY AS varchar2(256)),CAST(:new.ANALYTEKEY AS varchar2(256)),:new.UserId)
End;
WHEN (:new.SUBPURPOSEKEY <> :old.SUBPURPOSEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'SUBPURPOSEKEY',
CAST(:old.SUBPURPOSEKEY AS varchar2(256)),CAST(:new.SUBPURPOSEKEY AS varchar2(256)),:new.UserId)
End;
WHEN (:new.PURPOSEKEY <> :old.PURPOSEKEY)
Begin
Insert INTO ADAMChangeAudit (ADAMChangeAuditKey,AuditTable,AuditRecordKey,AuditColumnName,AuditOldValue,AuditNewValue,AuditUser)
VALUES(ADAMChangeAuditKey.NextValue,'WORKREQUEST',:new.WORKREQUESTKEY,'PURPOSEKEY',
CAST(:old.PURPOSEKEY AS varchar2(256)),CAST(:new.PURPOSEKEY AS varchar2(256)),:new.UserId)
End;
End if; -
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the f
I'm trying to follow an example pl/sql program to select from one table and insert into a second table in a LOOP.
I get a syntax error which I can't figure out
Line # = 67 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
begin case declare end exception 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
What is the cause?
IS
BEGIN
declare
v_pk1 bb_bb60_stats.pk1%TYPE;
v_event_type bb_bb60_stats.event_type%TYPE;
v_user_pk1 bb_bb60_stats.user_pk1%TYPE;
v_course_pk1 bb_bb60_stats.course_pk1%TYPE;
v_group_pk1 bb_bb60_stats.group_pk1%TYPE;
v_forum_pk1 bb_bb60_stats.forum_pk1%TYPE;
v_internal_handle bb_bb60_stats.internal_handle%TYPE;
v_content_pk1 bb_bb60_stats.content_pk1%TYPE;
v_data bb_bb60_stats.data%TYPE;
v_timestamp bb_bb60_stats.timestamp%TYPE;
v_status bb_bb60_stats.status%TYPE;
v_session_id bb_bb60_stats.session_id%TYPE;
v_messages bb_bb60_stats.messages%TYPE;
INSERT_COUNT NUMBER := 1;
CURSOR curs_aa
IS
SELECT * from bb_bb60_stats.activity_accumulator ;
BEGIN
OPEN curs_aa;
LOOP
FETCH curs_aa into
v_pk1,
v_event_type,
v_user_pk1 ,
v_course_pk1,
v_group_pk1,
v_forum_pk1,
v_internal_handle,
v_content_pk1 ,
v_data,
v_timestamp ,
v_status ,
v_session_id ,
v_messages;
INSERT INTO csuh_custom.aa_partitioned
VALUES
v_pk1,
v_event_type,
v_user_pk1 ,
v_course_pk1,
v_group_pk1,
v_forum_pk1,
v_internal_handle,
v_content_pk1,
v_data,
v_timestamp,
v_status,
v_session_id,
v_messages
-- commit after every 100 inserts to avoid large rollback segments
IF INSERT_COUNT = 25000 THEN
COMMIT;
INSERT_COUNT := 1;
ELSE
INSERT_COUNT := INSERT_COUNT + 1;
END IF;
END LOOP;
CLOSE curs_aa;When I add the END;
I get
Line # = 66 Column # = 0 Error Text = PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
begin case declare end exception 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 -
Yesterday AM. my customer went live with an upgrade. Things started out ok, but as the load on the system started to build, we started seeing errors.
The reported error is:
S1000 Oracle ODBC Ora ORA-06550: line 1, column 42:
PLS-00103: Encountered the symbol "¿" when expecting one of the following:
. ( ) , * @ % & = - + < / > at in is mod remainder not rem =>
<an exponent (**)> <> or != or ~= >= <= <> and or like
This is in response to calling a stored procedure with this signature.
MY_THING (
p1 IN NUMBER,
p2 OUT NUMBER,
p2 IN NUMBER
I believe this is a failure with the ODBC driver to parse
{call MY_STUFF.MY_THING(791200, ?, 1067744)}
Now to head off the obvious responses, I'm going to say these things in boldface
the procedure itself is fine, and works flawlessly under test
*nowhere in any of the code is an upside-down '?' as reported in the error message*
Has anyone else encountered this--or better yet solved it?thanks for the replies.
I'd have to rule out triggers at the point the stored procedure is run. Other than logging, it doesn't do any writes to the database. It does a couple of look-ups, and returns the results in a cursor. As for the web servers, they're pretty much copies of each other. 'Out of the box + updates' Windows Server 2008 machines with our application installed on each.
The software issuing the ODBC call is old, well worn, tried and true C++. In this case the only string parameters passed are 'PA' or 'PJ' the rest is all integers.
But again I want to stress that it doesn't appear that we reach the database when it fails. It appears to fail when the ODBC driver is parsing the '{call xxxxxx} statement.
On a hunch, I've just reconfigured our application to treat the offensive call as if it were an 'external' reference. Meaning that a new ODBC connection will be created/destroyed for each run. Not very efficient, but I'll take slow over broken any day. It's too early to tell if this will eliminate the error. -
Hello,
I wanted to use the APEX_ITEM.DISPLAY_AND_SAVE
Here is my query:
DECLARE
QUERY VARCHAR2 (2000);
BEGIN
QUERY := 'SELECT '
||'APEX_ITEM.DISPLAY_AND_SAVE(1,REGISTRATION_ID,'f01_'||ROWNUM, NULL) REGISTRATION_ID, '
||'APEX_ITEM.DISPLAY_AND_SAVE(2,STATUS,'f02_'||ROWNUM, NULL) STATUS, '
||'APEX_ITEM.DISPLAY_AND_SAVE(3,CALL_CODE,'f03_'||ROWNUM, NULL) CALL_CODE, '
||'APEX_ITEM.DISPLAY_AND_SAVE(4,PARTNER_USER_ID,'f04_'||ROWNUM, NULL) PARTNER_USER_ID,'
||'APEX_ITEM.DISPLAY_AND_SAVE(5,COORDINATOR_USER_ID,'f05_'||ROWNUM, NULL) COORDINATOR_USER_ID, '
||'APEX_ITEM.DISPLAY_AND_SAVE(6,COORDINATOR_EMAIL,'f06_'||ROWNUM, NULL) COORDINATOR_EMAIL, '
||'APEX_ITEM.DISPLAY_AND_SAVE(7,COORDINATOR_FINAUTH_EMAIL,'f07_'||ROWNUM, NULL) COORDINATOR_FINAUTH_EMAIL,'
||'APEX_ITEM.DISPLAY_AND_SAVE(8,COORDINATOR_FULL_ADDRESS,'f08_'||ROWNUM, NULL) COORDINATOR_FULL_ADDRESS, '
||'APEX_ITEM.DISPLAY_AND_SAVE(9,COORDINATOR_NAME,'f09_'||ROWNUM, NULL) COORDINATOR_NAME, '
||'APEX_ITEM.DISPLAY_AND_SAVE(10,COORDINATOR_FAX,'f10_'||ROWNUM, NULL) COORDINATOR_FAX,'
||'APEX_ITEM.DISPLAY_AND_SAVE(11,COORDINATOR_TEL,'f11_'||ROWNUM, NULL) COORDINATOR_TEL, '
||'APEX_ITEM.DISPLAY_AND_SAVE(12,COORDINATOR_COUNTRY,'f12_'||ROWNUM, NULL) COORDINATOR_COUNTRY, '
||'APEX_ITEM.DISPLAY_AND_SAVE(13,COORDINATOR_COMPANY_NAME,'f13_'||ROWNUM, NULL) COORDINATOR_COMPANY_NAME,'
||'APEX_ITEM.DISPLAY_AND_SAVE(14,DATE_LETTER_SENT,'f14_'||ROWNUM, NULL) DATE_LETTER_SENT, '
||'APEX_ITEM.DISPLAY_AND_SAVE(15,DATE_LAST_SUBMISSION,'f15_'||ROWNUM, NULL) DATE_LAST_SUBMISSION, '
||'APEX_ITEM.DISPLAY_AND_SAVE(16,PROPOSAL_ACRONYM,'f16_'||ROWNUM, NULL) PROPOSAL_ACRONYM,'
||'APEX_ITEM.DISPLAY_AND_SAVE(17,INSTRUMENT_CODE,'f17_'||ROWNUM, NULL) INSTRUMENT_CODE, '
||'APEX_ITEM.DISPLAY_AND_SAVE(18,TITLE,'f18_'||ROWNUM, NULL) TITLE, '
||'APEX_ITEM.DISPLAY_AND_SAVE(19,SUBMITTED,'f19_'||ROWNUM, NULL) SUBMITTED, '
||'APEX_ITEM.DISPLAY_AND_SAVE(20,PREPARATION,'f20_'||ROWNUM, NULL) PREPARATION, '
||'APEX_ITEM.DISPLAY_AND_SAVE(21,PASS_BY_MAIL,'f21_'||ROWNUM, NULL) PASS_BY_MAIL,'
||'APEX_ITEM.DISPLAY_AND_SAVE(22,PROPOSAL_ID,'f22_'||ROWNUM, NULL) PROPOSAL_ID, '
||'APEX_ITEM.DISPLAY_AND_SAVE(23,PROPOSAL_NUMBER,'f23_'||ROWNUM, NULL) PROPOSAL_NUMBER '
||' FROM SUZANREGISTRATIONVIEW '
||' where 1 = 1 ';
IF LENGTH (V ('P4_REGISTRATION_ID')) > 0
THEN
QUERY :=
QUERY || ' and REGISTRATION_ID like ' || V ('P4_REGISTRATION_ID');
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_CALL_CODE')) > 0
THEN
QUERY := QUERY || ' and CALL_CODE like ''' || V ('P4_CALL_CODE') || '''';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_COORDINATOR_USER_ID')) > 0
THEN
QUERY :=
QUERY
|| ' and (upper(COORDINATOR_USER_ID)) like (upper('''
|| V ('P4_COORDINATOR_USER_ID')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_COORDINATOR_FINAUTH_EMAIL')) > 0
THEN
QUERY :=
QUERY
|| ' and (upper(R.COORDINATOR_EMAIL)) like (upper('''
|| V ('P4_COORDINATOR_FINAUTH_EMAIL')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_COORDINATOR_NAME')) > 0
THEN
QUERY :=
QUERY
|| ' and upper(COORDINATOR_NAME) like (upper('''
|| V ('P4_COORDINATOR_NAME')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_COORDINATOR_COMPANY_NAME')) > 0
THEN
QUERY :=
QUERY
|| ' and (upper(COORDINATOR_COMPANY_NAME)) like (upper('''
|| V ('P4_COORDINATOR_COMPANY_NAME')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_PARTNER_USER_ID')) > 0
THEN
QUERY :=
QUERY
|| ' and (upper(PARTNER_USER_ID)) like (upper('''
|| V ('P4_PARTNER_USER_ID')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
IF LENGTH (V ('P4_PROPOSAL_ACRONYM')) > 0
THEN
QUERY :=
QUERY
|| ' and (upper(proposal_acronym)) like (upper('''
|| V ('P4_PROPOSAL_ACRONYM')
|| '''))';
ELSE
QUERY := QUERY || '';
END IF;
RETURN QUERY;
END;
And here is the error encountered:
1 error has occurred
* Function returning SQL query: Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the generic columns checkbox below the region source to proceed without parsing.
(ORA-06550: line 5, column 57: PLS-00103: Encountered the symbol "F01_" when expecting one of the following: * & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_)
I don't understand why the engine returns an error at that point.
Despite the fact that I follow the user guide and the Denes Kubicek's sample examples, I still have that error.
If I remove the part 'f01_' || and only keep the rownum, the problem is solved.
Do you have any idea ?
Thanks in advance for your answers.
Regards,
Stessy DelcroixHI MickyWay,
So simple. :-)
Problem solved.
Thanks a lot (merci beaucoup) -
Encountered an error "PLS-00103: Encountered the symbol "CREATE" when expec
HI All,
I am creating a procedure and trying to use temp table...
Here is the code":
PROCEDURE P_PARENT_TREE
topic_id_in IN NUMBER,
topic_hierarchy_details_out OUT SYS_REFCURSOR
) IS
temp_children_level topic_children.children_level%TYPE;
temp_children_id topic_children.children_id%TYPE;
temp_topic_id topic.topic_id%TYPE;
CURSOR c_child_level IS
SELECT children_level, children_id
FROM topic_children
WHERE children_id = topic_id_in;
BEGIN
OPEN c_child_level;
FETCH c_child_level INTO temp_children_level,temp_topic_id ;
CLOSE c_child_level;
CREATE TEMPORARY TABLE IF NOT EXISTS topic_child
(t_topic_id NUMBER, t_children_id NUMBER, children_seq NUMBER);
WHILE temp_children_level > 0
LOOP
INSERT INTO topic_child(t_topic_id,t_children_id,children_seq)
values (
SELECT topic_id , children_id ,children_level
FROM topic_children
WHERE children_id = temp_topic_id);
temp_children_level := temp_children_level - 1;
END LOOP;
OPEN topic_hierarchy_details_out FOR
select * from topic_child;
END P_PARENT_TREE;
END TOPIC_PKG;
getting the error "PLS-00103: Encountered the symbol "CREATE" when expec"...
any idea why? or may be is there any other way to write this querysomething like
select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
from test
where connect_by_isleaf = 1
start with child_topic = 'aa4'
connect by child_topic = prior topicas in
SQL> with test as
2 (
3 select 0 sq, 'aa ' topic, 'aa1' child_topic from dual union all
4 select 1 sq, 'aa1' topic, 'aa2' child_topic from dual union all
5 select 3 sq, 'aa2' topic, 'aa3' child_topic from dual union all
6 select 4 sq, 'aa3' topic, 'aa4' child_topic from dual
7 )
8 select connect_by_root child_topic ||sys_connect_by_path (topic, '>') path
9 from test
10 where connect_by_isleaf = 1
11 start with child_topic = 'aa4'
12 connect by child_topic = prior topic
13 /
PATH
aa4>aa3>aa2>aa1>aa -
PLS-00103: Encountered the symbol ""
Hi
I'm trying to create a PL/SQL function using JDBC and the procedure gets created but with status invalid. After checking the user_errors view I get:
PLS-00103: Encountered the symbol "" when expecting one of the following: begin function package pragma procedure subtype type use form current cursor external language
I'm using the following statement:
statement = connection.prepareStatement ("CREATE OR REPLACE FUNCTION SCOTT.WHATEVER return varchar2 as begin return ('Whatever 2'); end;");
statement.execute ();
If I run the same statement from SQL*Plus I get no problems.
Yes!, the application requires that I create store procedures using JDBC, no other way.
Any ideas?
Regards,
Néstor BoscánNestor,
Works for me on Oracle 9.2.0.7 database (running on SUN [sparc] Solaris 9) with JDK 1.4.2_07 and "ojdbc14.jar" JDBC [thin] driver.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class CrSqlFun {
public static void main(String[] args) {
Connection c = null;
PreparedStatement ps = null;
String url = "jdbc:oracle:thin:scott/tiger@host:1521:orcl";
String sql = "create or replace function WHATEVER return varchar2 as " +
"begin return 'Whatever 2'; end;";
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
c = DriverManager.getConnection(url);
ps = c.prepareStatement(sql);
ps.executeUpdate();
catch (Exception x) {
x.printStackTrace(System.err);
finally {
if (ps != null) {
try {
ps.close();
catch (SQLException sx) {
System.out.println("Failed to close statement.");
if (c != null) {
try {
c.close();
catch (SQLException sx) {
System.out.println("Failed to close connection.");
}Good Luck,
Avi. -
Report 3.0 oracle database 9i(Encounter the symbol "(" when expecting
Hi,
i am using oracle 9i database and report 3.0 and OS win xp
and my procedure is
PROCEDURE GET_MILLION_TEXT (MILLION IN NUMBER,MILLTEXT OUT VARCHAR2(30)) IS
BEGIN
SELECT ARA_TEXT1 INTO MILLTEXT FROM NUM_WORD WHERE NUMB=MILLION;
EXCEPTION
WHEN NO_DATA_FOUND
THEN NULL;
END;
while compiling i am getting the following error
Encountered the symbol "(" when expecting one of the following
if i change VARCHAR2(30) to VARCHAR2 then i am getting the following error
Report Designer has encounter a problem and needs to close.(and then the report is going to close automatically)
help will be appreciable thank you.
Edited by: 960991 on May 18, 2013 5:08 AMhi,
yes in oracle 9i it is working fine the below query
PROCEDURE GET_MILLION_TEXT (MILLION IN NUMBER,MILLTEXT OUT VARCHAR2) IS
butin oracle 10g database it is giving error
"Report Designer has encountered a problem and needs to close. We are sorry for inconvenience."
thank you.
Edited by: 960991 on May 15, 2013 7:04 AM -
Error: Encountered a SELECT WHEN EXPECTING the following ( + - all mod num
I have a conditional INSERT statement where I update the record if todays date is found in the table or i will INSERT a new record if that date is not found..
Insert statement that comes after ELSE works fine but IF part fails with the error
encountered a select when expecting the following
*( - + all case mod new null.. and lot more*
IF EXISTS
(SELECT (TO_CHAR(UpdateDate, 'MM/DD/YYYY')) FROM EmployeeUpdateEmails
WHERE UpdateDate = select (TO_CHAR(sysdate, 'MM/DD/YYYY')) from dual)
UPDATE EMPLOYEEUPDATEEMAILS
SET EMP_MGR_TOTAL_CHANGES = total
WHERE UpdateDate = select (TO_CHAR(sysdate, 'MM/DD/YYYY')) from dual
ELSE
This is how EmployeeUpdateEmails table is created
CREATE TABLE EmployeeUpdateEmails
UpdateNum SMALLINT PRIMARY KEY,
UpdateDate DATE,
Emp_Mgr_Total_Changes SMALLINT,
Emp_Term_Total_Chnages SMALLINT
Please HelpIF EXISTS is not aproppriate syntax:
SQL> declare
2 begin
3 if exists (select count(*) from dual)
4 then
5 dbms_output.put_line('it exists');
6 else
7 dbms_output.put_line('it doesn''t exist');
8 end if;
9 end;
10 /
if exists (select count(*) from dual)
ERROR at line 3:
ORA-06550: line 3, column 5:
PLS-00204: function or pseudo-column 'EXISTS' may be used inside a SQL statement only
ORA-06550: line 3, column 2:
PL/SQL: Statement ignored
SQL> declare
2 my_var number;
3 begin
4
5 select count(*) into my_var
6 from dual;
7
8 if my_var >= 1
9 then
10 dbms_output.put_line('it exists');
11 else
12 dbms_output.put_line('it doesn''t exist');
13 end if;
14 end;
15 /
it exists
PL/SQL procedure successfully completed.If you're using SQL then
1) post the complete statement
2) mention your database version ( the result of: select * from v$version; )
3) consider using CASE:
SQL> select case
2 when (select count(*) from dual) >= 1
3 then 'it exists'
4 else 'it doesn''t exist'
5 end
6 from dual;
CASEWHEN(SELECTC
it exists
1 row selected. -
I am trying to install MasterCollection_CS6_LS16. When I double click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation. What does that mean? How should I proceed?
Hey iraravitz,
Could you please let me know what version of OS are working on.
You might receive this error when you attempt to install on a drive with the HFS+ Case Sensitive file system, which is not supported for installation of Adobe Creative Suite 6.
So, please try installing on a drive that has been formatted with a supported file system.
You might refer the KB doc link mentioned below for the same:
Error "Case-sensitive drives not supported" or similar install error | Mac OS
Let me know if this helps.
Regards,
Anubha -
when ever i try to install photoshop cc on my laptop i keep getting this error "We've encountered the following issues installer failed to initialize. Please download adobe support advisor to detect the problem."
start at the top and work your way down applying applicable fixes until your problem is resolved.
if cc (win): https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html
if, your error is:
"Installer failed to initialize. File not found." or "Installer failed to initialize. This could be due to missing files."
first, rename OOBE Folder to OOBE.old.
to find OOBE:
64 bit win OS: Program Files x86\Common Files\Adobe\OOBE
32 bit win OS: Program Files \Common Files\Adobe\OOBE
mac os: HD>library>application support>adobe>caps
mac os: USER>library>application support>adobe>OOB
if that fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.
if you're using a dvd to install:
copy the disc contents to a desktop directory and install from that directory.
if you're using a mac:
1. Try to Create a new user account in Mac with Administrator Priviledges.
2. Login to the New user, Navigate to Mac HD> Application> Utilities> Adobe Installer folder, Locate products like Adobe Reader, Adobe Flash, Adobe Air and un-install them
3. Navigate to User Library> Application Support> Adobe and move Adobe to Trash.
4. Navigate to Mac HD> Library> Application Support> Adobe and move Adobe to Trash.
5. Start the installation again.
if everything applicable above fails, check your installation logs:
http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-install-using-logs-elements.html -
My Pc Info AMD Athlon(tm) II X2 240 Processor 2.80 GHz
2.00 GB
64-bit Operating System
If any One have Real Solve .. Replay me PLeaseMy Win Version is Windows 7 Home Premium
Copyright 2009
This what u Need ?
About Erorr ..
i Failed To get ScreenShot of it .. So i have to Explain Error
Error Say
'' we've encountered the following issues "
Installer Failed To Intitialize . Could be Due to a Missing File . PLease Downlaod Adobe Support Advisor to Detect The Problem .
Thats Was Error MSG Say's When i Installing Ae CS6
That's u Need ? -
I have Creative Suite 6 Design and Web Premium. The Application Manager applied updates to the CS6 Perpetual Licanse Products, but did not recognize I have a new Creative Cloud Subscription for Phoroshop and Lightroom. When attempting to install Creative Cloud Desktop, the installation fails with no details available other than the error message above.
System is Win 8.1, Intel 3770 Quad Core CPU, 32 GB Memory, 2 Toshiba 3TB HDD SATA 3 configured as RAID 1. . System runs CS 6 no issues. Have turned off the Antivirus and Firewall, cleared cache on IE 10, closed all browsers after CC desktop starts to download. CC Desktop does not show in win 8, but does show on PC in Program Files (x86), but I cannot see an executable.
Have also tried to download Creative Cloud Desktop as a stand-alone (www.adobe.com/go/adobecreativecloudapp) and also by downloading Photoshop CC as data indicates any product downloaded will install the desktop of CC.
CreativeCloudSet-up.exe does exist on PC and properties are 2,775KB size.Running the setup from the app on PC yeilds same results - Product downloads and does not install.
The error block is Adobe Installer (at top)
Message body We've encountered the following issues:
Creative Cloud desktop failed to install
Appreciate any assistance.Hi BillC29,
Welcome to the Community,
Try the following steps and let us know if it helps:
Download and run Creative Cloud Cleaner Tool: http://www.adobe.com/support/contact/cscleanertool.html
Run Creative Cloud Cleaner tool and choose option 3 and then option 1 to complete the cleaning process.
Once done rename OOBE Folder from these locations to OOBE.old
Windows: C:\Program Files (x86)\Common Files\Adobe
C:\Users\(UserName)\AppData\Local\Adobe
Restart Windows
Download Creative Cloud via https://creative.adobe.com/products/creative-cloud
Launch Creative Cloud.
-Ankit -
Hi Team,
Earlier i had SQL Server 2008 R2 on my Machine. For one work around i unistall SQL Server 2008 R2 and Trying to install SQL Server 2008 but i am not able to install with below error:
TITLE: SQL Server Setup failure.
SQL Server Setup has encountered the following error:
Method not found: 'Boolean Microsoft.SqlServer.Configuration.MsiExtension.MsiExtensionMetadata.get_IsSlipstreamOrPatch()'..
ThanksHi Lydia,
i have followed the above step and i am able to proceed further but while installation i am getting the below error consistently.
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:
Locating the SQL Server Browser service component failed with Windows Installer return code '2'. The component ID: '{2E86FD41-C179-456E-8E6A-5157ED427228}'.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&EvtType=0x8510C01B%25400x31BA4472%25401222%254052007
BUTTONS:
&Retry
Cancel
2:
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:
SQL Server Browser configuration for feature 'SQL_Browser_Redist_SqlBrowser_Cpu32' was cancelled by user after a previous installation failure. The last attempted step: Retrieving full path to the SQL Server Browser service executable using Windows Installer
API for the SQL Server Browser component with ID '{2E86FD41-C179-456E-8E6A-5157ED427228}'..
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&EvtType=0x8510C01B%25400x31BA4472%25401222%254052007
BUTTONS:
OK
After ignoring these step..installation getting complete but ..at the end i am not able to connect to server.
Could you please help me on this.
Thanks,
Sumit -
Hello,
When I am installing SQL Server 2008 on win7, I encountered an error: SQL Server Setup has encountered the following error: Method not found:'Boolean Microsoft.SqlServer.Configuration.MsiExtension.MsiExtensionMetadata.get_IsSlipstreamOrPatch()‘
What's the metter? What can I do to deal with it?
I need your speed answers.
Thanks,
Vicky SongHello,
Looking at your issue I am wondering if your media is corrupt.
What edition of SQL Server you are trying to install? Did you download that media?
If you downloaded it, perhaps you should try to download it again.
Are you able to install that SQL Server 2008 on another machine without any problem?
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com
Maybe you are looking for
-
i turn on my printer and it says that i need to remove and check my cartridges. i did that a million times and it still says that same message. i dont know what else to do. any suggestions??? also, i dont know where to get a connection for my labtop
-
So here's the deal: I have connected a Monster toslink optical audio cable to my Xbox 360's component cable. I have that toslink cable running to the Optical In jack on the I/O bay of my X-Fi. I'm trying to get the audio from the xbox to play through
-
How to set a minimum width and height for a stage or scene?
Hello, Does anyone how to set a minimum width and height for a stage or scene? I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window. In JavaFX 2.1
-
Sales Order Lines with inclusive VAT prices
I am integrating a 3rd party web site order into SAP B1. The site can only provide VAT Inclusive Prices and cannot provide the VAT rate or code - that SAP order will be loaded with the VAT rate taken from the BP / Item matrix. This is not a problem w
-
Page turning/flippin´
Hello all! I´m making a book to my homepage with pageturning effects, but there seems to be a little error... The page turning works OK but the text fields don´t follow the page it stays on the scene. I have tried to groupe the text with the page, it