Results 1 to 7 of 7
  1. #1
    skydivetom is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    1,045

    Append Query Results in Error

    Experts:



    I have run into an issue when running an APPEND query. Allow me to provide some background first.

    - I have a MASTER table (unpopulated) that contains approximately 200 fields.
    - I also have various organizational tables from which I need to (sequentially) append records into the MASTER TABLE.
    - For the first four organizational files/tables, the APPEND query worked flawlessly and APPENDED nearly 100K records within a few seconds.
    - I will say, however, NOT every single field (out of the 200) is populated by the first 4 tables. That's perfectly fine given that some organizations have more data than others.

    Here's my current issue:
    a. I have now transitioned into a 5th organizational table. That one contains ~15K records.
    b. When running the APPEND query, however, I'm getting an error (see attached JPG).
    c. My first step was to double-check that I am NOT attempting to append, e.g., a string into a numeric field (or any other data type violation).
    d. Based on c., I'm relatively confident that all data types line up and the append query inserts text into TEXT and numbers into NUMERIC fields, etc.

    Now, assuming that c. is a correct assumption (and I will double-check again), is there anything else that I should look into? Also, please let me point out that the MASTER table does NOT have a UNIQUE index. Finally, it is my understanding that all fields (by default) are set to "Required = No"; "Duplicates = Allowed". Is that a correct assumption?

    So, again, I'd welcome any ideas that might allow me to identify as to what's causing the issue. Btw, for proprietary reasons, I do NOT feel comfortable posting some sample records due to business ethics. I understand that not seeing a sample record may hamper any specific error identification.

    Anyhow, anything that might re-direct me to look into issues outside "data types" would be greatly appreciated.

    Thank you,
    Tom
    Attached Thumbnails Attached Thumbnails AppendQuery.JPG  

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    My first step was to double-check that I am NOT attempting to append, e.g., a string into a numeric field (or any other data type violation).
    That is exactly what the message says you are attempting to do. There are 4 reasons why you get this message along with the count of records that failed for each case. You have 2 in the first case. If you should have no null fields, it should be easy to find the fields that are the problem. If not, I guess you have n fields to check, where n is the count of all fields with a null value. But you must know what the data type is at the source as well.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,412
    The append did append all records (if you click YES). It just failed to include the contents of 2 fields. Maybe you can inspect the Master table and the 5th table to identify the failed fields.
    Last edited by davegri; 04-27-2021 at 09:15 PM. Reason: clarif

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,426
    Numeric to numeric is not sufficient. There are different sizes within numeric- byte, integer, long, double for example. Trying to append a long to an integer field will fail if the long value is outside the range for integers

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Have you checked the date fields? Maybe some are in a date format the master table can't identify as date

  6. #6
    skydivetom is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Feb 2019
    Posts
    1,045
    Good morning, experts!

    Thank you for the feedback... based on your info, I was able to successfully resolve the underlying differences in data types. Again, thank you for the pointers... as they say, "the devil is/was in the detail".

    Cheers!!

    Tom

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    A posted solution is always nice idea. It might help a future reader.
    And thanks for the rep point!
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 8
    Last Post: 01-04-2019, 10:20 AM
  2. Append query Error
    By Perfac in forum Queries
    Replies: 11
    Last Post: 08-28-2018, 02:50 AM
  3. Append query error
    By lonely in forum Queries
    Replies: 7
    Last Post: 08-24-2015, 08:57 AM
  4. Replies: 3
    Last Post: 03-11-2012, 08:24 PM
  5. append query error
    By shashigk in forum Queries
    Replies: 2
    Last Post: 09-22-2009, 07:17 AM

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