Forum Discussion
I like with both Renee and Chayce's suggestions, but one caveat with Renee's is you'd need to figure out how to make the new key field (your imported values) be unique for future records (e.g. auto-increment). I typically try to avoid changing the default key.
The other option that comes to mind is make a foreign key like Renee suggested, but not change that to the primary key field. Then, you could create a relationship to the old table using that key to reference old values.
I'd suggest Chayce's approach though assuming you haven't burned IDs in the new table by deleting test records, etc. That also potentially allows you to remove the old table and it's one less thing to manage.
The underlying issue here is we are not able to change Quickbase's default primary key values and the next auto-incrementing value like you can with a SQL table.
Ooh, and regarding your error … there's a different between importing and creating new records vs. importing and updating existing records. Or an "upsert" which is combination of both. It sounds like in your import you are trying to use a "merge field" to update records that don't exist. I'd make a test a table to play around with the import process and options that you can throw away once you're finished. In the import process, you'll set of merge field of say "Record ID#" … but, then in the subsequent step where you map fields, select "Do Not Import" to this field and that should create the new records for you using the new tables auto-generated IDs. Then, I'd try what Chayce suggested!
------------------------------
Brian Seymour
------------------------------
So I imported the exact amount of records to the new table and then tried the update. Same result...
|
------------------------------
Joshua Kaye
------------------------------
- ChayceDuncan12 months agoQrew Captain
Did you import the same # of records or up to the max record id # in the old table? You may only have 5000 records in total - but if you had deleted records in the old table the max record ID might be 5050 and in the new table you would need to import all the way to that number.
------------------------------
Chayce Duncan
------------------------------- JoshuaKaye12 months agoQrew Trainee
Where do I get that count? I was looking at the LIST ALL report.
------------------------------
Joshua Kaye
------------------------------- ChayceDuncan12 months agoQrew Captain
If you're running a list all, just make sure that Record ID# is in the report and then click it to sort largest to smallest and the biggest # is the one you're looking for. For example:
I have this table that has 75,102 record but the biggest RID in my table is 174,155 by sorting on that column.
------------------------------
Chayce Duncan
------------------------------