Append with UpsertKey Columns Set to True
I am appending data to a Domo dataset and it works great. But, there are duplicates. So, I created an identical Domo dataset and then modified the schema so that upsertKey is set to true on two of my columns. When I try to upload my file to this new dataset configured with upsert key columns, I get an error saying to few columns found. This is the command I'm using:
"upload-dataset -i ${dataset_id} -f ${file} '-h' '-a'"
(Note, I'm just uploading a single file each time)
And this is my schema:
{"columns":[
{"name":"Column0","type":"LONG","id":"Column0","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"Attributed Second","type":"DATETIME","id":"Attributed Second","metadata":{"isEncrypted":false},"upsertKey":true,"isVisible":true},
{"name":"Sub Account Name","type":"STRING","id":"Sub Account Name","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"Lead UUID","type":"STRING","id":"Lead UUID","metadata":{"isEncrypted":false},"upsertKey":true,"isVisible":true},
{"name":"bridge page","type":"STRING","id":"bridge page","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"docID Tag","type":"STRING","id":"docID Tag","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"platform Tag","type":"STRING","id":"platform Tag","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"referrer Tag","type":"STRING","id":"referrer Tag","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"mpid Tag","type":"STRING","id":"mpid Tag","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"deviceid Tag","type":"STRING","id":"deviceid Tag","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"State","type":"STRING","id":"State","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true},
{"name":"Clicked Link (Leads)","type":"STRING","id":"Clicked Link (Leads)","metadata":{"isEncrypted":false},"upsertKey":false,"isVisible":true}
],"objects":[{"Identity":"Attributed Second"},{"Identity":"Lead UUID"}],"views":[]}
My file has 12 columns and this schema has 12 columns, but I am getting this error:
{ "status": 400, "statusReason": "Bad Request", "message": "Invalid CSV provided during upload. msg=There are too few columns. Expected 14. Row 1, column 13. Row: 1,9/21/2022 7:26,CNBC - Rev Share - Embed - LT Savings,7e8f1b9d-9621-46a8-aeb6-4428fa0462e4,,,,,,,OK,1\r\n", "toe": "ZLZ7LS50ZX-47Q28-KFO0Y" }
Please help? Thanks!
Answers
-
UPDATE: This issue is resolved! It was an error on my end. Sorry!
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 709 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive