Problem while updating record in WLS 6.1 sp4
We have been using toplink in our application with Weblogic 6.1. We have not faced any problems after migrating to TopLink oracle release 9.0.3 while deploying on WLS 6.1 sp1 or sp2. However when we deploy on WLS 6.1 sp4, we get a 'invalid column name' exception when trying to update a record. The search query does not throw any exception, only the update query is throwing exception. We use external transaction controller. the stack trace is below -
2002-11-27 11:56:25,763 ERROR com.pws.ubiquity.pr.business.TransactionTypeFacade - Error while commiting transaction (creating TransactionType):LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-00904: invalid column name
INTERNAL EXCEPTION: java.sql.SQLException: ORA-00904: invalid column name
ERROR CODE: 904
at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.insertObject(Unknown Source)
at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(Unknown Source)
at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(Unknown Source)
at oracle.toplink.queryframework.WriteObjectQuery.executeCommit(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWrite(Unknown Source)
at oracle.toplink.queryframework.WriteObjectQuery.execute(Unknown Source)
at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.issueSQLbeforeCompletion(Unknown Source)
at oracle.toplink.jts.AbstractSynchronizationListener.beforeCompletion(Unknown Source)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:551)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:88)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:982)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:1506)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:215)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:247)
at com.pws.ubiquity.pr.business.TransactionTypeFacade.addTransactionType(TransactionTypeFacade.java:584)
at com.pws.ubiquity.pr.business.TransactionTypeFacade_ocr0a6_EOImpl.addTransactionType(TransactionTypeFacade_ocr0a6_EOImpl.java:271)
at com.pws.ubiquity.pr.web.action.AddTransactionTypeAction.doExecute(AddTransactionTypeAction.java:120)
at com.pws.ubiquity.common.web.action.SecureAction.perform(SecureAction.java:240)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
INTERNAL EXCEPTION STACK:
java.sql.SQLException: ORA-00904: invalid column name
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
at weblogic.jdbc.jts.Statement.executeUpdate(Statement.java:503)
at weblogic.jdbc.rmi.internal.PreparedStatementImpl.executeUpdate(PreparedStatementImpl.java:66)
at weblogic.jdbc.rmi.SerialPreparedStatement.executeUpdate(SerialPreparedStatement.java:57)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
at oracle.toplink.internal.queryframework.CallQueryMechanism.insertObject(Unknown Source)
at oracle.toplink.internal.queryframework.StatementQueryMechanism.insertObject(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(Unknown Source)
at oracle.toplink.queryframework.InsertObjectQuery.executeCommit(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(Unknown Source)
at oracle.toplink.queryframework.WriteObjectQuery.executeCommit(Unknown Source)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWrite(Unknown Source)
at oracle.toplink.queryframework.WriteObjectQuery.execute(Unknown Source)
at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.issueSQLbeforeCompletion(Unknown Source)
at oracle.toplink.jts.AbstractSynchronizationListener.beforeCompletion(Unknown Source)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:551)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:88)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:982)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:1506)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:215)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:247)
at com.pws.ubiquity.pr.business.TransactionTypeFacade.addTransactionType(TransactionTypeFacade.java:584)
at com.pws.ubiquity.pr.business.TransactionTypeFacade_ocr0a6_EOImpl.addTransactionType(TransactionTypeFacade_ocr0a6_EOImpl.java:271)
at com.pws.ubiquity.pr.web.action.AddTransactionTypeAction.doExecute(AddTransactionTypeAction.java:120)
at com.pws.ubiquity.common.web.action.SecureAction.perform(SecureAction.java:240)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=oracle.toplink.jts.wls.WebLogicSynchronizationListener@373d4a
EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-00904: invalid column name
INTERNAL EXCEPTION: java.sql.SQLException: ORA-00904: invalid column name
ERROR CODE: 904 - with nested exception:
[EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-00904: invalid column name
INTERNAL EXCEPTION: java.sql.SQLException: ORA-00904: invalid column name
ERROR CODE: 904]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1490)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:265)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:247)
at com.pws.ubiquity.pr.business.TransactionTypeFacade.addTransactionType(TransactionTypeFacade.java:584)
at com.pws.ubiquity.pr.business.TransactionTypeFacade_ocr0a6_EOImpl.addTransactionType(TransactionTypeFacade_ocr0a6_EOImpl.java:271)
at com.pws.ubiquity.pr.web.action.AddTransactionTypeAction.doExecute(AddTransactionTypeAction.java:120)
at com.pws.ubiquity.common.web.action.SecureAction.perform(SecureAction.java:240)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
2002-11-27 11:56:25,793 DEBUG com.pws.framework.common.MessageSourceFactory - Get MessageSource for error message.:
2002-11-27 11:56:25,793 DEBUG com.pws.framework.common.MessageSourceFactory - Get MessageSource for error message.:
com.pws.framework.exception.GeneralException: There was an unexpected error. Please contact your system administrator.
at com.pws.framework.exception.GeneralException.create(GeneralException.java:111)
at com.pws.ubiquity.pr.business.TransactionTypeFacade.addTransactionType(TransactionTypeFacade.java:588)
at com.pws.ubiquity.pr.business.TransactionTypeFacade_ocr0a6_EOImpl.addTransactionType(TransactionTypeFacade_ocr0a6_EOImpl.java:271)
at com.pws.ubiquity.pr.web.action.AddTransactionTypeAction.doExecute(AddTransactionTypeAction.java:120)
at com.pws.ubiquity.common.web.action.SecureAction.perform(SecureAction.java:240)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
The SQL statement generated by TopLink is as follows -
UPDATE PR_SUPP SET CNTC_PRSN_NAME = ''
, REMK = 'Remark 123 !', LAST_CHNG_DTTM = {ts '2002-11-29 10:59:56.0'} WHERE ((S
UPP_CODE = 'A0001') AND (LAST_CHNG_DTTM = {ts '2002-11-29 10:46:01.0'}))
The coloumn name in the generated statement conform to the coloumn names in the table. The exception is being thrown for all 'update' queries for all objects in the application.
Similar Messages
-
Problem while updating record in the database
I have created an entity object, view object and a form to show that. whenever i update some field in the form and try to commit the change, exception is thrown stating that-
(oracle.jbo.DMLException) JBO-26080: Error while selecting entity for Countries
----- LEVEL 1: DETAIL 0 -----
(java.sql.SQLException) [DataDirect][SQLServer JDBC Driver][SQLServer]FOR UPDATE cannot be specified on a READ ONLY cursor.I'm getting the same problem. Did you manage to fix this?
-
Problem while updating the Support Package 17 on my SAP WAS SP9
Hi,
I'm facing problem while updating the Support Package 17 on my SAP WAS SP9
ERROR 2006-10-13 10:23:22
FSL-06002 Error 2 (The system cannot find the file specified.
) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).
Please help me in this regard.....
Thanks in advance...
SatyaHello gentlemen, I am also having problem with the following running on 64 bit Windows and SQL2005/64 bit. I am erroring in Step 8 'Updating JDBC' driver. I am attempting to update from SP9 to SP18. The WEBAS Jave installed went flawless but I seem to be stuck here. Any help is appreciated...
ERROR 2006-11-22 10:13:57
FSL-06002 Error 2 (The system cannot find the file specified.
) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...). -
Facing problem while updating IInfotype 0009-bank details through workflow
Dear SAP Gurus,
I am facing a problem while updating Infotype 0009 through workflow which is integrdated with portal.
Scenario:
Employee logins to portal and changes his/her bank details like payee name, bank key, account number, postal code and city of bank, bank name etc.
Once he submits the request, my workflow is triggered through SAP_WAPI_START_WORKFLOW which is called from portal and goes through various approval steps and finally reaches the step where the container elements are finally to be updated in IT0009.
Field bank account number (BANKN), which is part of table PA0009 are easily updates using the FM HR_INFOTYPE_OPERATION by first enqueuing the employee number and after the update dequeuing it.
However fields like payee name (EMFTX) bank key (BANKL) , bank name(BANKA -structure BNKA_BF-this is automatically fetched based on bank key) and postal code(BKPLZ) and city of bank (BKORT) are from structure Q0009 (on the infotype 9 screen level) and from table BNKA (at table level). The problem is that these are not getting updated by HR_INFOTYPE_OPERATION as they are not the part of infotype 9.
Can anyone help me to understand how can these fields be updated ?
Quick help will be highly appreciated.Hi Spantaleoni,
Thanks for your quick response.
Well actually the table BNKA is a master table for the bank information and we must not create entries in it or update the table programatically, rather we should use the available data in it.
Now say employee currently has bank as A and he wants to change it as B which is available in BNKA then he will just select the bank B from search help provided in portal which again comes from table BNKA only. Employee then submits the info and it must get updated in the infotype PA0009.
As far as think, this should be done on screen level of infotype PA0009 as I have already mentioned that certain fields are coming from structure Q0009 and they cannot be updated on PA0009 table level.
I am just looking for way through which I can update the screen of infotype PA0009 of employee through workflow.
Regards -
there was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable
YOU ARE IN RECOVERY MODE
1. Turn off iPad
2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port.
DO NOT RELEASE BUTTON until you see picture of iTunes and plug
5. Release Home button.
ON COMPUTER
6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
7. Select "Restore iPad"...
Note:
1. Data will be lost if you do not have backup
2. You must follow step 1 to step 4 VERY CLOSELY. -
Problem while updating Delivery date uisng BAPI_PO_CHANGE
Hi friends,
Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
After the bapi is getting triggered iam geting sy-subrc = 0
But in the return parameters iam getting 3 error messages so iam unable to update the delivery date..
Error meesage which iam getting are
a) Purchase order still contains faulty items
b) Enter Tax Code
c) Instance 1000001 of object type PurchaseOrder could not be changed.
How can i correct it..
Please find my code below
LOOP AT it_eket INTO wa_eket.
wa_poschedule-po_item = wa_eket-ebelp.
wa_poschedule-sched_line = wa_eket-etenr.
wa_poschedule-delivery_date = wa_eket-eindt.
APPEND wa_poschedule TO poschedule.
wa_poschedulex-po_item = wa_eket-ebelp.
wa_poschedulex-sched_line = wa_eket-etenr.
wa_poschedulex-po_itemX = 'X'.
wa_poschedulex-sched_lineX = 'X'.
wa_poschedulex-delivery_date = 'X'.
APPEND wa_poschedulex TO poschedulex.
READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN = WA_EKET-EBELN
EBELP = WA_EKET-EBELP.
IF SY-SUBRC = 0.
WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
APPEND WA_POITEM TO POITEM.
WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
WA_POITEMX-PO_ITEMX = 'X'.
APPEND WA_POITEMX TO POITEMX.
ENDIF.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = wa_eket-ebeln
TABLES
return = t_bapiret2
POITEM = POITEM
POITEMX = POITEMX
poschedule = poschedule
poschedulex = poschedulex.
READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =.
IF sy-subrc = 0.
WRITE : 'DELIVERY DATE UPDATED'.
ENDIF.
ENDIF.
how can i correct it...
Regards
KumarHi,
Pass the following values...
POACCOUNT LIKE BAPIMEPOACCOUNT...
poaccount-TAX_CODE = ? (value)....
That should take care of the missing field.
Regards,
Madan.. -
Access Privileges problem while updating ipod
Access Privileges problem while updating ipod
so im having troubles updating my ipod when i attempt to update it i get a message that says The ipod "Mitch" cannot be updated you do not have enough access privileges for this opperation
some of my things are updated but not all
any help would be greatly appreciated!
Dell Windows XPhi j.block!
hmmmmmmmmmmm. one other thing that might be worth a try if all else fails. i have once seen something like this turn out to be caused by a really kinky version of this issue:
iTunes: "privileges" or "permissions" issue when importing audio CD or adding music to library
... where the permissions were odd on the ipod itself ... but i've only seen that happen once. it's probably worth checking on only if nothing else seems to be working for you.
love, b -
Problem while update and insert data in table
Hi All,
I have problem while save line data....
I have an advance table.I take remove and duplicate line in message choice of advance table action layout.
Also there is one temp table to save Po number data which is populated in advance table according to PO Number search.And In Temp table record number is column which use
to insert and update data in temp table which mention in procedure
Problem is that : When i Searched PO Number and duplicate line and save that record it insert a new line always and it insert record according to duplicate line no .It not update previous line,insert new line always according to duplicate line no.
Please tell me what is solution?
Thanks,
NeilHi,
I am not cleared with your requirement.
If possible send me the screenshots for the same.
--Sushant
[email protected] -
Stale data error while updating record
Hi,
While updating page getting below error.
++++++++++++++++++
Error
Unable to perform transaction on the record.
Cause: The record contains stale data. The record has been modified by another user.
Action: Cancel the transaction and re-query the record to get the new data.
++++++++++++++++++
- In page navigation, the setForwardURL is done without retaining the AM
- There is no other user trying to change the values that are just created.
- Doing pageContext.releaseRootApplicationModule(); before commit.
- ObjectVersionNumber attribute of entity object, check the Change Indicator checkbox for this attribute.
Still it is NOT working getting same error.
Any idea, why this error coming.
Thanks,
SrikanthOA Framework updates the ObjectVersionNumber attribute in the generic OAEntityImpl Java class. That is, the createObjectVersionNumber(), and updateObjectVersionNumber() methods perform automatic initialization and update of these values.
Read more in Dev Guide
Thanks
--Anil -
Problem while updating Item category using Bapi_salesorder_change
Hi,
Iam facing a probelm while updating item category using bapi Bapi_salesorder_change
In the Return table iam getting the folowing mesages.
Inforation mesage : Field 'PSTYV' cannot be changed, VBAPKOM 000010 ready for input
Error Message : Item 000010 cannot be processed.
Please find the code below
CLEAR wa_bapisdh1x.
wa_bapisdh1x-updateflag = 'U'.
CLEAR wa_order_item_inx.
wa_order_item_inx-itm_number = wa_vbap-posnr.
wa_order_item_inx-item_categ = 'X'.
wa_order_item_inx-UPDATEFLAG = 'U'.
APPEND wa_order_item_inx TO it_order_item_inx.
CLEAR wa_order_item_inx.
CLEAR wa_order_item_in.
wa_order_item_in-itm_number = wa_vbap-posnr.
wa_order_item_in-item_categ = 'ABC'.
APPEND wa_order_item_in TO it_order_item_in.
CLEAR wa_order_item_in.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = w_vbeln
order_header_inx = wa_bapisdh1x
TABLES
return = it_return
order_item_in = it_order_item_in
order_item_inx = it_order_item_inx
How can i correct it..
Regards
KumarActually iam facing a strange problem here.
When i copy the program into another sample program and execute it iam able to change both the item catgegory and delivery block for particular sales order and item number.
But in my main program i have BDC for MB1B transaction to create the material document.
Once the material document is created succesfully iam using BAPI Sales_order_change to change the item category and delivery block..
In my main program iam not to change the item catgeory getting an error field PSTYV cannot be changed.
But the same code is running percfectly in the copied one..
How can i correct that..
Regards
Kumar -
MySQL error while Updating Record
Hi
I'm newbie so your help will be welcomed.
While I'm trying to Update Record, the following error
occurs:
" You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to
use near '' at line 1".
This is the code that gives me headache:
"<?php
require_once('../../../../Inetpub/wwwroot/theHotel/Connections/connHTL.php');
?>
<?php
$colname_rsBooking = "-1";
if (isset($_GET['ID'])) {
$colname_rsBooking = (get_magic_quotes_gpc()) ? $_GET['ID']
: addslashes($_GET['ID']);
mysql_select_db($database_connHTL, $connHTL);
$query_rsBooking = sprintf("SELECT * FROM bookings WHERE ID =
%s", $colname_rsBooking);
$rsBooking = mysql_query($query_rsBooking, $connHTL) or
die('HERE IS THE ERROR, I GUESS' . mysql_error());
$row_rsBooking = mysql_fetch_assoc($rsBooking);
$totalRows_rsBooking = mysql_num_rows($rsBooking);
$colname_rsClient = "-1";
if (isset($_GET['clientID'])) {
$colname_rsClient = (get_magic_quotes_gpc()) ?
$_GET['clientID'] : addslashes($_GET['clientID']);
mysql_select_db($database_connHTL, $connHTL);
$query_rsClient = sprintf("SELECT * FROM clients WHERE ID =
%s", $colname_rsClient);
$rsClient = mysql_query($query_rsClient, $connHTL) or die('NE
MOZAM' . mysql_error());
$row_rsClient = mysql_fetch_assoc($rsClient);
$totalRows_rsClient = mysql_num_rows($rsClient);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
etc......"
I want to know if this is a syntax , MySQL or PHP error. I've
tried things, but no results.
PLS HELP!
Thanks in advance!dedurus wrote:
> " You have an error in your SQL syntax; check the manual
that corresponds to
> your MySQL server version for the right syntax to use
near '' at line 1".
The error message is clear in one respect - it's an error of
MySQL
syntax. What it doesn't tell you is what the error is. The
way to find
out is to use echo to display the SQL query onscreen. I
suspect that
what's happening is that either ID or clientID haven't been
defined.
> $query_rsBooking = sprintf("SELECT * FROM bookings WHERE
ID = %s",
> $colname_rsBooking);
Display the value of the SQL query here
echo $query_rsBooking.'<br />';
> $rsBooking = mysql_query($query_rsBooking, $connHTL) or
die('HERE IS THE
> ERROR, I GUESS' . mysql_error());
> $row_rsBooking = mysql_fetch_assoc($rsBooking);
> $totalRows_rsBooking = mysql_num_rows($rsBooking);
>
> $colname_rsClient = "-1";
> if (isset($_GET['clientID'])) {
> $colname_rsClient = (get_magic_quotes_gpc()) ?
$_GET['clientID'] :
> addslashes($_GET['clientID']);
> }
> mysql_select_db($database_connHTL, $connHTL);
> $query_rsClient = sprintf("SELECT * FROM clients WHERE
ID = %s",
> $colname_rsClient);
And again, here:
echo $query_rsClient;
> $rsClient = mysql_query($query_rsClient, $connHTL) or
die('NE MOZAM' .
> mysql_error());
Once you know what the SQL queries look like, you can begin
troubleshooting.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
Problems with Update Record behavior
I am sorry to ask this question again since I have not resolved the issue yet.
When I am using the Dreamweaver Update Record behavior, I am not able to get the form validation to work. I implemented the form validation by inserting onsubmit="return someFormValidation(this);" into the update form created by Dreamweaver.
When I hit the submit button the JavaScript validation function is not even invoked.
However when I use the same method for form validation with Insert Record behavior I have no problems. Is this difference I am observing between the Insert and Update behaviors the way Dreamweaver supposed to work? If yes how can I do my form validation during an Update Record?
Note that the pages involved are all php pages, therefore we are talking about server side validation here.
If anyone can help I will be grateful as I am really stuck...I am closing this even though I got no answers as the weird behaviour has disappeared....
-
Connection lost problem while updating my Nokia As...
Dear All,
I face a connection lost problem while I am updating Nokia Asha 200 using Nokia Suite
I installed Nokia software too many times, and tried to repair it. Also, I used another USB cable, but the problem still happen
While it is installing the software, it suddenly stops and show connection lost to your phone.
When I try to restart and reconnect the USB cable, the problem still happen
Nokia200
V 10.61
02-03-12
RM-761
Thanks in advanceDear Farby
Thanks for your kind and quick reply.
please note that I tried again now, and when the messages for connection lost appears again, I waited for 5 minutes, and nothing happens
because it shows me to do steps, as follows :
1. Disconnect USB cable from phone.
2. restart your phone
3. reconnect the USB cable
4. Wait for the installation to continue.
and when I do these steps, the phone restarts in a test mode, all I see is a test mode message over its screen.
I believe that this is a fatal error which happens through the installation process and which leads to unsuccessful installation
I lost hope in updating the software of this phone, escaially I need to do so, because I face problems with these phone, which doing a hard reset even don't fix.
Thanks again, Farby ... for your help
Regards, -
SQL Loader problem while loading records from txt file to database table.
I am getting following error while loading records from flat txt file into database table with the help of 'sqlldr' command. I have executed catldr.sql from RDBMS folder but it is still showing same error. I am setting DIRECT = TRUE while issuing sqlldr command. If I try with DIRECT = FALSE then it works fine. Database is Oracle 8i.
SQL*Loader-951: Error calling once/load initialization
ORA-24329: invalid character set identifier
F1 Please.Hello,
Direct path load, can only be used with SQL*Loader and Database have the same version.
Care to tell the database version and sql*loader version you are using.
-Sri -
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....
Maybe you are looking for
-
Merging iTunes accounts on the same computer...
I split my computer into two accounts, one for work, one personal. The idea being: I keep all of my work stuff on one account, personal stuff on personal account. BAM! keep the company computer. But now, I have two separate Itunes accounts. And i've
-
Have a .0.03 Zen Touch 40gb with XP Pro sp2. Loaded complete software package from provided CD before connecting the device. When I connect the Zen Touch via a confirmed working USB2 port, I get a "hardware is connected and ready to use" message, Dev
-
I wold like to know how customers like it so id be able to know if i want to go out and get one.
-
Hi all, I have one scenario like this: Web Service (SOAP Sender Adapter) > XI > R/3 System CCS (RFC Receiver Adapter). When they are trying to start the process via browser (URL) they are getting a erro: 503 Service Unavailable; Application cannot be
-
Hi experts. Is there any FM/BAPI/RFC that export query data based on cube to table. i'm looking for solution with no use in mdx. Thanks.