Forum Discussion

MehdiMaskoot's avatar
MehdiMaskoot
Qrew Trainee
6 years ago

I need Import to do only inserting without updating existing records

Hi everyone, I have a table that I want to import my spread sheet data into it, without updating my existing records. I don't have Record ID as my Primary key. My table has its own PK. When I try to import it doesn't give me any option to select only insert without updating the existing records. Please help. Thanks.

4 Replies

  • SuryaExpert's avatar
    SuryaExpert
    Qrew Assistant Captain
    As long as you have the primary key field in the xl that you are importing from, quickbase will only insert/update. If you want to only insert, I would consider removing that column from the XL.
    • MehdiMaskoot's avatar
      MehdiMaskoot
      Qrew Trainee
      Remove the PK from my XL??? :)))
      How does QB know the value of my PK field then???
      I am receiving the XL from a customer and it has thousands of records that I don't know what records are new. I guess QB needs to redesign its import then.
    • QuickBaseCoachD's avatar
      QuickBaseCoachD
      Qrew Captain
      This can be done with some extra setup.

      You can import your data into a temporary import table where the Key field is your own PK.  The based on a relationship where that is the parent make a relationship to the real data field based on a reference field on the child side of the PK field.

      Then make a summary total of the # of existing data records.  Then either using a saved table to table import or a manual  "copy these records to another table:, filer the record based on # of existing data records = 0.

      That way it will never import and update existing records.

      When you get the next XL file, you purge the temporary import  scratch file data and start again fresh.
    • MehdiMaskoot's avatar
      MehdiMaskoot
      Qrew Trainee
      Yes, I was able to do it by creating an Action.
      But, why QB team doesn't simply provide a checkbox to ask if user wants to also update or he/she only wants to insert.
      They are checking for existing records anyways. They could simply ignore the existing records based on the user request and it would be even much faster to only insert.
      Thanks anyways.