473,382 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

HELP ME ~~ I found error "6:Overflow" in my logs file :(

Dear all, I hit an error OVERFLOW but when I insert the sql statement below manually in the SQLEditor, it goes well, no errors at all.
My coding:

SQLInsertTempMf = "INSERT INTO tempmf " & _
"(scn, bl_num,master_ind,cin_num,master_bl,container_no, consignee_code, consignee_name,consignee_addr1, " & _
"consignee_addr2,consignee_addr3,consignee_addr4,s hipper_code,shipper_name, shipper_addr1, shipper_addr2,shipper_addr3, " & _
"shipper_addr4,nparty_code,nparty_name,nparty_addr 1,nparty_addr2, nparty_addr3, nparty_addr4,mark1, " & _
"mark2,mark3,mark4,tot_mf_qty,tot_mf_vol, tot_mf_wgt, tot_cg_val,tot_mf_item, week_ind, " & _
"tranship_ind,transfer_ind,transfer_date,transfer_ scn,transfer_so_num, remeasure_req, remeasure_ind,remeasure_date, overland_ind, " & _
"port_load,port_orig,custom_form,overland_bl,inv_i nd,inv_date,inv_num,first_inv_date, inv_ton, " & _
"wharfage_ton,gp_ind,gp_date,first_gp_num,last_gp_ num, photo_path,bulk_ind,disc_date, new_mark1, " & _
"new_mark2,new_mark3,new_mark4,mf_close,gd_stk_cnt _ind, upd_gd_stk_user_id,upd_gd_stk_date, upd_gd_stk_time, " & _
"delv_date,add_user,add_date,add_time,upd_user , upd_date,upd_time, document_id, bl_flag, print_ind, final_destination) " & _
"VALUES('" & strScn2 & "', '" & strBlNumber & "', '" & strBlType & "', '', " & _
"'" & strMasterBlNumber & "', '" & strMasterContainerNumber & "', '', " & _
"'" & Apostrophe(CStr(strConsigneeName)) & "', '" & Apostrophe(CStr(strConsigneeAddressLine1)) & "', '" & Apostrophe(CStr(strConsigneeAddressLine2)) & "', " & _
"'" & Apostrophe(CStr(strConsigneeAddressLine3)) & "', '" & Apostrophe(CStr(strConsigneeAddressLine4)) & "', '', " & _
"'" & Apostrophe(CStr(strShipperName)) & "', '" & Apostrophe(CStr(strShipperAddressLine1)) & "', '" & Apostrophe(CStr(strShipperAddressLine2)) & "', " & _
"'" & Apostrophe(CStr(strShipperAddressLine3)) & "', '" & Apostrophe(CStr(strShipperAddressLine4)) & "', '', '" & Apostrophe(CStr(strNotifyPartyName)) & "', " & _
"'" & Apostrophe(CStr(strNotifyPartyAddressLine1)) & "', '" & Apostrophe(CStr(strNotifyPartyAddressLine2)) & "', '" & Apostrophe(CStr(strNotifyPartyAddressLine3)) & "', " & _
"'" & Apostrophe(CStr(strNotifyPartyAddressLine4)) & "', '" & Apostrophe(CStr(strCargoMarking1)) & "', '" & Apostrophe(CStr(strCargoMarking2)) & "', '" & Apostrophe(CStr(strCargoMarking3)) & "', '" & Apostrophe(CStr(strCargoMarking4)) & "', 0, 0.00,0.00,0.00, 0, 'N', " & _
"'" & strTranshipmentFlag & "', 'N', Null, '', '', '', 'N', Null, 'N', '" & strPortOfLoading & "', '" & strPortOfOrigin & "', " & _
"'', '', 'N', Null, '', Null, 0.00, 0.00, 'N', Null, '', '', '', '" & strBulkFlag & "', Null, '', '', '', '', 'N', 'N', 'N', Null, '', Null, 'wsw', Null, '', '', Null, '', '" & DocId & "', 'N', 0, '" & Apostrophe(CStr(strFinalDestination)) & "') "

Call LogIt(LOGDEBUG, "after SQLInsertTempMf" & SQLInsertTempMf)
queryInsertTempMf.SQL = SQLInsertTempMf
queryInsertTempMf.Prepared = True
Set queryInsertTempMf.ActiveConnection = conRDO
queryInsertTempMf.Execute

If (queryInsertTempMf.RowsAffected <= 0) Then
conRDO.RollbackTrans
End If

================================================== =======
Error in my logs file:

2007-09-19 11:41:14:DEBUG: after SQLInsertTempMfINSERT INTO tempmf (scn, bl_num,master_ind,cin_num,master_bl,container_no, consignee_code, consignee_name,consignee_addr1, consignee_addr2,consignee_addr3,consignee_addr4,sh ipper_code,shipper_name, shipper_addr1, shipper_addr2,shipper_addr3, shipper_addr4,nparty_code,nparty_name,nparty_addr1 ,nparty_addr2, nparty_addr3, nparty_addr4,mark1, mark2,mark3,mark4,tot_mf_qty,tot_mf_vol, tot_mf_wgt, tot_cg_val,tot_mf_item, week_ind, tranship_ind,transfer_ind,transfer_date,transfer_s cn,transfer_so_num, remeasure_req, remeasure_ind,remeasure_date, overland_ind, port_load,port_orig,custom_form,overland_bl,inv_in d,inv_date,inv_num,first_inv_date, inv_ton, wharfage_ton,gp_ind,gp_date,first_gp_num,last_gp_n um, photo_path,bulk_ind,disc_date, new_mark1, new_mark2,new_mark3,new_mark4,mf_close,gd_stk_cnt_ ind, upd_gd_stk_user_id,upd_gd_stk_date, upd_gd_stk_time, delv_date,add_user,add_date,add_time,upd_user, upd_date,upd_time, document_id, bl_flag, print_ind, final_destination) VALUES('07092012', 'PGK302', 'N', '', '', '', '', 'CONTINENTAL ACTION SDN BHD', '248,LRG 3,JLN SIOL KANDIS,KP.SIOL', 'KANDIS,', '', '', '', 'PSJ LOGISTICS SDN BHD', 'PENANG', '', '', '', '', 'CONTINENTAL ACTION SDN BHD', '248,LRG 3,JLN SIOL KANDIS,', 'KG.SIOL KANDIS', '', '', '- ', '', '', '', 0, 0.00,0.00,0.00, 0, 'N', 'N', 'N', Null, '', '', '', 'N', Null, 'N', 'MYPEN', 'MYPEN', '', '', 'N', Null, '', Null, 0.00, 0.00, 'N', Null, '', '', '', 'N', Null, '', '', '', '', 'N', 'N', 'N', Null, '', Null, 'wsw', Null, '', '', Null, '', 'MF20070919-0001', 'N', 0, '')
2007-09-19 11:41:15:ERROR: insertTempTableError:6:Overflow
Sep 19 '07 #1
0 1346

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: aj | last post by:
DB2 v8 FP5 Red Hat AS/EL 2.1 I found the following in my db2diag.log: 2004-09-07-10.01.37.747898 Instance:oltp Node:000 PID:14637(db2agent (NDRDB)) TID:8192 ...
2
by: Andy Davis | last post by:
Dear Group I am trying to automate process of adding a new record id in my form using the following code when the user clicks the "Add New Record" button. For example if the last record id is...
4
by: Spook | last post by:
Running a particular Access report or the query associated with it brings up the warning "Overflow". What does this mean? WhatI have I done wrong? Both report and query were fine before lunch...
1
by: BillCo | last post by:
I've been running a text-to-table import as part of a daily routine for years and I've just added a few new fields and updated the import spec. The strange thing is that it works perfectly when...
3
by: poifull | last post by:
Hi All, What is the proper way to read a binary file into a byte? I am using BinaryReader to read from a Stream and call the ReadByte method of the BinaryReader object. The method I'm using...
3
by: SheldonMopes | last post by:
I sometimes get a pop-up box that reads "Overflow" and the module that is executing pauses. It doesn't get caught by my error trapping, and it seems to be randow. By random, I mean usually in the...
5
xxoulmate
by: xxoulmate | last post by:
help on progress bar on error: "overflow" is the message., what is the cause of error., the progressbar value basis on the second(time) progressbar max value = 59 progressbar min value = 0
1
by: rileyjane | last post by:
Hello, I am running a Union query in Access 2003 that combines two other queries. When I run each query individually, they open fine with no problems. But when I try to run the Union query, I...
2
by: johnwaddy | last post by:
I'm clueless to the problem, I have a couple of account with 300+ records and all of a sudden when you recalc it reaches record 256 and pops up this "Overflow" error. I do not have any issues with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.