Updating error records in seession method
error records in session method
Posted: Jan 15, 2008 9:52 AM Edit E-mail this message Reply
hai anybody tell me how can we handle error records in session method ..we have a logfile ok...how can we update those error records in online..
Hi,
If there are not too many errors you can process the session in Error mode & correct the errors online. Else you have to check the cause of error taking inputs from the log file. & repeat the steps.
Best Regards, Murugesh
Similar Messages
-
Regarding Error records in Sesson method
in an interview i have faced one question that
"i have 2000 records. when session is processed 1500 records processed perfectly, rest of the records failed to process".
Q) what we have to do those error records.
q) Need to process the session again?.
q) Need to process that praticular error again?.Hi Sirisha,
I would say that before going for actual data upload in a BDC session program, u should generate an error log flat file and a success file by running the program in Simulation Mode, means in simulation mode the transactions will be executed in backgroud or foreground as u wish, just in place of OKCODE pass the value /N instead of /SAVE. For this simulation mode u need to generate a call transaction program inside the same program. This method will help u to forcast about the nature of data before going for actual session mode upload.
If Helpful please reward with some points.
Regards,
Pulokesh -
Errors in IDOC transfer method.....
Hi
I am loading customer data ( LIS , S001) by using transfer method as IDOC. now i got 4 error records. so how do we rectify in IDOC method. i can use PSA also, so that its very easy to rectify errors. But how do we rectify the error records in IDOC method...., any idea gurus......,
Regards
swethaLooks to me like you're not telling the linker to create a library (DLL). I'm not familiar with Linux, but clearly if the linker if looking for 'main' then its trying to build an executable.
-
How will you collect error records in call transaction method
hello
how will handle errors in call transaction method...DATA: BEGIN OF ITAB OCCURS 0,
F1(10) TYPE C,
F2(18) TYPE C,
F3(15) TYPE C,
END OF ITAB.
DATA: BEGIN OF ITAB1 OCCURS 0,
F1(2) TYPE C,
F2(10) TYPE C,
F3(18) TYPE C,
F4(15) TYPE C,
END OF ITAB1.
DATA : ITAB2 LIKE ITAB OCCURS 0 WITH HEADER LINE,
IT_SUCCESS LIKE ITAB OCCURS 0 WITH HEADER LINE,
IT_ERROR LIKE ITAB OCCURS 0 WITH HEADER LINE.
DATA : BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
T_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
CALL TRANSACTION 'VA01' USING BDCDATA MODE 'N' UPDATE 'S'
MESSAGES INTO T_BDCMSGCOLL.
PERFORM ERRORHANDLING TABLES ITAB2 USING COUNT1 COUNT2.
REFRESH BDCDATA.
FORM ERRORHANDLING TABLES P_ITAB2 STRUCTURE ITAB
USING P_COUNT1
P_COUNT2.
IF SY-SUBRC <> 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = '-D'
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = T_BDCMSGCOLL
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_COUNT1 = 1.
WRITE : / ' The records not loaded are '.
P_COUNT1 = P_COUNT1 + 1.
ENDIF.
LOOP AT P_ITAB2.
WRITE : / P_ITAB2-F1 , P_ITAB2-F2 , P_ITAB2-F3 .
CLEAR P_ITAB2.
DELETE P_ITAB2 INDEX 1.
ENDLOOP.
WRITE : /.
ELSE.
IF P_COUNT2 = 1.
WRITE : / ' The records loaded are '.
P_COUNT2 = P_COUNT2 + 1.
ENDIF.
LOOP AT P_ITAB2.
WRITE : / P_ITAB2-F1 , P_ITAB2-F2 , P_ITAB2-F3 .
CLEAR P_ITAB2.
DELETE P_ITAB2 INDEX 1.
ENDLOOP.
WRITE : /.
ENDIF.
ENDFORM. " errorhandling -
Track error records in Call Transaction method
Hi
I have used call transaction method for uploading legacy data.
I need to track the error record.
Please help me to find out the solution.
Thanks in advance
Reagards
shriraamHI,
!. Obtain the messaged into an Interal table of type BDCMSGCOLL using Call Transaction syntax..
Call Transactio <Tcode>
using <BDC Table>
mode <A/N/P>
update <A/S>
messages INTO <mSGTAB>
2. Read the Msg table for eroors and success messages
3. Then format the messge with the help of Function Module :'Format_messages'.
4. Display the respective messges with the help of write statements or with the help of ALV.
Rgds
Umakanth -
Error while updating a record in MS Access
Im new to coldfusion and am running into a problem while
trying to update a record in a MS Access table.
I have a MS Access table where the primary key is a
auto-number long integer field named jobid.
I have an edit form where info can be changed then saved. A
hidden form field named jobid holds the records primary key field
value for the record being edited. When submitted this is what
happens:
I use a basic SQL UPDATE statement but I get the error "Data
type mismatch in criteria expression"
Some code:
<cfset nJobId=Int(Val(FORM.jobid))>
*dont know if i need the above line but using #FORM.jobid#
in the WHERE clause below didnt work either
<cfquery datasource="lrs">
UPDATE jobs SET
status='#FORM.status#',
offer='#FORM.offer#',
postdate="#CreateODBCDate(FORM.postdate)#",
jobtype=#FORM.jobtype#,
jobtitle='#FORM.jobtitle#',
..etc...
WHERE jobid=#nJobId#
The WHERE clause is where the error occurs with "Data type
mismatch in criteria expression"
After a few times with that i changed the where clause to
simply "WHERE jobid=1" as this record id does exist, but it has the
same error.
I then tried changing the where clause to
WHERE jobid=<cfqueryparam cfsqltype="cf_sql_bigint"
value="#FORM.jobid#">
and there it "appears" to work, but the record is not
actually updated. No changes are made to the table though no error
is thrown.
Im missing something here... why wont the record update
?The data type mismatch isn't necessarily in your where
clause. I'm guessing that it's the quotes around the create
odbcdate function.
use of cfqueryparam will solve a lot of these problems for
you. -
Getting timeout error while updating a record from c#
Hi,
I have around 30k records in a tables. When I update that record inside the Transaction (Enterprise Data Library, c#) , it takes long time and throws timeout error.
But I am able to update the same record via Toad.
In the morning I tried same updating the record, it works without any change in the code or script.+
is it due table lock or db related issue? please adivse, how to resolve if occurs again.
anandCode:
private static void Save()
using (DBTransactionManager dbTransactionManager = new DBTransactionManager())
try
DataTableDAL.Instance.ExecuteDML("Update Voyage SET BallastBonus = 30000 WHERE ID = 'AE53B610BEA743EC8AFBAED0C8349BF8';");
//commit database
dbTransactionManager.Commit();
catch
dbTransactionManager.RollBack();
throw;
Table
Column Name ID Pk Null? Data Type Default Histogram Encryption Alg Salt
ID 1 1 N NVARCHAR2 (32) None
CALCNUMBER 2 N NUMBER (10) None
CURRENCYID 3 N NVARCHAR2 (32) Frequency
CALCTYPE 4 N NUMBER (5) Frequency
ESTIMATEDESCRIPTION 5 Y NVARCHAR2 (200) None
ESTIMATEGROUPDESCRIPTION 6 Y NVARCHAR2 (200) None
BALLASTBONUS 7 Y NUMBER (12,2) None
BALLASTBONUSCOMMPCT 8 Y NUMBER (6,3) None
ISESTIMATE 9 N NUMBER (1) None
ADDITIONALSTEAMVALUE 10 Y NUMBER (8,4) None
ISADDITIONALSTEAMPCT 11 Y NUMBER (1) None
ADDITIONALPORTVALUE 12 Y NUMBER (8,4) None
ISADDITIONALPORTPCT 13 Y NUMBER (1) None
CREATEDBY 14 N NVARCHAR2 (32) Frequency
CREATEDDATE 15 N DATE None
UPDATEDBY 16 Y NVARCHAR2 (32) None
UPDATEDDATE 17 Y DATE None
LUMPSUMCARGOCOST 18 Y NUMBER (1) None
BUNKERPRICEMETHOD 19 Y VARCHAR2 (30 Byte) None
INCCONTCALCRESULT 20 Y NUMBER (1) None
FINAL_EST 21 Y NUMBER None
SPOT_VOYAGE 22 Y NUMBER (1) None
ISRUNCOSTEDIT 23 Y NUMBER (1) None
Index
Table doesnt have any index, except primary key index.
Total Records
35,000
Hope this input might sufficient to help me. -
Hi all,
I am trying to update one of the attribute of BO record by calling update function of BO in an application service. But i am getting an error message " Entity is locked by user guest".
I have written following code.
// getting service instance
OrderStatusServiceLocal orderstatusBOinstance = getOrderStatusService();
//getting a specific record
OrderStatus orderrecord = orderstatusBOinstance.readByCustomKeys(orderid);
//changing one of attribute
orderrecord.setApprovalstatus(newstatus);
//updating the record
orderstatusBOinstance.update(orderrecord);
Can anybody guide me in removing this error.
thanks in advance
ReenaI have checked the code. There is no problem in the current portion of the code, you have provided (I was wrongly thinking it should be insert into....!! mistake)
I have tested with Oracle Database and classes12.zip in classpath. It ran smoothly. -
I have a base template (which has never been sysprep'd) from which I create linked clones. After the linked clone comes up, I run the following command:
c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /reboot /unattend:c:\windows\panther\unattend.xml
This works fine for the first few linked clones, but after about 3-4 linked clones are running, I start to hit "A fatal error occurred while trying to sysprep the machine."
****c:\windows\panther\setuperr.log****
2013-03-29 16:40:07, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 32[gle=0x00000020]
2013-03-29 16:40:07, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
****c:\windows\panther\unattend.xml****
<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Enabled>true</Enabled>
<Username>Administrator</Username>
<Password>
<Value>ca$hc0w</Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>ca$hc0w</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
<TimeZone>Pacific Standard Time</TimeZone>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductKey>7M67G-PC374-GR742-YH8V4-TCBY3</ProductKey>
<ComputerName>*</ComputerName>
</component>
</settings>
</unattend>
****c:\windows\panther\setupact.log****
2013-03-29 16:40:07, Info [0x0f004d] SYSPRP The time is now 2013-03-29 16:40:07
2013-03-29 16:40:07, Info [0x0f004e] SYSPRP Initialized SysPrep log at c:\windows\system32\sysprep\Panther
2013-03-29 16:40:07, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2013-03-29 16:40:07, Info [0x0f0056] SYSPRP ValidateVersion:OS version is okay
2013-03-29 16:40:07, Info [0x0f005e] SYSPRP ScreenSaver:Screen saver was already disabled, no need to disable it for sysprep
2013-03-29 16:40:07, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file c:\windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT'
2013-03-29 16:40:07, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2013-03-29 16:40:07, Info [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
2013-03-29 16:40:07, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [c:\windows\panther\unattend.xml]...
2013-03-29 16:40:07, Info [sysprep.exe] UnattendFindAnswerFile: [c:\windows\panther\unattend.xml] meets criteria
for an explicitly provided unattend file.
2013-03-29 16:40:07, Info SYSPRP SysprepSearchForUnattend: Using unattend file at [c:\windows\panther\unattend.xml].
2013-03-29 16:40:07, Info SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [c:\windows\panther\unattend.xml] either doesn't exist or passed
validation
2013-03-29 16:40:07, Info SYSPRP WinMain:Found unattend file at [c:\windows\panther\unattend.xml]; caching...
2013-03-29 16:40:07, Info SYSPRP WinMain:Processing unattend file's 'generalize' pass...
2013-03-29 16:40:07, Info SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
2013-03-29 16:40:07, Info SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0
2013-03-29 16:40:07, Info [0x0f003f] SYSPRP WinMain:Processing 'cleanup' request.
2013-03-29 16:40:07, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 32[gle=0x00000020]
2013-03-29 16:40:07, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
2013-03-29 16:48:52, Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2013-03-29 16:48:52, Info [0x0f0059] SYSPRP ScreenSaver:Screen saver was originally disabled, leaving it disabled
2013-03-29 16:48:52, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2013-03-29 16:48:52, Info [0x0f004d] SYSPRP The time is now 2013-03-29 16:48:52Hi,
This is typical of an OEM license issue.
To avoid this in the future you should look at site/volume licensing.
Anyway.
so, first check if you can re-arm by runing the
slmgr.vbs /dlv and check the re-arm counter, if it set to zero.. you need to do the following :
http://support.microsoft.com/kb/929828 (set the <SkipRearm>1</SkipRearm> like in the example, note: this option will make the product key window to appear in the setup process).
you can also try running : slmgr.vbs -rearm, to rearm Windows.
after that, let's come back to the sysprep process.. for syspreping already syspreped machine we have to change few keys in the registry :
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
CleanupState:2
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
GeneralizationState:7
After done with the registry, do the following :
Start -> Run : msdtc -uninstall (wait few seconds)
Start -> Run : msdtc -install (wait few seconds)
Restart the machine
Check the registry for the right registry keys values
sysprep with the new XML answerfile.
Source: Olegm
If you find my information useful, please rate it. :-) -
Server java trace error while updating bulk records from AIX to Oracle 10g
Hi
I am getting an error in TCL (Tool Command language) script that updates the records in a database table i.e around 2500 records are to be updated. I am using update statement with bind variables to insert the data.
SQL "insert into netuser.visit_temp (FP_FROM,FP_TO,HOPS,FP_FROM_ID) values (:SN,:EN,:HP,:FPID)" [list SN $startnode EN $endnode HP $hops FPID $fpId]
However, after processing 900 or so records (takes around 8 hours) I get the following error:
environment variable "SERVER_JAVA_TRACE" undefined
while executing
"getenv SERVER_JAVA_TRACE"
invoked from within
"dotransaction {
logm "Processing $fp"
set value [SQL $query3 [list FP $fp]]
logm "Found value $value"
set fpid [Koplingspunkt quer..."
("foreach" body line 3)
invoked from within
"foreach fp $cmd2 {
UtilityObject cleanCache
dotransaction {
logm "Processing $fp"
set value [SQL $query3 [list FP $fp]]
logm "Found v..."
Could anyone please suggest the possible cause of error?Not a Java question. Locking.
-
Error while querying - You cannot update this record
Hi all,
I have a builded a form and was successful when i enter the data. But when i query the form it is showing me the error FRM-14050 YOU CANNOT UPDATE THIS RECORD.
I have pre-insert, pre-update and pre-query triggers at block level.
In PRE_INSERT iam setting the property to insert allowed and true.
same way for pre-update and pre-query.
Can any one guide me.
Thanks
SunilHi
check your fields name name and match with database fields.
vikas -
How to send error record to session in call transaction method
Hi experts,
I want to send only the error record to session while executing the program in call transaction method. please give me example on this
regards,
siva kumarOne logiv that I can suggest is that after you have got the details of the record in error, you write another perform build_Session and put the below logic in that.
Logic:
1. Build a internal table for the error records similar to the internal table you used for looping for the call transaction. In short this internal table will have only the records that have an error in call transaction.
2. Copy the recordign that you have done before and put it in the perform inside the loop and build the BDC table.
3. Then .using this BDC table you can build the BDC session.
- Guru
Reward points for helpful answers
3. -
How to upload error records in call transaction method
Hi all,
While uploading data by using call transaction. If any errors occured, how can we process that error records to database.
If all records are processed. How can we display the recent records which where uploaded.
AdvanceThanks for all.Hi Bharath
You can handle this in many ways. But the easiest option to do is as below,
once the call transaction ends in error, move that particular upload data to a separate internal table. Then finally download all these data to an error file.
Besides this after processing all the records diplay the log for error. So that users can modify the error in the file and can use the same for uploading again. For the data that has been processed successfully you can display the log similarly.
The error as well as sucess messages can be obtained from the messages table.
CALL TRANSACTION TCODE USING BDCDATA
MODE CTUMODE
UPDATE CUPDATE
MESSAGES INTO MESSTAB.
Regards
Kathirvel -
Call transaction and session methods error records
Hi All,
In call transaction method we will define a table of type bdcmsgcoll for storing the error records and later we will display that error message with format_message.In that table only those records with message type 'E' are stored or any other ?
I mean while transferring data using BDC either by call transaction or session method ,if we got message type other than 'E', like W or A etc.what about those records ,they will be udpated sucessfully or not?which message type records will be stored in the error log or in bdcmsgcoll table.
Thanks,
Rakesh.You will get all type of message recorded in the BDCMSGCOLL table when you use the CALL Transaction
For Session mehtod, while running you need to tick the "Extended Log" checkbox on the popup which comes after the process button.
Regards,
Naimesh Patel -
Listing BDC session method error records
Hi ABAP'rs,
Can any one help me, how to show error records of BDC session method on the List screen.
Thanks and Regards,
Param.Hi,
goto sm35 and find the error logs.
what do you mean by list screen...do you mean in ort output ?
Regards,
pankaj singh
Maybe you are looking for
-
BAdi - Automatic Creation of Transaction Type (Activities/Tasks)
Dear Experts, we have a customer requirement to create automatically Activities/Tasks if a certain date is reached. The user just want to receive a alarm/note when there is a created acitivitie. Which BAdi we casn use for the automatic creation of ac
-
Hello, I was searching about this, but until now I found no sufficient or clear answer..... Which communication component set ( and where can you download them ) can be used to develop for FCS 1.5 in Flash 8 Pro ? I'd like to use the AVPresence, Chat
-
Solaris 10 (sparc) + ZFS boot + ZFS zonepath + liveupgrade
I would like to set up a system like this: 1. Boot device on 2 internal disks in ZFS mirrored pool (rpool) 2. Non-global zones on external storage array in individual ZFS pools e.g. zone alpha has zonepath=/zones/alpha where /zones/alpha is mountpoin
-
To consider subcontract stock during mrp run
Dear all, while mrp run it is not considering subcontractor stock .Is there any setting in spro so that it will consider subcontractor stock into consideration. with regards cp vijaya kumar
-
Install 11gR2 client on Windows 7 in the Program Files (x86) folder
Hi, We have a requirement to install the 11g R2 client 32bit on Windows 7 into the Program Files (x86) folder. We already have the 10g client installed into this location, and wish to keep the Oracle software in the same ORACLE_BASE location. The ins