Closed garfbradaz closed 2 years ago
Any thoughts.....anyone?
Hi,
As drop-down option suggests - Bulk import only support single partition collections.
Regards, Alex.
@nahk-ivanov : Haha, I didn't see that (or it didn't twig in my tired brain) :)
The reason I wanted to use Bulk Import is I wanted to use the Stored Procedures to handle array of subdocuments within a record. Similar to an issue described here:
@garfbradaz did you get anywhere with this issue?
@gertaylor : I didn't. Im going to log a separate Issue about my actual issue with array of SubDocuments from SQL-To-Cosmos. Maybe I'm missing something :)
Wow, I'm having the exact issue with trying to migrate documents which contains the nested collections using the store procedure, @garfbradaz did you find out any solution later?
Issue
When I want to use the Migration tool to import data from a SQL Source to pre-built (i.e. manually setting up via the Portal with a PartitionKey) Collection I get the following error:
Row 1: PartitionKey value must be supplied for this operation.
I'm using the DocumentDB - Bulk Import selections, because I want to use a custom Bulk Insert Stored Procedure.
I though do include a Partition Key when setting up the target information. The funny thing is though, if I delete the existing Collection and re-run the Migration Tool, it creates the Collection BUT without a Partition Key.
FYI I'm using the local CosmosDB Emulator.
Repro Steps
To get Error and no Row inserted
Don't get an error and the Row is inserted