Trigger created with errors
Hi All,
I have created a new trigger but it has compilation errors, I get the error which says SQL command not properly ended when look up in toad.Can you please advise what's wrong in my syntax below.
Also ,inorder for me to rollback the trigger I just created do I need to drop that trigger and run the create or replace trigger statement or the create or replace statement will replace the previous trigger that I created.
Thanks !
create or replace TRIGGER Abcd.lddp_tup
BEFORE UPDATE ON lddp FOR EACH ROW
declare timenow TIMESTAMP;
begin
SELECT CURRENT_TIMESTAMP INTO timenow FROM DUAL
:new.create_sid := :old.create_sid;
:new.create_date := :old.create_date;
:new.saved_date := timenow;
:new.par_num := :old.par_num;
:new.af_id := :old.af_id;
IF
:new.locked_bemsid IS NOT NULL AND :old.locked_sid IS NULL
THEN
:new.locked_date := timenow;
ELSE
:new.locked_sid := :old.locked_sid;
:new.locked_date := :old.locked_date;
END IF;
end;
/
877410 wrote:
Hi ,
can you be more specific how that statement should be altered?can you spell PL/SQL without assistance?
CREATE OR replace TRIGGER abcd.lddp_tup
before UPDATE ON lddp
FOR each ROW
DECLARE
timenow TIMESTAMP;
BEGIN
timenow := current_timestamp;
:new.create_sid := :old.create_sid;
:new.create_date := :old.create_date;
:new.saved_date := timenow;
:new.par_num := :old.par_num;
:new.af_id := :old.af_id;
IF :new.locked_bemsid IS NOT NULL
AND :old.locked_sid IS NULL THEN
:new.locked_date := timenow;
ELSE
:new.locked_sid := :old.locked_sid;
:new.locked_date := :old.locked_date;
END IF;
END;
/
Similar Messages
-
ORA-39083: Object type TRIGGER failed to create with error:
i m getting these two error when i import data using impdp.
ORA-39083: Object type TRIGGER failed to create with error:
ORA-00942: table or view does not exist
i have exported (expdp) data from production db, when i importing (impdp) the dump file to the test db i m geting the above two errors.
example:
ORA-39083: Object type TRIGGER failed to create with error:
ORA-00942: table or view does not exist
Failing sql is:
CREATE TRIGGER "NEEDLE"."CC_BCK_TRG" BEFORE INSERT OR UPDATE
ON NIIL.cc_bck_mgmt REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
DECLARE
w_date DATE;
w_user VARCHAR2(10);
BEGIN
SELECT USER,SYSDATE INTO w_user,w_date FROM DUAL;
IF INSERTING THEN
:NEW.cretuser :=w_user;
:NEW.cretdate :=w_date;
END IF;
IF UPDATING THEN
:NEW.modiuser :=w_user;
:NEW.modidate :=w_date;
END IF;
END;
status of the above trigger in pro db is valid. and source table also exist even though i m getting error when i import
please suggest me...perhaps you don't have table... (impdp created trigger before create table)
check about "NIIL.cc_bck_mgmt" table.
and then create it (trigger) manual ;)
Good Luck. -
XIF or BDoc Trigger even with errors in Business Document
Hello Experts,
I am stuck in an issue regarding BDoc trigger. My query is as per my understanding, if a business document like Sales order or Opportunity is in error but is saved, there is no BDoc triggered. Please correct if I am wrong.
My actual Requirement is to trigger BDoc and thus XIF IDOC if Opporutnity is saved even with error.
Do we have a method for this apporach.
Please assist.
Thx,
RaviHey Luis,
Thanks for your assistance.
I assumed this functionality will haunt me. Can you suggest any workaround. The XIF IDOC will not get send also because internally they are connected to BDoc adapter itself.
Do we have any method to trigger XIF IDOC by some logic etc.
Thx,
Ravi -
IDOC created with errors!
Hello All,
I am sure that I am not posting this in the right forum. But I did this because, I get more responses in this compared to others. Sorry if this has caused any trouble.
I had extended a standard idoc with 2 customer segments and procesed the idoc file. An idoc got created witht he following error message.
EDI: Syntax error in IDoc (mandatory segment missing)
Message no. E0072
Diagnosis
The segment E1EDK14 has the attribute 'Mandatory' in the syntax description of the basic type /IRM/CHGBACKS01 (customer enhancement ). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.
This error may have been triggered by an unidentifiable segment before the expected mandatory segment.
Procedure
Please check the IDoc or the syntax description of the basic type /IRM/CHGBACKS01 (customer enhancement ).
When we insert new segments, where should we insert? How important is the segment number? Why is this error message even though that mandatory segment is there in the idoc?
Please help.
Thanks,
LavanyaHi,
I got the following error message.
Basic type ZCHGBCK does not exist
Message no. EA447
Diagnosis
IDoc type ZCHGBCK could not be found.
Procedure
Please enter an IDoc type that exists.
Srinivasan,
I had tested this with the standard idoc and it was perfect. i am having these issues after extension only.
Thanks,
Edited by: Lavanya Boora on Jun 2, 2008 10:55 PM -
UTL_SMTP Installation Problem, Package Created with errors
Hi Forum Friend!
I tried to Install UTL_SMTP Package in my Oracle8 Release 8.0.6.1.0. A friend of mine sent me the UtLSMTP.SQL Script and I run from SQL+ connected as SYS. When I check the Package by the Oracle Schema Manager I Notice that UTL_SMTP has errors so the package will not run successfully. The Errors are the following:
PLS-00103: Encountered the symbol "CONNECTION" when expecting one of the following:
:= . ) , @ % default character
The symbol ":=" was substituted for "CONNECTION" to continue.
I have no Idea how to handle this error. I tried to install the Package in my Developing Database But the Production Database is in HPUX(Unix). Could you please send me some recommendation to solve this issue and start executing the package!
Best Regards
Emmanuel Carrillo Trejos
P.D. LNB, Republic of Panama (Central America).Dear Friends
Well, I think that my Database version is too old to use this package. I think that one time looking for this topic I found something relating sending email using a Host call(I think that using Mail Command from Unix) Does anybody has and Idea how to do it?. Thanks for your time colleagues!
Best Regards
Emmanuel Carrillo Trejos
LNB, Panamà. -
Warning: Function created with compilation errors. ???
I created a function with a warning:
Warning: Function created with compilation errors.
I'd like to know more detailed information about this warning, how to find them?
If only with this warning, I don't know how to correct the definition of the function.
BTW, because it is a warning, I just try to run the sql stmt which will call this function:
SQL> select strdiff(ename, 'FOR') from emp;
select strdiff(ename, 'FOR') from emp
ERROR at line 1:
ORA-06575: Package or function STRDIFF is in an invalid state.
/* strdiff is the name of function */
Thanks in advance!Hi,
I think that your posting may be more suited to the PL/SQL forum.
after the function is created with errors you should try the command:
show err
or
show errors
this should at least give you some idea of what is wrong.
regards Michael -
When i try to import a schema from one oracle to another one (also 11g), it shows the following errors:
Job 999 has been reopened at Wednesday, 12 October, 2011 16:05
Restarting "SYS1"."999":
Processing object type SCHEMA_EXPORT/USER
ORA-39083: Object type USER failed to create with error:
ORA-00959: tablespace 'HSS' does not exist
Failing sql is:
CREATE USER "HSS" IDENTIFIED BY VALUES 'S:EFC32883462E172BE4E973549229FAD75D854E3B6E24F44EB8830F6D09C9;F258BD7AE1E5E74B' DEFAULT TABLESPAC
E "HSS" TEMPORARY TABLESPACE "TEMP"
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'HSS' does not exist
Failing sql is:
GRANT CREATE VIEW TO "HSS"
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
ORA-39083: Object type DEFAULT_ROLE failed to create with error:
ORA-01918: user 'HSS' does not exist
Failing sql is:
ALTER USER "HSS" DEFAULT ROLE ALL
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-31625: Schema HSS is needed to import this object, but is unaccessible
ORA-01435: user does not exist
Failing sql is:
BEGIN
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CON
TEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'ORCL', inst_scn=>'1940096');COMMIT; END;
ORA-39083: Object type TABLE:"HSS"."WKS_PROPERTY" failed to create with error:
ORA-01918: user 'HSS' does not exist
Failing sql is:
CREATE TABLE "HSS"."WKS_PROPERTY" ("ID" NUMBER(10,0) NOT NULL ENABLE, "NAME" VARCHAR2(255 BYTE) NOT NULL ENABLE, "VAL" CLOB
NOT NULL ENABLE, "ORD" NUMBER(10,0) NOT NULL ENABLE) SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE "HSS" LOB ("VAL") STORE AS BASICFILE ( TABLESPACE "HSS" ENABLE STORAGE IN ROW CHUNK 8192 NOCACHE L
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/VIEW/VIEW
ORA-39083: Object type VIEW failed to create with error:
ORA-31625: Schema HSS is needed to import this object, but is unaccessible
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.KUPW$WORKER", line 6573
ORA-44001: invalid schema
Job "SYS1"."999" completed with 102 error(s) at 16:05:12
Execution errors encountered.
Job state: COMPLETED
Can anyone give me a hand?
Many thanksthanks after i create the tablespace in destination db the import can process but it still show some error
Job 9 has been reopened at Wednesday, 12 October, 2011 17:46
Restarting "SYS1"."9":
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"HSS" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
ORA-31684: Object type SEQUENCE:"HSS"."LCM-MIGRATION_ID-SEQ" already exists
ORA-31684: Object type SEQUENCE:"HSS"."WKS_IDENTITY_SEQ" already exists
ORA-31684: Object type SEQUENCE:"HSS"."ESS_FAILOVER_RESOURCE_SEQ" already exists
ORA-31684: Object type SEQUENCE:"HSS"."ESS_FAILOVER_LEASE_OWNER_SEQ" already exists
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "HSS"."CSS_ROLE_LOCALES" 1.258 MB 5322 rows
. . imported "HSS"."CSS_ROLE_MEMBERS" 43.88 KB 127 rows
. . imported "HSS"."HSS_COMPONENT_FILES" 23.69 KB 13 rows
. . imported "HSS"."CSS_GROUPS" 8.476 KB 1 rows
. . imported "HSS"."CSS_IDENTITY" 6.484 KB 2 rows
. . imported "HSS"."CSS_MEMBER_TYPE" 5.468 KB 3 rows
. . imported "HSS"."CSS_PROVISIONING_INFO" 14.12 KB 18 rows
. . imported "HSS"."CSS_ROLES" 42.69 KB 174 rows
. . imported "HSS"."CSS_USERS" 10.63 KB 1 rows
. . imported "HSS"."HSS_COMPONENT" 11.07 KB 57 rows
. . imported "HSS"."HSS_COMPONENT_LINKS" 16.93 KB 134 rows
. . imported "HSS"."HSS_COMPONENT_PROPERTY_VALUES" 38.67 KB 434 rows
. . imported "HSS"."HSS_COMPONENT_TYPES" 10.01 KB 143 rows
. . imported "HSS"."PRODUCT" 8 KB 13 rows
. . imported "HSS"."QRTZ_LOCKS" 5.109 KB 5 rows
. . imported "HSS"."SMA_AUDIT_AREA_DIM" 8.015 KB 28 rows
. . imported "HSS"."SMA_CONFIG" 16.31 KB 116 rows
. . imported "HSS"."SMA_FILTER_DIM" 15.40 KB 116 rows
. . imported "HSS"."SMA_GLOBAL_CONFIG_MAP" 15.24 KB 116 rows
. . imported "HSS"."SMA_GLOBAL_SETTING" 7.664 KB 1 rows
. . imported "HSS"."SMA_TASK_DIM" 16.54 KB 116 rows
. . imported "HSS"."CES_ACL_INFO" 0 KB 0 rows
. . imported "HSS"."CES_APPS" 0 KB 0 rows
. . imported "HSS"."CES_AUTO_PROCESS_TASK" 0 KB 0 rows
. . imported "HSS"."CES_MESSAGES" 0 KB 0 rows
. . imported "HSS"."CES_PARTICIPANT" 0 KB 0 rows
. . imported "HSS"."CES_PARTICIPANT_EVENTS" 0 KB 0 rows
. . imported "HSS"."CES_PROCESS_DEF" 0 KB 0 rows
. . imported "HSS"."CES_PUSH_AUTO_PROCESS_TASK" 0 KB 0 rows
. . imported "HSS"."CES_SYSTEM" 0 KB 0 rows
. . imported "HSS"."CES_TASKS" 0 KB 0 rows
. . imported "HSS"."CES_TASKS_RESULT" 0 KB 0 rows
. . imported "HSS"."CES_USERS" 0 KB 0 rows
. . imported "HSS"."CES_WF_INSTANCES" 0 KB 0 rows
. . imported "HSS"."CSS_DELEGATED_LIST" 0 KB 0 rows
. . imported "HSS"."CSS_DELEGATED_MEMBERS" 0 KB 0 rows
. . imported "HSS"."CSS_GROUP_CACHE_DELTA" 0 KB 0 rows
. . imported "HSS"."CSS_GROUP_MEMBERS" 0 KB 0 rows
. . imported "HSS"."CSS_USER_PREFERENCES" 0 KB 0 rows
. . imported "HSS"."ESS_CLUSTER_SERVER_MAPPING" 0 KB 0 rows
. . imported "HSS"."ESS_FAILOVER_LEASE" 0 KB 0 rows
. . imported "HSS"."ESS_FAILOVER_LEASE_OWNER" 0 KB 0 rows
. . imported "HSS"."ESS_FAILOVER_RESOURCE" 0 KB 0 rows
. . imported "HSS"."HDB_SCHEDULED_TASKS" 0 KB 0 rows
. . imported "HSS"."HSS_COMPONENT_TIERS" 0 KB 0 rows
. . imported "HSS"."LCM_MIGRATION" 0 KB 0 rows
. . imported "HSS"."LCM_MIGRATION_TASK" 0 KB 0 rows
. . imported "HSS"."LCM_MIGRATION_TASK_DETAILS" 0 KB 0 rows
. . imported "HSS"."QRTZ_BLOB_TRIGGERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_CALENDARS" 0 KB 0 rows
. . imported "HSS"."QRTZ_CRON_TRIGGERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_FIRED_TRIGGERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_JOB_DETAILS" 0 KB 0 rows
. . imported "HSS"."QRTZ_JOB_LISTENERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_PAUSED_TRIGGER_GRPS" 0 KB 0 rows
. . imported "HSS"."QRTZ_SCHEDULER_STATE" 0 KB 0 rows
. . imported "HSS"."QRTZ_SIMPLE_TRIGGERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_TRIGGERS" 0 KB 0 rows
. . imported "HSS"."QRTZ_TRIGGER_LISTENERS" 0 KB 0 rows
. . imported "HSS"."SMA_APPLICATION_CONFIG_MAP" 0 KB 0 rows
. . imported "HSS"."SMA_AUDIT_ATTRIBUTE_FACT" 0 KB 0 rows
. . imported "HSS"."SMA_AUDIT_FACT" 0 KB 0 rows
. . imported "HSS"."SMA_PROJECT_CONFIG_MAP" 0 KB 0 rows
. . imported "HSS"."SMA_TEMP_LCM_IN" 0 KB 0 rows
. . imported "HSS"."SMA_TEMP_USER_IN" 0 KB 0 rows
. . imported "HSS"."WKS_GROUP" 0 KB 0 rows
. . imported "HSS"."WKS_IDENTITY" 0 KB 0 rows
. . imported "HSS"."WKS_IDENTITY_XREF" 0 KB 0 rows
. . imported "HSS"."WKS_PROPERTY" 0 KB 0 rows
. . imported "HSS"."WKS_ROLE" 0 KB 0 rows
. . imported "HSS"."WKS_SUBJECT" 0 KB 0 rows
. . imported "HSS"."WKS_USER" 0 KB 0 rows
. . imported "HSS"."WKS_VERSION" 0 KB 0 rows
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-01403: no data found
ORA-01403: no data found
Failing sql is:
DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'
; BEGIN DELETE FROM "SYS"."IMPDP_STATS"; c(1) := 'TRIGGER_NAME'; c(2) := 'TRIGGER_GROUP'; DBMS_METADATA.GET_STAT_INDNAME('HSS','QRTZ_TRIGGERS',c,2,i_o,i_n); INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/VIEW/VIEW
ORA-31684: Object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-31684: Object type VIEW:"HSS"."VW_APPLICATIONS_CLUSTER" already exists
ORA-31684: Object type VIEW:"HSS"."ESS_FAILOVER_ACTIVE_NODE_VIEW" already exists
Processing object type SCHEMA_EXPORT/VIEW/COMMENT
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
ORA-39111: Dependent object type COMMENT skipped, base object type VIEW:"HSS"."VW_APPLICATIONS" already exists
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYS1"."9" completed with 23 error(s) at 17:46:27
Execution errors encountered.
Job state: COMPLETED -
Trigger compile with after migrated from 8i to 10g
Hi All,
We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
When login to the em to check, I found these 2 errors.
Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
My trigger is a very simple one:
BEGIN
Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
END;
And I'm sure the "TB_COUNER_SEQ" is there.
Do I need to change anything on the trigger when migrating from 8i?
In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?
Thanks a lot.
MikeHi, Mike,
user3211655 wrote:
Hi All,
We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
When login to the em to check, I found these 2 errors.
Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
My trigger is a very simple one:
BEGIN
Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
END;
And I'm sure the "TB_COUNER_SEQ" is there.
Do I need to change anything on the trigger when migrating from 8i?
In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?Grant the necessary privileges on the tables (and any other objects used, like sequences) directly to the owner of the triggers. Privileges granted to a role don't count in AUTHID OWNER stored procedures; the privileges have to be granted to the owner of the stored procedure (or to PUBLIC).
It the error is occurring at position 60, then it looks like you don't have privileges on dual. Login as SYS and
GRANT SELECT ON dual TO PUBLIC;You may need synonyms (perhaps public synonyms) for the objects, too. -
In my Process Flow I have a SQL Plus activity that calls a custom DML Express program. How would I trigger the End with Errors activity if my custom DML program errrors out? Currently my SQL Plus activity is as follows:
--SET SERVEROUTPUT ON
-- PL/SQL
DECLARE
v_cmd VARCHAR2(500);
BEGIN
DBMS_AW.AW_ATTACH('AW', true);
DBMS_AW.EXECUTE('cda logfiles_dir');
v_cmd := 'Call CUSTOM_DML_PROG';
DBMS_AW.EXECUTE(v_cmd);
DBMS_AW.AW_DETACH('AW');
end;
quit
Is there a way to pass a parameter from my DML Express program to the SQL Plus activity that could somehow trigger End with Errors?
KristineHi David,
I have been able to run this process flow that calls my DML program several times however, I am now receiving the following errors:
RPE-01003: An infrastructure condition prevented the request from completing.
RPE-01038: Failed to evaluate expression declare "$LOOP_DETECT$" NUMBER := 0;function...
My function returns a Number and my transformation in the process flow has been defined as having Integer as the Data Type and by default the Literal value is True.
The complex condition has been defined as the following:
"CALL_GS_MTH_END_GL_ACT1"."CALL_GS_MTH_END_GL_ACT1" =0
Any ideas as to why all of a sudden I receive this error? I have been able to workaround this issue by deleting the transformation from the process flow, adding it back and re-deploying the process flow however this is not ideal.
Kristine -
How to resolve create type error?
Hi all,
I am duplicating the contents of schema1 to schema2 on the same database.
So I used expdp schema1/schema1 .... exporting schema1. Then impdp schema2/schema2 remap_schema=schema1:schema2
These 2 schemas have dba privilege.
Why do I get this error:
ORA-39083: Object type TYPE failed to create with error:
ORA-02304: invalid object identifier literal
Failing sql is:
CREATE TYPE "C1DEVADM"."CMQTNQHT" OID 'AC82C504E18C6A98E044001A4B08907C' AS TABLE OF CMQTNQHF;Thanks a lot,Hi;
I already done exporting the data :(
I guess it will be ok if I create the object types manually after impdp right?Yes.
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
Hi,Friends,
I did import a dump file, should be a schema by data pump.Got these errors:
ORA-39083: Object type TABLE failed to create with error
followed error:
ORA-00942: table or view does not exist
or
ORA-00959: tablespace 'USERS2' does not exist
ORA-39112: Dependent object type %s skipped, base object type %s creation failed ORA-39082: Object type created with compilation warnings
Would anybody here can help me out?Thanks!Either pre-create the users2 tablespace in the target database, or use remap_tablespace parameter to specify the target tablespace instead of users2.
As usual, complete syntax is in the doc - http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref342 -
Error while posting a sales order created with reference from contract for
Hi,
I am posting a sales document( Type: WA) created with reference from contract document( type wk2) for delivery. The item category in the sales order of the Item is WAN. On posting this document for delivery I am getting the error as "Item category WAN is not defined". Please help me out how to resolve this issue.
Thanks
JayantHi Jayant,
I think its value contract releated error,
You suppose to check material item category group through T.code-MM02 into sales2 tab and maintain VCIT,
and do item category assignment through T.code- VOV4.
plz.maintain like that,
WK2 - -VCIT- - - WAN(contract item category),
wk2 - - -VCTR- - WAN((contract item category),
you should also maintain same against your standard Sales Document type and for Standard Item category into VOV4,
WA(standard docu.type) -VCIT- - -TAN(your standard docu.type item category),
WA(standard docu.type) - -VCTR(item usage)- -TAN(your standard docu.type item category), -
I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?
what's your home version (click help>about) and was that just a warning so you were able to open the file?
-
Error : Sales order 'create with Reference' to the contract
We have made a value contract. Now we are trying to make a Sales order 'create with Reference' to the contract.
when we do that, we am getting error 'copying material in any value contract item is not permitted'
Any help or directions would be greatly appreciated . We are on Ecc 6.0
RohitAs of now my value contract has just one material. so i dont need assortment module settings. right?
in VTAA settings are as follows
Target type: OR
Source type: ZK1
there is only on item category
Target item category: TAN
Source item category: WKN
Copying requirement : 301
update doc flow : 2
pricing type : C
cont item copy mode : A
DataT am using 151,102,002
There are no schedule line.
Rohit
Edited by: rohit kumar on May 15, 2008 7:36 PM -
Hi,
I am trying to create rdlc file programmatically. Using Memory Table as dataset. Here is my code
' For each field in the resultset, add the name to an array listDim m_fields AsArrayList
m_fields = NewArrayList()
Dim i AsIntegerFor i = 0 To tbdataset.Tables(0).Columns.Count - 1
m_fields.Add(tbdataset.Tables(0).Columns(i).ColumnName.ToString)
Next i
'Create Report 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' Open a new RDL file stream for writingDim stream AsFileStream
stream = File.OpenWrite("D:\MyTestReport2.rdlc")
Dim writer AsNewXmlTextWriter(stream, Encoding.UTF8)
' Causes child elements to be indented
writer.Formatting = Formatting.Indented
' Report element
writer.WriteProcessingInstruction("xml", "version=""1.0"" encoding=""utf-8""")
writer.WriteStartElement("Report")
writer.WriteAttributeString("xmlns", Nothing, "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition")
writer.WriteAttributeString("xmlns:rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner")
writer.WriteStartElement("ReportSections")
writer.WriteStartElement("ReportSection")
writer.WriteElementString("Width", "11in")
writer.WriteStartElement("Body")
writer.WriteElementString("Height", "5in")
writer.WriteStartElement("ReportItems")
writer.WriteStartElement("Tablix")
writer.WriteAttributeString("Name", Nothing, "Tablix1")
writer.WriteElementString("Top", ".5in")
writer.WriteElementString("Left", ".5in")
writer.WriteElementString("Height", ".5in")
writer.WriteElementString("Width", (m_fields.Count * 1.5).ToString() + "in")
writer.WriteStartElement("TablixBody")
' Tablix Columns
writer.WriteStartElement("TablixColumns")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixColumn")
writer.WriteElementString("Width", "1.5in")
writer.WriteEndElement() ' TableColumnNext fieldName
writer.WriteEndElement() ' TablixColumns' Header Row
writer.WriteStartElement("TablixRows")
writer.WriteStartElement("TablixRow")
writer.WriteElementString("Height", ".25in")
writer.WriteStartElement("TablixCells")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixCell")
writer.WriteStartElement("CellContents")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, "Header" + fieldName)
' writer.WriteAttributeString("CanGrow", True)' writer.WriteAttributeString("Keeptogether", True)
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
writer.WriteElementString("Value", fieldName)
writer.WriteStartElement("Style")
writer.WriteElementString("TextDecoration", "Underline")
writer.WriteElementString("PaddingTop", "0in")
writer.WriteElementString("PaddingLeft", "0in")
writer.WriteElementString("LineHeight", ".5in")
''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
writer.WriteEndElement() ' Style
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TexBox
writer.WriteEndElement() ' CellContents
writer.WriteEndElement() ' TablixCellNext
writer.WriteEndElement() ' TablixCells
writer.WriteEndElement() ' TablixRow'writer.WriteEndElement() ' TablixRows Do not close Rows tag here colse it after details'End of Headers'Details Rows'writer.WriteStartElement("TablixRows") Since Rows tag in header is not closed not need to open fresh tag
writer.WriteStartElement("TablixRow")
writer.WriteElementString("Height", ".25in")
writer.WriteStartElement("TablixCells")
ForEach fieldName In m_fields
writer.WriteStartElement("TablixCell")
writer.WriteStartElement("CellContents")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, fieldName)
' writer.WriteAttributeString("CanGrow", True)' writer.WriteAttributeString("Keeptogether", True)
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
'writer.WriteElementString("Value", fieldName)
writer.WriteElementString("Value", "=Fields!" + fieldName + ".Value")
writer.WriteStartElement("Style")
writer.WriteElementString("TextDecoration", "Underline")
writer.WriteElementString("PaddingTop", "0in")
writer.WriteElementString("PaddingLeft", "0in")
writer.WriteElementString("LineHeight", ".5in")
''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
writer.WriteEndElement() ' Style
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TexBox
writer.WriteEndElement() ' CellContents
writer.WriteEndElement() ' TablixCellNext
writer.WriteEndElement() ' TablixCells
writer.WriteEndElement() ' TablixRow
writer.WriteEndElement() ' TablixRows'End of Details Rows
writer.WriteEndElement() ' TablixBody
writer.WriteStartElement("TablixRowHierarchy")
writer.WriteStartElement("TablixMembers")
writer.WriteStartElement("TablixMember")
' Group
writer.WriteElementString("KeepWithGroup", "After")
writer.WriteEndElement() ' TablixMember' Detail Group
writer.WriteStartElement("TablixMember")
writer.WriteStartElement("Group")
writer.WriteAttributeString("Name", Nothing, "Details")
writer.WriteEndElement() ' Group
writer.WriteEndElement() ' TablixMember
writer.WriteEndElement() ' TablixMembers
writer.WriteEndElement() ' TablixRowHierarchy
writer.WriteStartElement("TablixColumnHierarchy")
writer.WriteStartElement("TablixMembers")
'writer.WriteStartElement("TablixMember")ForEach fieldName In m_fields
writer.WriteStartElement("TablixMember")
writer.WriteEndElement() ' TablixMemberNext' writer.WriteEndElement() ' TablixMember
writer.WriteEndElement() ' TablixMembers
writer.WriteEndElement() ' TablixColumnHierarchy
writer.WriteElementString("DataSetName", "tbdataset")
writer.WriteEndElement() ' Tablix
writer.WriteEndElement() ' ReportItems
writer.WriteEndElement() ' Body
writer.WriteStartElement("Page")
' Page Header Element
writer.WriteStartElement("PageHeader")
writer.WriteElementString("Height", "1.40cm")
writer.WriteStartElement("ReportItems")
writer.WriteStartElement("Textbox")
writer.WriteAttributeString("Name", Nothing, "Textbox1")
writer.WriteStartElement("Paragraphs")
writer.WriteStartElement("Paragraph")
writer.WriteStartElement("TextRuns")
writer.WriteStartElement("TextRun")
writer.WriteElementString("Value", Nothing, "ABC CHS.")
writer.WriteEndElement() ' TextRun
writer.WriteEndElement() ' TextRuns
writer.WriteEndElement() ' Paragraph
writer.WriteEndElement() ' Paragraphs
writer.WriteEndElement() ' TextBox
writer.WriteEndElement() ' ReportItems
writer.WriteEndElement() ' PageHeader
writer.WriteEndElement() ' Page
writer.WriteEndElement() ' ReportSection
writer.WriteEndElement() ' ReportSections' DataSources
writer.WriteStartElement("DataSources")
writer.WriteStartElement("DataSource")
writer.WriteAttributeString("Name", Nothing, "tbdata")
writer.WriteStartElement("DataSourceReference")
writer.WriteEndElement() ' DataSourceReference
writer.WriteEndElement() ' DataSource
writer.WriteEndElement() ' DataSources'DataSet
writer.WriteStartElement("DataSets")
writer.WriteStartElement("DataSet")
writer.WriteAttributeString("Name", Nothing, "tbdataset")
writer.WriteStartElement("Query")
writer.WriteElementString("DataSourceName", Nothing, "tbdata")
'writer.WriteElementString("CommandText", Nothing, "/* Local Query */")
writer.WriteElementString("CommandText", Nothing, "TableDirect")
writer.WriteEndElement() ' Query'Fields
writer.WriteStartElement("Fields")
ForEach fieldName In m_fields
writer.WriteStartElement("Field")
writer.WriteAttributeString("Name", Nothing, fieldName)
writer.WriteElementString("DataField", fieldName)
writer.WriteElementString("rd:TypeName", fieldName.GetType.ToString)
writer.WriteEndElement() ' FieldNext
writer.WriteEndElement() ' Fields' rd datasetinfo
writer.WriteEndElement() ' DataSet
writer.WriteEndElement() ' DataSets
writer.WriteEndElement() ' Report' Flush the writer and close the stream
writer.Flush()
stream.Close()
'Convert to StreamDim myByteArray AsByte() = System.Text.Encoding.UTF8.GetBytes("D:\MyTestReport2.rdlc")
Dim ms AsNewMemoryStream(myByteArray)
'Supply Stream to ReportViewer
ReportViewer1.LocalReport.LoadReportDefinition(ms)
ReportViewer1.LocalReport.Refresh()When I open rdlc in designer I get following error"Data at the root level is invalid."When I run the aspx I get following error
An error occurred during local report processing.
The definition of the report '' is invalid.
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas.
Details: Data at the root level is invalid. Line 1, position 1.
Can anybody guide me?Hi Wendy Fu,
Thanks for your feed back. I could see Microsoft.ReportViewer.ProcessingObjectModel.dll to add as reference to my project. Actually I can open generated rdlc in designer, at run time I get error. I could not make out where is the exact mistake out of three
options flashed.
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services
or contain content that is not well-formed or not valid based on Reporting Services schemas
Details: Data at the root level is invalid
My web config has following references
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
May be I have to change these versions to 9 or 10.
First I will try adding Microsoft.ReportViewer.ProcessingObjectModel.dll .
Once thanks for your reply.
Races
Maybe you are looking for
-
Is there a way to view the notebook layout view on Word for mac on an iPad?
Is there a way to view the notebook layout view on Word for mac on an iPad?
-
How do i get my number files on my iPad from my iMac computer?
How do I now get my Number 09 files up on my ipad so the will sync in the cloud?
-
How Do I Create a Blank Line Mail RULE ?
I've been getting a lot of Spam that always features friend's email address's and a Blank Subject line. So I would like to create a Rule that if the Subject line is Blank, send it to the Trash. But of course it won't let me create a rule leaving one
-
WRT54G freezes? No connection.
I've tried digging around for an answer to this issue -- others seem to have similar issues, but I'm not convinced they're the same. I bought a WRT54G v.8 a little over a year ago. It's worked beautifully until recently, within the past few days. Ess
-
Publication Personalization Problem
I am using a Publication to distribute reports to individuals within my company. My Webi report contains information for individual sales reps and a summary by market. For example, Sales Rep 123 receives his numbers and sees his Market total so that