Results 1 to 13 of 13
  1. #1
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43

    Run-time Error 3146 - ORA-01722 Invalid Number

    I have searched for an answer to this with no results specific to my situation.



    I have a user database that has not had this issue since it was created over a year ago. Suddenly, two users get this error on most of the records they try to enter, but nobody else has this problem. I can't replicate it as I don't get this when I try to update the same records.

    I verified that the table the form is writing to matches all field types (number/text/date/etc), and of course it's not every record that has the issue.

    Any suggestions?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Need more info. Try to describe what the DB is doing when the User is interacting with it? Are you using ODBC to connect? Is this a stand-alone file on the local machine?

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

  4. #4
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43
    The user enters information into about 25 fields, then clicks a save button to transfer the information into a table. It is on this click that the user gets the error. Yes, there is an ODBC connection and these tables are remote.

    On a record where one user is getting an error, three other users (including myself) do not get this error.

  5. #5
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43
    Thanks orange, this is one of the links I used to troubleshoot prior to posting in this forum

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    It looks like orange did a little digging for you. Maybe these users are managing data that is unique from the other users and there is a misinterpretation of characters. It sounds like you may be using an unbound form. Perhaps a temp table would help to standardize characters, matching fields in Access table to fields in remote table. Save in local temp table before export.

  7. #7
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43
    That's an interesting idea. I could export to a table without the same parameters to see what is actually being sent. I'll try that, thank you for the idea

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Let us know...

  9. #9
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43
    So I created local table1 as an exact copy of remote table2 (the original destination) and updated the code to point there. Success. Then I added a query to the process to update table2 directly from table1 and tested it successfully on my PC. However, it worked a couple times for the users and a couple times it gave the same error.

    It appears to have to do with those users writing to the remote table2, but what is perplexing is that it doesn't error every time. If it was a connection/ODBC issue, it should fail every time.

  10. #10
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You cannot take error codes too literally, at least their descriptions too literally.

    I do not know anything about the Oracle so I cannot comment on that. However, matching data types between different flavors of DB's takes concentration.

    Are you able to identify what field/record is throwing the error?
    Did you do your best to get the Access data field to match the data type in the Oracle DB?

  11. #11
    user9 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2013
    Location
    US
    Posts
    43
    I have not been able to identify the field in error. If you have a form with many fields that update into a table, is there a quick way to isolate what is causing the error?

    The Access fields match the Oracle DB. For most users, there is no error. It's something about these two users' PCs or something they're doing that is not easily identified.

  12. #12
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by user9 View Post
    ...If you have a form with many fields that update into a table, is there a quick way to isolate what is causing the error?...

    Not that I am aware of. My approach is to use VBA to leave bread crumbs. In each control's AfterUpdate event handler I would place some VBA that would write to a log/table, identifying a successful update. Error trapping would log the error.

    You are correct that these two users are doing something different. You were able to duplicate what is different when you got the error using the temp table. I suspect their data is different from other users. Perhaps you are storing large numbers into an Oracle data type that is not acceptable. It seems to me that the data types in the Access table match the User's input and Oracle is not understanding.

    Are you, simply, using Text data types in all of your Access fields?

  13. #13
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Can you tell us more about your set up?
    Since you are using Access and Oracle via ODBC, are all versions of Access the same?
    Does each user have a copy of the Access front end on their own PC?
    Is the Access front end the same for all users?

    I haven't used Oracle for a long time, but it seems to me you are getting an error returned by Oracle. So something is being misunderstood/incorrectly converted/substituted at the Oracle end in my view.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. "Run Time Error 3146, ODBC call failed" :(
    By selvakumar.arc in forum Access
    Replies: 0
    Last Post: 12-04-2014, 01:57 PM
  2. Run time error '94': Invalid Use of Null... help
    By batowl in forum Programming
    Replies: 3
    Last Post: 05-14-2014, 01:58 PM
  3. Replies: 9
    Last Post: 12-08-2012, 04:56 PM
  4. Replies: 0
    Last Post: 02-22-2011, 04:18 PM
  5. Run-Time Error 3044 - Invalid Path?
    By KrenzyRyan in forum Import/Export Data
    Replies: 8
    Last Post: 01-19-2011, 10:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums