Unable to insert Activity record
Hi, I am using the webservice to insert a new Activity record.
Step 1: I created a insert object with "ActivityNWS_Activity_Insert_Input",
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
WSOD_Activity.ActivityNWS_Activity_Insert_Input insActObj = new WSOD_Activity.ActivityNWS_Activity_Insert_Input();
WSOD_Activity.ActivityNWS_Activity_Insert_Output outputActObj = new WSOD_Activity.ActivityNWS_Activity_Insert_Output();
insActObj.ListOfActivity = new WSOD_Activity.Activity1[1];
insActObj.ListOfActivity[0] = new WSOD_Activity.Activity1();
..... assigning values to the fields .......
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Step 2: I call the function "Activity_Insert", it returns an "ActivityNWS_Activity_InsertChild_Output" object.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
WSOD_Activity.Activity prxySrvcActivity = new WSOD_Activity.Activity();
prxySrvcActivity.Url = GlobalVariables.mSession.GetURL();
prxySrvcActivity.CookieContainer = GlobalVariables.mSession.GetCookieContainer();
outputActObj = prxySrvcActivity.Activity_Insert(insActObj);
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
When I check the output object, most of attributes are empty, (include the end time, start time, status & type), but the ActivityID and Created By is filled with content.
Next I checked the webservice utilization from the SoD page, there is a insert record showing the transaction has no error.
But when I search the Activity module, I could not find any records.
When I tried using WSDL 2.0 and do the above again, I got the same result.
What's wrong with that ? Could anyone please help me ?
I wounder if I should assign "" to the "ActivityId" when doing insertion or what else............
Has anyone tried this before ?
Similar Messages
-
Unable to insert a record in any table
Hi,
I was working on a procedure in which i had to insert 1,00,000 records each in 3 tables. But the procedure stopped after inserting 56000 records.
After that I again ran the query but now it is not inserting a single record.
I just created a dummy table
create table vinod1(no number);
and tried to insert a value in it using
insert into vinod1 values(100);
But to my surpries the query has been executing since last 10 and has not inserted a row.
I tried it on SQLPLUS also and i am using oracle 10g
Can you please help me and explain why i am not able to insert even though I am able to create table.
Thanks
-Vinod965358 wrote:
The problem is In the new created table I am not able to insert records. The session keeps on executing forever.
Also I am using Plsql developer and in that if I see in tools-> session -> active session
for my session under event the message is 'statement suspended wait error to be cleared'
Edited by: 965358 on Dec 24, 2012 6:30 AMyou have a mystery & we have no clues.
How can we reproduce what you report?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
Unable to insert detail record using Master- Detail Form
Hello All,
I am new to Apex and we are using Apex 2.2.
I am trying to create a Master-Detail page using the Wizard. Unable to insert the detail record as the foreign column value is not inserted. How can i assign this value to the child record before inserting? Hope you got my query.
Pls reply asap
Thanks
Biju
P.S - Can't upgrade to 3.0 yetG'day Guys,
We just had to create a Child Tabular for Master Detail manually ourselves and finally worked out how to set the PARENT_ID field (Foreign Key fields). It was quiet easy after we finally found the little bugger :)
Under The Reports Attributes for the tabular report, located the PARENT_ID field and edit it (column attributes). Goto the "Tabular From Element" and modify the following values:
Default Type: Item (Application or page item name)
default: PXX_FIELD_NAME
Thats it, so when a new row(s) is added this field defaults to PXX_FIELD_NAME.
Told you it was easy, but I've just got to glue my hair back in after near tearing it out.
Reagrds
Mark -
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; -
Oracle forms error frm-40508: unable to insert record
Hi Everyone,
I have been having this problem for 2 weeks and I realize that I spent alot of time I couldn't get to fix the problem so I need your help.
Here is my situation. First, I installed Oracle 10g in my laptop with Oracle forms10g and Oracle forms904i. I had oracle_home folder as the top level structure then I have inside oracle folder, Oracle10g in it own folder, Oracle9i release2 in it own folder. then I created the user account "student" using the system/manager account finally I granted privilleges as follow:
GRANT ALL PRIVILLEGES
TO student
WITH ADMIN OPTION;
this was working perfecty I didn't need to grant objects privilleges such as
GRANT INSERT, UPDATE, DELETE
ON customers
TO student;
Then I created a form Application prototype and it works well I could Insert, Update and Delete but now I am creating an e-commerce application prototype I created an new account using a system/manager account as I did previously and grant all privilleges. When I try to grant object privileges the message that I receive says ORA-01919 : role 'INSERT' doesn't exist
When I run the application I am unable to insert the record through forms I get message frm-40508 Orcle error: unable to insert record.
I deinstall the Oracle and clean my laptop and did a clean installation using only Oracle Server10g and Oracle Developer10g I am getting the same message frm-40508.
Can someone please help me on this. the insert command that I am running is a simple one such as
INSERT INTO customers
VALUES( block_name.field_name, ....);
COMMIT;frm 40735:When button pressed trigger raised unhanded exceptionplease help me to solve this>
The FRM-40735 is a generic Unhandled Exception. Please post the full error message so we can better help you.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Unable to insert into table Showing error FRM-40508
I want to insert data in text items of form into a table by using procedure in program unit. i declared all the parameters and calling this procedure in When-button-pressed trigger of push-button.it is not showing any compilation error, but run time error FRm-40508 ORACLE Error: Unable to insert the record.
The Table Structure:-
PROB_ID VARCHAR2(50)
PERSON_NAME NOT NULL VARCHAR2(50)
MODULE NOT NULL VARCHAR2(100)
START_DATE DATE
VERSION NOT NULL VARCHAR2(50)
ASSIGNED_BY VARCHAR2(100)
FUNCTIONALITY VARCHAR2(4000)
ERR_TYPE VARCHAR2(150)
ERR_COMPONENT VARCHAR2(100)
ERR_LOCATION VARCHAR2(250)
PROB_DESC VARCHAR2(4000)
PROB_SOLTN VARCHAR2(4000)
STATUS VARCHAR2(100)
END_DATE DATE
and the code is in When-button-pressed
Declare
v_pname char(5);
v_mod char(6);
v_datetime VARCHAR2(9);
v_pid varchar2(50);
v_version varchar2(50);
v_assign varchar2(50);
v_func varchar2(50);
v_etype varchar2(50);
v_ecomp varchar2(50);
v_eloc varchar2(50);
v_pdesc varchar2(50);
v_psoltn varchar2(50);
v_status varchar2(50);
v_edatetime varchar2(50);
uname varchar2(50) := 'fcclog';
pwd varchar2(50) := 'fcclog';
con varchar2(50) := 'orcl';
cursor c1 is select prob_id from log_table;
BEGIN
-- Creating the unique Problem ID by adding all the item value
v_pname := :log_table.pname_lst;
v_mod := :mod_table.mod_name;
v_datetime:= to_char(:log_table.start_date);
--:log_table.prob_id := v_pname||v_mod||v_datetime ;
v_pid := v_pname||v_mod||v_datetime ;
for r in c1 loop
if v_pid = r.prob_id then
v_pid := v_pid + 1;
end if ;
end loop;
:log_table.prob_id := v_pname||v_mod||v_datetime ;
v_pid := :log_table.prob_id;
-- Inserting into database--
v_version := :log_table.version;
v_assign := :log_table.assigned_lst;
v_func := :log_table.funct_txt;
v_etype := :log_table.err_type;
v_ecomp := :log_table.err_component;
v_eloc := :log_table.err_location;
v_pdesc := :log_table.prob_desc;
v_psoltn := :log_table.prob_soltn;
v_status := :log_table.status;
v_edatetime := :log_table.end_date;
log_insert(v_pid,v_pname,v_mod,v_datetime,v_version,v_assign,v_func,v_etype,v_ecomp,v_eloc,v_pdesc,v_psoltn,v_status,v_edatetime);
commit;
exception
when others
then
DBMS_OUTPUT.PUT_LINE(SQLERRM);
rollback;
end;
And the Code in Procedure (log_insert) of Program Unit.
PROCEDURE log_insert(
p_pname varchar2,
p_mod varchar2,
p_datetime VARCHAR2,
p_pid varchar2,
p_version varchar2,
p_assign varchar2,
p_func varchar2,
p_etype varchar2,
p_ecomp varchar2,
p_eloc varchar2,
p_pdesc varchar2,
p_psoltn varchar2,
p_status varchar2,
p_edatetime varchar2)
IS
BEGIN
insert into fcclog.log_table(PROB_ID,PERSON_NAME,MODULE,START_DATE,VERSION,ASSIGNED_BY,FUNCTIONALITY,ERR_TYPE,ERR_COMPONENT,ERR_LOCATION,PROB_DESC,PROB_SOLTN,STATUS,END_DATE)
values(p_pid,p_pname,p_mod ,p_datetime,p_version,p_assign,p_func,p_etype,p_ecomp,p_eloc,p_pdesc,p_psoltn,p_status,p_edatetime);
END; -
Error: Unable to insert new audit record for auditee 21 in repository UPA..
Hi,
I've got the error message below. Have you ever got this?
DEBUG [ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - insert into UPA (UPA_KEY,usr_key,EFF_FROM_DATE,SRC,SNAPSHOT,DELTAS) values (?,?,?,?,?,?)
DEBUG [ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - select UPA_seq.nextval from dual
ERROR [ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - Class/Method: tcDataBase/writeStatement encounter some problems: ORA-01461: can bind a LONG value only for insert into a LONG column
java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
at com.thortech.xl.audit.genericauditor.utils.AuditDataHandler.write(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.updateAuditRecords(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.genericauditor.GenericAuditor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processSingleAudJmsEntry(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processOfflineNew(Unknown Source)
at com.thortech.xl.audit.engine.jms.XLAuditMessageHandler.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.AuditMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
ERROR [ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.AUDITOR - Failed to process audit message
com.thortech.xl.audit.exceptions.AuditMsgProcessingFailedException: Unable to insert new audit record for auditee 21 in repository UPA
sert statement failed is: insert into UPA (UPA_KEY,usr_key,EFF_FROM_DATE,SRC,SNAPSHOT,DELTAS) values (?,?,?,?,?,?)
auditRepository=UPA_KEY; auditeeID=21
auditEpoch=2009-09-05 15:58:37.284; source=User: USER.TEST, API: com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean, Method: updateTask
at com.thortech.xl.audit.genericauditor.utils.AuditDataHandler.write(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.updateAuditRecords(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.genericauditor.GenericAuditor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processSingleAudJmsEntry(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processOfflineNew(Unknown Source)
at com.thortech.xl.audit.engine.jms.XLAuditMessageHandler.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.AuditMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by [Nested Exception]:
com.thortech.xl.orb.dataaccess.tcDataAccessException
at com.thortech.xl.dataaccess.tcDataAccessExceptionUtil.createException(Unknown Source)
at com.thortech.xl.dataaccess.tcDataBase.createException(Unknown Source)
at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
at com.thortech.xl.audit.genericauditor.utils.AuditDataHandler.write(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.updateAuditRecords(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.genericauditor.GenericAuditor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processSingleAudJmsEntry(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processOfflineNew(Unknown Source)
at com.thortech.xl.audit.engine.jms.XLAuditMessageHandler.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.AuditMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by [Nested Exception]:
java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
at com.thortech.xl.audit.genericauditor.utils.AuditDataHandler.write(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.updateAuditRecords(Unknown Source)
at com.thortech.xl.audit.genericauditor.AuditMessageProcessor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.genericauditor.GenericAuditor.processAuditMessage(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processSingleAudJmsEntry(Unknown Source)
at com.thortech.xl.audit.engine.AuditEngine.processOfflineNew(Unknown Source)
at com.thortech.xl.audit.engine.jms.XLAuditMessageHandler.execute(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
at com.thortech.xl.schedule.jms.messagehandler.AuditMessageHandlerMDB.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Hello Peter:
Thanks! I tried to input two detail records and still get only one error.
I don't have pre/post trigger in my form. I use WHEN_BUTTON_PRESSED trigger with the following code:
if get_block_property('PARENT_DATA',status) = 'CHANGED' or
get_block_property('DETAIL_DATA',status) in ('CHANGED') then
COMMIT;
I also try File -> Save. It does not work either.
Do I need to pre/and post trigger to check for it? If so, please show me how.
Thanks again,
TD -
I implemented a save point in a task flow by creating a save point in a method action The following is the code from managed bean for creating the save point:
ControllerContext cc = ControllerContext.getInstance();
if (cc != null) {
SavePointManager mgr = cc.getSavePointManager();
if (mgr != null) {
String id = mgr.createSavePoint();
savePointId = id;
It worked fine in local (Integrated Weblogic server). It also worked fine initially when I deployed the changes to the DEV weblogic server. But after a couple of days, in DEV server I get the following error everytime when trying to create a save point:
Caused By: oracle.adfinternal.controller.savepoint.SavePointException: ADFC-08008: The ADF Controller is unable to insert a savepoint record for ID '4d233555-ea0c-4bae-9f17-cc6c
7124870f'. oracle.adfinternal.controller.savepoint.SavePointUtil.createAndLogSavePointException(SavePointUtil.java:56)
at oracle.adfinternal.controller.savepoint.SavePointDBPersistManager.insertSavePoint(SavePointDBPersistManager.java:245)
at oracle.adfinternal.controller.savepoint.DBSavePointManagerImpl.storeSavePoint(DBSavePointManagerImpl.java:127)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.storeSavePoint(SavePointManagerImpl.java:301)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createAndStoreSavePoint(SavePointManagerImpl.java:257)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:187)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:116)
at view.security.errormanagement.ManageErrorsMB.saveTaskFlow(ManageErrorsMB.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:163)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:926)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:479)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(AccessController.java:284)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.sql.SQLException: Connection has already been closed.
at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:58)
at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:94)
at weblogic.jdbc.wrapper.Connection.prepareCall(Connection.java:543)
at oracle.adfinternal.controller.savepoint.SavePointDBPersistManager.insertSavePoint(SavePointDBPersistManager.java:221)
at oracle.adfinternal.controller.savepoint.DBSavePointManagerImpl.storeSavePoint(DBSavePointManagerImpl.java:127)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.storeSavePoint(SavePointManagerImpl.java:301)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createAndStoreSavePoint(SavePointManagerImpl.java:257)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:187)
at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:116)
at view.security.errormanagement.ManageErrorsMB.saveTaskFlow(ManageErrorsMB.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
At the bottom of the stack, this statement "Caused By: java.sql.SQLException: Connection has already been closed." intrigues me, but why this error occurs after a couple of days or after particular number of connections or access to the application.
This same issue is also happening in all environments including PROD. Please help. JDeveloper version used is 11.1.2.1.0.We got the solution from Oracle support.
Passivation Fails With Error "Connection has already been closed" in PoolConnection.checkConnection() (Doc ID 1330271.1). Problem is caused by the WebLogic Server Connection Pool feature "Inactive Connection Timeout". When this parameter is set up, WLS will forcibly release reserved connections back into the pool. This is a problem for ADF BC that relies on keeping the JDBC connection associated to its
Application Module instance.
Set the "Inactive Timeout Session" to 0 (default), so that the JDBC connection stays active while
the corresponding Application Module instance is active:
Thanks.... -
[SOLVED] FRM-40508:ORACLE error: unable to INSERT record
Hi all,
I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
I also generated to object list report and tried to find some answer, but no use.
Please help me in debugging this form.
Edited by: Charan on Aug 18, 2011 4:05 PMI think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
columns in there that the type does not match the table. (check the sizes of things too while you're at it.) -
Hi
when trying to insert a record in a form builder application I getted the following
error
FRM-40508: ORACLE error: unable to INSERT record.
Is the reason that I have not the authority to enter by by system account althought
I have granted dba to scott and that successed ?
To get a full overview of my problem please see my previous thread.
thanks for adavancevolberg wrote:
in most cases you forget a required field.
Press Shift+F1 to get the error message in detailsql statements in error
INSERT INTO STUDENTS(STUD_ID,STUD_NAME) VALUES (:1,:2)
error
ORA-00001: unique constraint (ELHADI.SYS_C005462) violated
Edited by: VANPERSIE on Aug 29, 2008 5:16 PM -
Unable to INSERT record but inserting. Forms 4.5 error through Apps 10.7
Hi All,
I have written the following code on save button on form 4.5 which has been used from APPS. I created the master-detail relation also.
It suppose to insert a row into header and then into lines.
Its inserting the row into both the tables but getting the following error in betweeen.
===========
FRM-40508: ORACLE error: unable to INSERT record.
ORA-01400: cannot insert NULL into ("VFI"."VFI_PC_DEFINITION_LINES"."LINE_ID")
===========
I am thinking problem is some where in some default triigers or on insert triggers
but unable to trace it. CAN anybody through a light on this ?
================================================
PROCEDURE VFI_INVPCS IS
i number;
v_item_id number;
v_item_id1 number;
v_temp varchar2;
v_user_id NUMBER := 1111; --fnd_global.user_id;
Lv_ChkFlag VARCHAR2(1);
Lv_UnChkFlag VARCHAR2(1);
ln_header_seq NUMBER;
ln_lines_seq NUMBER;
BEGIN
BEGIN
SELECT inventory_item_id
INTO v_item_id
FROM inv.mtl_system_items
WHERE organization_id = 103
and segment1 = :VFI_PC_DEFINITION_HEADER.parent_inventory_item_id;
SELECT VFI_PC_DEFINITION_HEADER_SEQ.nextval
INTO ln_header_seq
FROM DUAL;
SELECT VFI_PC_DEFINITION_LINES_SEQ.nextval
INTO ln_lines_seq
FROM DUAL;
INSERT INTO VFI_PC_DEFINITION_HEADER( HEADER_ID
,PARENT_INVENTORY_ITEM_ID
,START_DATE
,END_DATE
,CREATED_BY
,CREATION_DATE
,LAST_UPDATED_BY
,LAST_UPDATE_DATE)
VALUES ( ln_header_seq
,v_item_id
,:VFI_PC_DEFINITION_HEADER.start_Date
,:VFI_PC_DEFINITION_HEADER.end_date
,v_user_id
,sysdate
,v_user_id
,SYSDATE
COMMIT; -- header
GO_BLOCK('VFI_PC_DEFINITION_LINES');
LOOP
SELECT inventory_item_id
INTO v_item_id1
FROM inv.mtl_system_items
WHERE organization_id = 103
AND segment1 = :VFI_PC_DEFINITION_LINES.child_inventory_item_id;
First_record;
IF :VFI_PC_DEFINITION_LINES.child_inventory_item_id is not null then
IF :CFY_PTID_FLAG='Y' THEN
Lv_ChkFlag:=:CFY_PTID_FLAG;
INSERT INTO VFI_PC_DEFINITION_LINES( LINE_ID
,HEADER_ID
,PARENT_INVENTORY_ITEM_ID
,CHILD_INVENTORY_ITEM_ID
,CREATED_BY
,CREATION_DATE
,LAST_UPDATED_BY
,LAST_UPDATE_DATE
,CFY_PTID_FLAG)
VALUES ( ln_lines_seq
,ln_header_seq
,v_item_id
,v_item_id1
,v_user_id
,SYSDATE
,v_user_id
,SYSDATE
,Lv_ChkFlag
END IF;
END if;
NEXT_RECORD;
EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
END LOOP;
message('After Insert Child');
message('After Insert Child');
COMMIT;
END;
================================================not sure on the block structure of your forms.
one would question why you seem to be doing a lot of the default insert work on the press of a button (when-button-pressed).
also if you have a master-detail relationship in the form - why you don't let forms handle the master-detail insert.
seems like you have database database blocks but are almost coding as if they are non-base table blocks. -
Unable to INSERT record : ERROR
SR # : 3-2184192641
RMS Version 13.1.3
Form : dealmain.fmb
Customer is reporting the following error
"FRM:40508-Oracle error:Unable to INSERT record"
On looking into detail error the following message is displayed
"INSERT INTO deal_threshold( lower_limit,upper_limit,value,total_ind,target_level_ind,reason,deal_id,deal_detail,
create_datetime,last_update_datetime,last_update_id) values(1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)."
Please advice.Are the values for the columns being supplied from the application? If so check the formats of the columns and corresponding values of the same. If they are matching then check whether a null being inserted for a not null column..
Of course there could be many more reasons for this error.
Give the complete details of the columns, their properties and the values being inserted into the table.
Regards,
Sandy. -
Updating detail record and getting multiple 'UNABLE TO INSERT RECORD' msgs
Help! We have 2 datablocks, master and detail block with relation defined. Master is defined with view based on database joins; detail is view based on table.
When I update the record in detail block, error message 'UNABLE TO INSERT RECORD' appears four times, then I get transaction complete: 5 records applied and saved, where the one record successfully updates. Why are we getting four records with insert errors and one record update? We don't want to work directly on the table, but why can't we use the view? please help.The UNABLE TO INSERT record will be accompanied by more information if you press the Display Error key. Your form commit processing should stop when it gets an error like this, the fact that it doesn't implies that somewhere in your code you are not checking for FORM_SUCCESS before continuing doing something else.
This sounds quite involved, we would need to have more information about what records are queried and what's being changed on them to cause the commit. -
Unable to insert record in child block
Dear all,
I am facing a very strange problem.
Actually i have a master-detail form where i need to insert master record as well as child records for the corresponding master item.
For this i have a LOV in master block which populate the master item and execute the coresponding child records.
so first time when i load the form i select a item from master block through a LOV this time :SYSTEM.BLOCK_STATUS is NEW and i populate a item from LOV then :SYSTEM.BLOCK_STATUS is NEW changed to query and i have inserted a next record in child block pressed F10 and it saved very well.
But the problem is when i again select another item from master block through LOV and again tried to insert a record in child record this time it won't saved and the very stragly the cusor moved to master item showing the FRM-40600'Record has already been inserted'
Please help why is it happening ?
Need yours help.But the problem is when i again select another item from master block through LOV and again tried to insert a record in child record this time it won't saved and the very stragly the cusor moved to master item showing the FRM-40600'Record has already been inserted'When you select a new record in the Master block through the LOV, make sure you clear your form before you query the selected record. Forms thinks you are modifying the same master record and not a new record.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Unable to Insert record In forms: error -ORA-01779 :cannot modify a column
Hi,
I have created one form with two block.
Block-1 : Based on View
Block-2 : Based on table
There is is relationship between Block-1 and Block-2.
Block-1 is populating from LOV.
I just need to insert /update record Block-2 based on data from Block-1
So Block-1 I have made read only at runtime (Inser/update all properties are false).
Now when I insert record in Block-2 based on record from block-1, and getting below error.
"ORA-01779: cannot modify a column which maps to a non key-preserved table"
It is not allowing to insert record.
Please help me.
SubirThe error states that there is some operation on a view, not an a table.
Now when I insert record in Block-2 based on record from block-1What does that mean? How do you insert records in block 2?
When exactly occurs the error?
Maybe you are looking for
-
Mail attachments to Windows machines?
I am trying to send two images as attachments to a user on a Windows machine. The attachments are appearing in-line in the body of the email and do not show as attachments on Windows. I am attaching the 2 images by clicking the paper clip on the new
-
Acrobat 7 Professional - PDF Writer errors out in Print Queue
Hello, I'm an IT Technician. We've just imaged many of our machines and several of our secretaries use Adobe Acrobat 7 Professional so I re-deployed that application, along with the 7.1.3 update. Everything works fine for me, including some of our
-
Can't open .fir file type
I am trying to upgrade the firmware on my Canon camera. The firmware file is a .fir file type. I can't open/run this file on either Mac or Boot Camp running Windows. Any help would be appreciated.
-
Data recovery on server failure
Hi all, According to Rule-of-thumb: each 1 GB JVM can store 350 MB of actual object data, assume we need to have 8GB data on Coherence, according to above rule: 8192/350 = ~24 JMVs required => 24*1.2 = ~29 GB Then at least we need 2 servers of 16G RA
-
We have encountered a problem for the workflow without approval for PO WS14000075. The Po's are created fine from shopping carts but if you chnage the PO it keeps failing on no workflow and when you look at the issue it say's the workflow is not in v