Update record in Pre-update
Hi all,
I got the master-detail block, where only certain field in child block for which are allow to updated. Hence, i have the update statement in pre-update trigger.
UPDATE OT_PO_ITEM_DEL SET PID_UPD_UID = 'BC'
WHERE PID_PI_SYS_ID = :OT_PO_ITEM.PI_SYS_ID;
:ot_po_item[ block name].pi_sys_id[FK to pid_pi_sys_id]
I am not sure why the above simple statement does not work ? But if I click on the default save button in form. The records being saved however the field i am try to update is not visible from user and I need to pass the default paramenter via pre-update which is without user's entry.
Please helps. Thanks.
May be that:
loop
v_name := :system.cursor_item;
v_r := name_in(v_name);
-- you check, you have name item and value
exit when replace(v_name, 'BLOCK1.', '') = Get_Block_property('BLOCK', Last_Item);
next_item;
end loop;
Similar Messages
-
Problem with update record, then link to file
Environment:
Dreamweaver 8, MySQL, PHP.
I have a repeating record from my database. I added an Update
Record server behavior for each search result for the result table.
I added a button to the form and changed "submit" to "view".
Pressing "view" is supposed to allow the user to view the detailed
record information.
The Update Record server behavior is supposed to do two
things:
1) add 1 to the 'numViews' filed of the record's database
entry when the "view" button is pressed
2) After updating the numViews field, the form is supposed to
redirect the user to the detailed record
I found that depending on how I create the record, I an do
one of the above 2 behaviors, but not both. HELP!
To add 1 to the numViews field, I created a form variable
called incNumViews, which does the following:
<?php echo $row_rsSearchResults['recipeNumViews']+1; ?>
Very simple.
The Update Record ends up changing the form action to the
following:
<?php echo $editFormAction; ?>
Looking at the code for this, I ee the following:
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
But when the "view" (ie: submit" button for the form is
pressed, I get redirected back to the same repeating record search
result page, not to the record detail page.
However, the numViews field in the record is getting properly
incremented.
I tried to get around this by changing the Update Record
behavior "After updating, go to:" field to point to the record
detail page, and tried passing a parameter tot he recordID I want
to see details of, as a URL parameter, but that does not work.
If I change the Update Record form action from
<?php echo $editFormAction; ?>
to
record_detail.php?recordID=<?php echo
$row_rsSearchResults['recordID']; ?>
Then I am able to link to the detail page, but NOT update the
numViews field.
HOW can I fix this to both update the record, then jump to
the detail page with a URL parameter being passed, when I click the
"view" (submit) button o the form??
Thanks in advance.If the user's computer doesn't know what to do with a TIFF file, I guess that Open button would be missing. Tiff is not a web normal file format, or even a common one for graphics applications....
-
Problems - Update Record/Conditional regions
Hi,
I am building an admin interface in ASP VBScript, and have
built an 'edit' page which has a load of text fields, with initial
values bound to the data in a database, and which are hidden or
shown depending on whether there is data in those fields in the
database. Then there is the Update Record behaviour to update the
info in the database.
However, when I go to the edit page on the web, and click the
udate button, it returns an error - i.e.
'there was a problem processing the requested URL'.
Is this because there are fields on the page which, since
they have not been displayed, are not being included in the Update
Record?
How can I get the update record to work?
Please help!
thanks
Ian
Using DW8 on Mac
Server: Win2000Ian
If you are simply hiding fields by setting their type to
hidden then this
should not cause an update script to fail. However if you are
simply not
writing them to page then this will cause an issue.
I suggest that you turn off friendly http errors (in tools:
Internet Options
: Advanced) and then post exactly what the error is.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"iandobie" <[email protected]> wrote in
message
news:e6ji55$i8t$[email protected]..
> Hi,
> I am building an admin interface and have built an
'edit' page which has a
> load of text fields, with initial values bound to the
data in a database,
> and
> which are hidden or shown depending on whether there is
data in those
> fields in
> the database. Then there is the Update Record behaviour
to update the info
> in
> the database.
> However, when I go to the edit page on the web, and
click the udate
> button, it
> returns an error - i.e.
> 'there was a problem processing the requested URL'.
> Is this because there are fields on the page which,
since they have not
> been
> displayed, are not being included in the Update Record?
> How can I get the update record to work?
> Please help!
> thanks
> Ian
>
> Using DW8 on Mac
> Server: Win2000
> -
Unable to insert the record to table using pre-insert & pre-update trigger
Hi All,
I have tried to insert and update the backend table using the pre-update and pre-insert triggers. But its not working for me. Please find below the code which i have used in the triggers.
Pre-insert trigger:
DECLARE
v_cust_num_cnt NUMBER;
BEGIN
SELECT COUNT(customer_number)
INTO v_cust_num_cnt
FROM cmw_bc_mobile_number
WHERE substr(customer_number,1,15)=substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15);
IF v_cust_num_cnt = 0 THEN
INSERT INTO cmw_bc_mobile_number (CUSTOMER_NUMBER
,MOBILE_NUMBER
,CREATION_DATE
VALUES
(substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15)
,:BLOCKNAME.MOBILE_NUMBER
,SYSDATE
COMMIT;
END IF;
END;
PRE_UPDATE TRIGGER:
BEGIN
IF :SYSTEM.RECORD_STATUS = 'CHANGED' THEN
UPDATE apps.cmw_bc_mobile_number
SET mobile_number = :BLOCKNAME.MOBILE_NUMBER,
creation_date = SYSDATE
WHERE customer_number=substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15);
COMMIT;
END IF;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
Please let someone assist in gettting it resolved.
Regards,
Raj.Just use MESSAGE (we don't know what fnd_message is, that is some custom code):
message('v_cust_num_cnt='||v_cust_num_cnt);
IF v_cust_num_cnt = 0 THEN
message('Now inserting...');
INSERT INTO cmw_bc_mobile_number (CUSTOMER_NUMBER...
else
message('Nothing to insert');
end if; -
Formula field, Detail records not getting updated
Hello seniors,
i need help on 2 issues;
first, Issue No. 1
i have master-detail form with the following tables;
POH master record table
PH_NO pk
PH_PARTY
PH_FXRATE exchange rate
PH_PD_LOCAL_TOT total of PD_LOCAL_AMT from details records
PH_PD_FOREIGN_TOT total of PD_FOREIGN_AMT from details records
POD Detail records table
PD_PHNO fk
PD_ITEM
PD_QTY
PD_PRICE
PD_LOCAL_AMT
PD_FOREIGN_AMT
M_PD_FOREIGN_AMT Formula (PD_QTY * PD_PRICE)
M_PD_LOCAL_AMT Formula (M_PD_FOREIGN_AMT/PH_FXRATE)
CTRL Control block
M_PH_PD_LOCAL_TOT Summary-Sum-Table=POD, Field=M_PD_LOCAL_AMT
M_PH_PD_FOREIGN_TOT Summary-Sum-Table=POD, Field=M_PD_FOREIGN_AMT
Triggers
POH Table
Pre-Insert and Pre-Update
:PH_PD_LOCAL_TOT := :M_PH_PD_LOCAL_TOT
:PH_PD_FOREIGN_TOT := :M_PH_PD_FOREIGN_TOT
POD Table
Pre-Insert and Pre-Update
:PD_LOCAL_AMT := :M_PD_FOREIGN_AMT
:PD_FOREIGN_AMT := :M_PD_LOCAL_AMTThe problem that i am facing is while i UPDATE a record.
whats happening is when the form is in Query mode and if i change a record, lets say
change the value of the field PH_FXRATE, then what happens is, on screen i get all Detail
record's M_PD_LOCAL_AMT Calculated & Updated, but the actual db field PD_LOCAL_AMT remains unchanged
in the database after i press F10 or Save button.
The update takes place for the POH table and form displays 1 Record updated.
whereas if i have for example 4 detail records, then form should update those as well and display finally
5 records updated is'nt it..?
In query mode,if i insert new or modify an existing record in the detail block, then at this point, form marks just
that particular record as CHANGED. Thus making changes at db level only for this particular record.
what i want is once i make changes to the field PH_FXRATE, then form should mark all detail records
as CHANGED and on saving, the PRE-UPDATE tigger of POD table should come in to force and the changes
in the values of M_PD_LOCAL_AMT in turn to the db field PD_LOCAL_AMT should get affected at db level.
i have also tried to put these assignments
:PD_LOCAL_AMT := :M_PD_FOREIGN_AMT
:PD_FOREIGN_AMT := :M_PD_LOCAL_AMT
at PRE-UPDATE of POH table, thinking that form might consider
all detail records, at this point. i noticed that it does it, but only picks
1 record (i guess just the first record always) and change a db level.
No. 2 Issue:
i have put a POST-FORM-COMMIT at form level for auditing the Total fields of POH table against the details records.
Declare
M_LC_AMOUNT NUMBER(13,3);
M_FC_AMOUNT NUMBER(13,3);
Begin
SELECT SUM(PD_LOCAL_AMT) INTO M_LC_AMOUNT
FROM POD
WHERE PD_PHNO = :PD_PHNO;
IF :PH_PD_LOCAL_TOT != M_LC_AMOUNT THEN
:PH_PD_LOCAL_TOT := M_LC_AMOUNT;
END IF;
SELECT SUM(PD_LOCAL_AMT) INTO M_FC_AMOUNT
FROM POD
WHERE PD_PHNO = :PD_PHNO;
IF :PH_PD_FOREIGN_TOT != M_FC_AMOUNT THEN
:PH_PD_FOREIGN_TOT := M_FC_AMOUNT;
END IF;
End;i was testing and notice that in a query mode when all records are displayed.
if i go on changing values on records and save or save later keeping the form open,
form allows, but if 1 come back to a record which i may have changed and saved earlier, then it flashes Error;
"Records has been changed by another user, requery to ..."
i want to do an Audit before final db-Commit and keep the user free from this Error..
Please tell me first of all, is my approach for both of my issues,correct.?
if not, then please suggest what should be changed.
i'll highly appreciate for all your help. TYVM. Regards.I did exactly as you suggested. It works well for new record insertion
but when i press F7 to query it, its flashes messages before displaying detail records
Field must be entered.
Mr. Andreas,
i have problem only when i change value of PH_FXRATE. It re-calculates on screen values for M_PD_LOCAL_AMT
(Formula M_PD_FOREIGN_AMT/PH_FXRATE)
i want the changed value of M_PD_LOCAL_AMT to be saved in the actual db-field PD_LOCAL_AMT.
for this i have PRE-UPDATE on POD Table
:PD_LOCAL_AMT := :M_PD_LOCAL_AMT
:PD_FOREIGN_AMT := :M_PD_FOREIGN_AMT
Which is doing that.It is not marking the detial record as CHANGED.
I tried giving the above assignments in the PRE-UPDATE on POH table.
It saves the changed value in the db-field, but not all detail records, if more than 1.
what you have suggested, will get me acheived what i am looking for..? -
Insert in Pre-Update...please help...
hii all...
i have master/detail block form....
Table - T_MAST (MASTER)
M_CODE
M_NO
M_DATE
M_PARTY
M_DISC_AMT
M_CHRGS
Table - T_DET (DETAIL)
D_MCODE
D_MNO
D_ITEM
D_QTY
D_PRICE
D_AMT (Non-DB Formula item, calculates D_QTY * D_PRICE)
D_TOT_AMT (Non-DB Summary item, sums D_AMT)
D_NET_AMT (Non-DB Formula item, D_TOT_AMT-M_DISC_AMT+M_CHRGS)
on saving, in pre-insert i want to save some columns from T_MAST & T_DET blocks
into another table T_ACNT;
Table - T_ACNT
ACNT_CODE
ACNT_NO
ACNT_DATE
ACNT_PARTY
ACNT_DC
ACNT_AMT
I gave the follwing 2 inserts...in
PRE-INSERT (Header Block)
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:M_PARTY,
'C',:D_NET_AMT);
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:GLOBAL.M_CASH_CODE,
'D',:D_NET_AMT);
Pre-Insert have no issues...
but the problem i am facing is, when i update record after any change..
in PRE-UPDATE, first i am Deleting the record already existing in T_ACNT table,
matching with the current header record and then Insert record with new values..
PRE-UPDATE (Detail Block)
DELETE FROM ACNT_TXN
WHERE ACNT_CODE = :M_CODE
AND ACNT_NO = :M_NO
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:M_PARTY,
'C',:D_NET_AMT);
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:GLOBAL.M_CASH_CODE,
'D',:D_NET_AMT);
Modifying 1 record at a time, either master,detail or both has no problem,
but if i update more than 1 header records or updating combination of both header-detail records.
doesn't insert new records in ACNT_TXN correctly....
for example, with the followinf data;
M_CODE M_NO M_DATE M_PART M_DISC_AMT M_CHRGS
SAL 24 15-JUN-10 C1006 1
SAL 25 23-JUN-10 C1003 2
D_MCOD D_MNO D_ITEM D_QTY D_PRICE
SAL 24 987654321 2 2
SAL 25 P0140000014 2 4
Initially PRE-INSERT result goes well.. in ACNT_TXN...no issues
ACN ACNT_NO ACNT_DATE ACNT_C A ACNT_AMT
SAL 24 15-JUN-10 C1006 D 5
SAL 24 15-JUN-10 5500 C 5
SAL 25 23-JUN-10 5500 C 6
SAL 25 23-JUN-10 C1003 D 6lets assume that i change header field of record with M_No. 24 and 25
and remaining on record no. 25 i press save button...
what i notice is, Form start to commit the changes from the first changed record,,
which in my case from header record No. 24...and thats fine...
since the record is changed, so pre-update gets fired.
First, it deletes the record from ACNT_TXN with matching header record no.24 but...
when re-Inserting in ACNT_TXN, it is replacing values of record no.24 with the values current record no 25...!
i put a message trapping the value of D_NET_AMT before Delete and found this...
kindly if any one help me correct my logic n approach...
TY..hello,
No need to delete the record from the table ACNT_TXN.
Just check it if record is exist then update it.
Do you have any contraints in your detail table?
i assumed you have this contrainst field :
as primary or unique :-
ACNT_CODE
ACNT_NO
ACNT_DC
if no constraint then just make function to check if exist then update the record.
since you have the code on your forms then i will suggest this code if it suite to your need.
Ok. can you just try it again by pre-update under dtl_blk.
begin
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:M_PARTY,
'C',
:D_NET_AMT);
exception when duP_val_on_index then
begin
update T_ACNT
set ACNT_AMT = nvl(:D_NET_AMT,0)
where ACNT_CODE = :M_CODE
ACNT_NO = :M_NO
ACNT_DC = 'C';
end;
end;
OR-
begin
update T_ACNT
set ACNT_AMT = nvl(:D_NET_AMT,0)
where ACNT_CODE = :M_CODE
ACNT_NO = :M_NO
ACNT_DC = 'C';
IF SQL%NOTFOUND THEN
begin
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:M_PARTY,
'C',
:D_NET_AMT);
end;
end if;
end;
begin
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:GLOBAL.M_CASH_CODE,
'D',:D_NET_AMT);
exception when duP_val_on_index then
begin
update T_ACNT
set ACNT_AMT = nvl(:D_NET_AMT,0)
where ACNT_CODE = :M_CODE
ACNT_NO = :M_NO
ACNT_DC = 'D';
end;
end;
OR-
begin
update T_ACNT
set ACNT_AMT = nvl(:D_NET_AMT,0)
where ACNT_CODE = :M_CODE
ACNT_NO = :M_NO
ACNT_DC = 'D';
IF SQL%NOTFOUND THEN
begin
INSERT INTO T_ACNT VALUES (:M_CODE,
:M_NO,
:M_DATE,
:M_PARTY,
'D',
:D_NET_AMT);
end;
end if;
end;
hope will help you...
Note: this code i didnt try it, maybe you need some review but i give the idea.
charles -
Setting required property on pre-update trigger
i have set required property of 3 items on pre-update trigger of a block such that if user updates a listbox and if the updated value is 'P' for perentage then the user must fill all the 3 fields but even after setting the required property the record is saved if the fields are empty. the trigger is firing & everything looks ok. the portion of code i've used is:
BEGIN
IF :ROUTING_ENGINE_RULES.DISTRIBUTION_TYPE = 'P' THEN
PAUSE; /*TO CHECK ENTRY ON TRIGGER*/
SET_ITEM_PROPERTY('carrier_cd_percent1',UPDATE_ALLOWED,PROPERTY_true);
('carrier_cd3_percent',UPDATE_ALLOWED,PROPERTY_true);
I'VE SET OTHER 2 FIELDS SIMILARLY
put your code in when-listvalue-changed trigger for that 'P' trigger.
to put it in existng place is still too late. -
Error in updating records brought by LOV
Hi everybody
I am using Oracle 10 g
when fetching data from the database by choosing a specific record from LOV then trying to make "save" means "commit" I have this error
FRM-40509: Oracle error: unable to update record
I think there is a problem in mapping btw the record in the form and the cursor pointing to that record in the database because when i execute "next_recod" button after choosing one in LOV it go to the record next the one specified before choosing from LOV
knowing that updating process working correctly when choosing by ("first_record, previous_record, next_record or last_record)
so what is the solution
please help
thank you very muchyes please
I didn't know what do you mean by customized or default menu
I build LOV using the wizard and bind it by a query to a table then make Show_LOV from the form
so when I choose one of the rows and they brought to the text boxes assigend to them after that when I make "Commit" I got that error
thank you for help
and sorry for bieng late in reply, I don't have enternet after 2:00 pm -
Lock records when in Update Mode / problem with 2 users on 1 document
Hi,
when user A updates e.g. a purchase order and user B goes into this purchase order and updates e.g. the remark before user A, then user A cannot save his changes. Imagine user A has put in several new lines and has made several price adjustments, his work will be gone.
In most cases this should not happen very often, but it could. Since B1 recognizes when another user has updated the document before, it should be possible to solve this situation more convenient (either by lock, saving to a new document, comparing to the old version, etc).
Thank you
SebastianHi Sebastian,
Your request is understandable. It may not have big problem to change current process by coding. However to lock records whenever in update mode, that could create too many locks. It is basically not good for performance. The trade off may be allowing save as function. However, this may not be a desirable solution for most end users.
Thanks,
Gordon -
Need help to insert and update records in MDM
Hi ,
I am trying to develop an webdynpro application which can create and update records in tables of a repository of MDM . For example .. I want to insert values and later update values in Vendor table.
I am new to webdynpro and MDM. If any one can help step by step or can send a sample code which I can be ready to use that would be great help.
If anyone can have a sample code .. kindly mail to "[email protected]"
It is urgent. Please help.
Regards,
Niraj
Edited by: Niraj Kumar on May 23, 2008 6:50 AMHi Niraj,
Are u going to work with webdynpro Java/ABAP?
some materials which are found useful are sent.
Cheers,
Mary -
How can I update record in the block that Data Source is PROCEDURE?
I like use Procedure as the Data Source of block.It's very flexible.
Usually I do this only query the record,but now I must update record in the block that Data Source is Procedure.
What next step can I do?Can anyone offer some examples?
This is example, you goto
http://www.2shared.com/file/1923834/e0b65fb7/Example.html
Wait about 30 sec, Click "Save file to your PC: click here",and then you can download it.<p>I have written an article about some advanced Forms features.
Have a look at the 2.3.2 paragraph</p>
Francois -
Mapping problem with compressed key update record
Hi, could you please advise?
I'm getting the following problem:
About a week ago replicat abened with "Error in mapping" error. I found in discard file some record looking like:
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Where filed9 = @GETENV("GGHEADER", "COMMITTIMESTAM"), field10 = = @GETENV("GGHEADER", "COMMITTIMESTAM"), others are table fields mapped by USEDEFAULTS
So I got Mapping problem with compressed key update record at 2012-06-01 15:44
I guess I need to mention that extract failed in 5 minuts before it with: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <[CFileInfo::Read] Timeout expired after 10 retries with 1000 ms delay, waiting to read transaction log or backup files. To increase the number of retries, use SETENV (GGS_CacheRetryCount = n) in Extract parameter file. To control retry delay time, use SETENV (GGS_CacheRetryDelay = n). handle: 0000000000000398 ReadFile GetLastError:997 Wait GetLastError:997>.
I don't know if it has ther same source as data corruption, could you tell me if it is?
Well, I created new extract, starting 2012-06-01 15:30 to check if there was something with extract at the time, but got the same error.
If I run extract beging at 15:52 it starts and works.
But well, I got another one today. Data didn't look that bad, but yet one column came with null value:( And I'm using it as a key column, so I got Mapping problem with compressed key update record again:(
I'm replicating from SQL Server 2008 to Oracle 11g.
I'm actually using NOCOMPRESSUPDATES in Extract.
CDC is enabled for all tables replicated. The only thing is that it is enabled not by ADD TRANDATA command, but by SQL Server sys.sp_cdc_enable_table, does it matter?
Could you please advise why does it happen?Well, the problem begins somewhere in extract or before extract, may be in transaction log, I don't know:(
Here are extract parameters:
EXTRACT ETCHECK
TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
SOURCEDB TEST, USERID **, PASSWORD *****
exttrail ./dirdat/ec
NOCOMPRESSUPDATES
NOCOMPRESSDELETES
TABLE tst.table1, COLS (field1, field2, field3, field4, field5, field6, field7, field8 );
TABLE tst.table2, COLS (field1, field2, field3, field4 );
Data pump:
EXTRACT DTCHECK
SOURCEDB TEST, USERID **, PASSWORD *****
RMTHOST ***, MGRPORT 7809
RMTTRAIL ./dirdat/dc
TABLE tst.table1;
TABLE tst.table2;
Replicat:
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
Rpt file for replicat:
Oracle GoldenGate Delivery for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
Windows x64 (optimized), Oracle 11g on Apr 22 2011 00:34:07
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-05 12:49:38
Operating System Version:
Microsoft Windows Server 2008 R2 , on x64
Version 6.1 (Build 7601: Service Pack 1)
Process id: 2264
Description:
** Running with the following parameters **
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 512M
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 1G
CACHESIZEMAX (strict force to disk): 881M
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Database Language and Character Set:
NLS_LANG = "AMERICAN_AMERICA.CL8MSWIN1251"
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "CL8MSWIN1251"
For further information on character set settings, please refer to user manual.
** Run Time Messages **
Opened trail file ./dirdat/dc000000 at 2012-06-05 12:49:39
2012-06-05 12:58:14 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 0, rba 925 (aborted 0 records).
MAP resolved (entry tst.table1):
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
2012-06-05 12:58:14 WARNING OGG-00869 No unique key is defined for table table1. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
Using the following default columns with matching names:
field1=field1, field2=field2, field3=field3, field4=field4, field5=field5, field6=field6, field7=field7, field8=field8
Using the following key columns for target table R_019_000001.TCALCULATE: field3.
2012-06-05 12:58:14 WARNING OGG-01431 Aborted grouped transaction on 'tst.table1', Mapping error.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
2012-06-05 12:58:14 WARNING OGG-01151 Error mapping from tst.table1 to tst.table1.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
Source Context :
SourceModule : [er.main]
SourceID : [er/rep.c]
SourceFunction : [take_rep_err_action]
SourceLine : [16064]
ThreadBacktrace : [8] elements
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x143034) [0x00000001402192B4]]
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x11dd44) [0x00000001401F3FC4]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x000000014009F102]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B29CC]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B8887]]
: [C:\App\OGG\replicat.exe(releaseCProcessManagerInstance+0x25250) [0x000000014028F200]]
: [C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x000000007720652D]]
: [C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x000000007733C521]]
2012-06-05 12:58:14 ERROR OGG-01296 Error mapping from tst.table1 to tst.table1.
* ** Run Time Statistics ** *
Last record for the last committed transaction is the following:
Trail name : ./dirdat/dc000000
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 249 (x00f9) IO Time : 2012-06-01 15:48:56.285333
IOType : 115 (x73) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 44 AuditPos : 71176199289771
Continued : N (x00) RecCount : 1 (x01)
2012-06-01 15:48:56.285333 GGSKeyFieldComp Len 249 RBA 987
Name: DBO.TCALCULATE
Reading ./dirdat/dc000000, current RBA 987, 0 records
Report at 2012-06-05 12:58:14 (activity since 2012-06-05 12:58:14)
From Table tst.table1 to tst.table1:
# inserts: 0
# updates: 0
# deletes: 0
# discards: 1
Last log location read:
FILE: ./dirdat/dc000000
SEQNO: 0
RBA: 987
TIMESTAMP: 2012-06-01 15:48:56.285333
EOF: NO
READERR: 0
2012-06-05 12:58:14 ERROR OGG-01668 PROCESS ABENDING.
Discard file:
Oracle GoldenGate Delivery for Oracle process started, group RTCHECK discard file opened: 2012-06-05 12:49:39
Key column filed3 (0) is missing from update on table tst.table1
Missing 1 key columns in update for table tst.table1.
Current time: 2012-06-05 12:58:14
Discarded record from action ABEND on error 0
Aborting transaction on ./dirdat/dc beginning at seqno 0 rba 987
error at seqno 0 rba 987
Problem replicating tst.table1 to tst.table1
Mapping problem with compressed key update record (target format)...
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Process Abending : 2012-06-05 12:58:14 -
Mapping problem with compressed key update record (target format)...
Hi Guys,
Getting below error while replication from Source to target. Source table is having NOT NULL Column, but on target replicat process giving error about some NULL value ??
How to overcome this issue, any idea...
2011-08-04 10:35:04 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK starting.
2011-08-04 10:35:05 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK started.
2011-08-04 10:35:06 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: OCI Error ORA-01407: cannot update ("INFRA"."CUST"."CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE" = :a4,"ORD_QTY" = :a5,"ORD_PRICE" = :a6,"CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.
2011-08-04 10:35:06 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Aborted grouped transaction on 'INFRA.CUST', Database error 1407 (ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL).
2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
2011-08-04 10:35:06 *WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: SQL error 1407 mapping INFRA.CUST to INFRA.CUST OCI Error ORA-01407:* *cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE"=:a4,"ORD_QTY"*
*= :a5,"ORD_PRICE" = :a6,"SCRP_CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.*
2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
2011-08-04 10:35:06 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Error mapping from INFRA.CUST to INFRA.CUST.
2011-08-04 10:35:06 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: PROCESS ABENDING.
Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-04 10:35:05
Current time: 2011-08-04 10:35:06
Discarded record from action ABEND on error 1407
OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
(status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
error at seqno 68708 rba 44132192
Problem replicating INFRA.CUST to INFRA.CUST
*Mapping problem with compressed key update record (target format)...*
ORD_QTY = 500
ORD_PRICE = 37430
SCRP_CODE =
MKRT_CODE = N
Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-
04 10:35:05
Current time: 2011-08-04 10:35:06
Discarded record from action ABEND on error 1407
OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
(status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
error at seqno 68708 rba 44132192
Problem replicating INFRA.CUST to INFRA.CUST
Mapping problem with compressed key update record (target format)...
ORD_QTY = 500
ORD_PRICE = 37430
SCRP_CODE =
MKRT_CODE = N
Any inputs / help would be appreciated.
Regards,
ManishThe SCRP_CODE column has a NOT NULL constraint. The ORA-01407 error is telling you that you cannot update or set a value for this column to null because of the constraint. This has absolutely nothing to do with an index. You can use a marker/sentinel value in lieu of using NULL. For a numeric field, where everything is positive, a negative value (-1) can be decoded as meaning null. For a character field, a code such as NA can represent NULL.
This also has nothing to do (directly) with GoldenGate failing because of this error. The underlying SQL statement will fail everywhere, regardless of the tool or application. It is not a case of failing only in GoldenGate. -
Getting the error "Error while trying to update record" when I try to force complete a plan in DAC
Hello Everyone ,
I am using OBIA 7.9.3.7 . One of my execution plan has finished executing all the tasks but it is still in running mode . When I try to force complete it , it gives the error " Error while trying to update record" . Upon checking the log file , I found the below errors :
MESSAGE:::ORA-04092: cannot COMMIT in a trigger
ORA-06512: at "DAC_CUSTSCM.ETL_FAIL_NOTOFICATION", line 9
ORA-04088: error during execution of trigger 'DAC_CUSTSCM.ETL_FAIL_NOTOFICATION'
EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
The Plan is in running state for past couple of days . I tried to re-start the DAC services , but again it gave the same error . Kindly suggest .
Regards
SatyendraJust to correct , the version of obia is 7.9.6.3
-
Problems loading updates for PSE/PRE 9 after re-installation
Hi
After having upgraded Windows 8.1 to 64 bit (earlier 32 bit) I re-installed both PSE 9 and PRE 9 and registered both of them
Next step was to download PSE/PRE updates (packages available for both products) but that ends with error messages
Adobe Photoshop Elements 9.0.3 Update
There was an error downloading this update. Please quit and try again later.
Photoshop Camera Raw 6.5 Update
There was an error downloading this update. Please quit and try again later.
Premiere Elements 9.0.1 Updater
There was an error downloading this update. Please quit and try again later.
I quit and came back later - several times - yesterday and today - but no chance to load the updates.
I really need the updates at least for Camera Raw 6.5 which refuses to open CR2 files from a Canon EOS 60D
My guess was that it could have to do with missing deactivation of my previous installation (meanwhile fixed, by booting into 32bit Windows 8.1 - still available on another partition, deactivating and removing both PRE and PSE).
So I was in contact with Adobe Support via chat in case my serials had to be unlocked but they just replied that I would have received another error message and that I shall contact the forum for older products like PSE9
But they also stated that the updates are available @Adobe, no known system problems.
I hope you have a better answer.
Thank you for helping!
Br
Bernd
PS:
System Config: i5 3.2 GHz, 12 GB RAM, Windows 8.1 x64 t (new installed), NVidia GeForce GT520, latest driver
Main Adobe products in use: Lightroom 5.6 (x64), PSE 9 & PRE 9
Internet Connection: Fibre 100 Mbits up/down (this cannot be the reason )It's an issue on adobes side.
The easiest thing to do is download and install the updates from here:
photoshop elements 9
Adobe - Photoshop Elements : For Windows
premiere elements 9
Adobe - Premiere Elements : For Windows
Maybe you are looking for
-
My itunes wont recognize my iphone 5s how do i fix it?
but it recognizes other peoples iphones and my phone also works on other laptops and desktops just not mine, ive tried reinstalling itunes but nothing works.
-
I installed a program called iMesh to play music on my computer via the internet. When I used Firefox now the search windows have been taken over by 'iMesh Web Search' and they don't bring up the same lists when I searched Firefox previously; e.g. it
-
COPA Report as Per Characterstics in Variant Configuration
Hi, I need to develop a COPA Report for the characterstics which are created in Variant Configuration. Kindly help me in bringing those Variant configuration characterstics to COPA. 1. How can i add those characterstics in COPA? 2. How can i bring th
-
Wrong WBS assigned in Purchase Requisition
Hi Gurus ! I was creating Purchase Requisition for a Project but by mistake took the WBS of another project in CJ20N ( Project Builder ) , and the PO has been made , even the GRN is also over . When Iam trying to open any S_ALR report it is showing 2
-
MSI 870S-G46 8GB Ram Installed/Detected 4GB Usable W7U-x64
Hey folks, So I have a rather iritating issue. I just upgraded to a MSI 870S-G46 and I have been having issues with my ram. I have 2 4GB DDR3 "1600mhz" sticks made by Kingston. I AM running Windows 7 x64, infact I have done a clean install periodical