473,406 Members | 2,404 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,406 software developers and data experts.

ORA-01401: inserted value too large for column

12
ORA-01401: inserted value too large for column

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OracleClient.OracleException: ORA-01401: inserted value too large for column


Source Error:


Line 2336: Dim returnValue As Integer
Line 2337: Try
Line 2338: returnValue = command.ExecuteNonQuery
Line 2339: Finally
Line 2340: If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then

I would appreciate the help with this error i am getting. i have been working on this for the past few days now and reaching nowhere. please help!!!!! I have no knowledge of asp.net and i have to build a web base database on top of that i am not good at programming therefore i am fighting up with this error which is probably very simple to solve.
Feb 16 '12 #1
8 2897
Rabbit
12,516 Expert Mod 8TB
The error text is pretty self explanatory. The value that you're trying to put into the database is too big for the column in the database. You either need to make the string that you're inserting shorter or make the max length of the field longer. The choice is yours.
Feb 16 '12 #2
abby1
12
Expand|Select|Wrap|Line Numbers
  1. Department_ID varchar2 50
  2. Sequencec_ID varchar2 10
  3. Requesting Officer varchar2 50
  4. Date_Requested Date
  5. Date_Sent Date
  6. Date_Returned Date
  7. Returning_Department varchar2 50
  8. Receiving_Officer varchar2 50
  9. Remarks varchar2 100
Hi this is how the data is represented where i am getting the error when executing the form.
Feb 17 '12 #3
Stewart Ross
2,545 Expert Mod 2GB
In post #1 returnvalue is defined as an integer. Integers can take signed values of about +/- 32,767 max. Any assignment to that integer value of a value greater than 32,767 (or less than -32768 roughly) will cause a failure.

The column definitions you posted above are varchars (text-strings) and dates. Varchars are normally used for alphanumeric combinations rather than all-numeric (whole number) values, so I'm not sure what you are doing here.

In any event, as Rabbit pointed out the error message is self-explanatory, but what you have posted above does not help us know the circumstances in which the error is occurring. We need you to post the text of the SQL statement you are trying to execute, as varchars and integer values just don't square with each other at all.

-Stewart
Feb 17 '12 #4
abby1
12
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO "RECORDS MGMT-REQUEST"
  2.                          (DEPARTMENT_ID, SEQUENCE_ID, REQUESTING_OFFICER, DATE_REQUESTED, DATE_SENT, DATE_RETURNED, RETURNING_DEPARTMENT, 
  3.                          RECEIVING_OFFICER, REMARKS)
  4. VALUES        (:DEPARTMENT_ID, :SEQUENCE_ID, :REQUESTING_OFFICER, TO_DATE(:DATE_REQUESTED, 'MM/dd/yyyy'), TO_DATE(:DATE_SENT, 'MM/dd/yyyy'), 
  5.                          TO_DATE(:DATE_RETURNED, 'MM/dd/yyyy'), :RETURNING_DEPARTMENT, :RECEIVING_OFFICER, :REMARKS)
Hi i am trying to insert data into a table. this is the insert statement. Thanks again for the help.
Feb 17 '12 #5
Rabbit
12,516 Expert Mod 8TB
I'm not sure what else to say without repeating myself.

Find which value you're trying to insert that is too long. Then either shorten the value or make the field longer.
Feb 17 '12 #6
abby1
12
@Rabbit

Hi just want to say thank you for your help. i went through all the fields and made changes as you said and saw my error. thanks again.
Feb 22 '12 #7
Rabbit
12,516 Expert Mod 8TB
Not a problem abby. Good luck.
Feb 22 '12 #8
abby1
12
Thanks. i do need luck cause i have never used asp.net and its really challenging.
Feb 28 '12 #9

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

Similar topics

6
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on...
1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the...
6
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
2
by: Sheela | last post by:
I am trying to access the tables of a remote database(db2) from db1 database. I am getting the following error: ORA-12154: TNS:could not resolve service name I tried tnsping the db2 service_name...
2
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core...
8
by: CJM | last post by:
I have a working web application (ASP) which links to an Oracle 10g DB via OO4O. I'm trying to port it to either of two test servers, but in fact, I can't get it to work with either - 'Unable to...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
0
by: basmgokul | last post by:
I am using oracle 10g in windows vista.. when starting DB it throws an error Errors in file c:\database\udump\practice_ora_440.trc: ORA-00704: bootstrap process failure ORA-39700: database...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.