cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

copying data to cosmos db from flow , giving error as invalid data

I am able to define a flow where i get a json response something as shown below.  I am using action "Create or update Document" and I have also defined the partition key but i get the error as "One of the specified input is invalid." . check the full error message below. Can someone please guide me what wrong am i doing

 

                                                                     Ankit77_0-1601588793416.png

 

body value in above step:

[{"Id":"ABC|CZ-J_1S4810L1_20201Z","DocType":"REC","Project":"VARYJAM_GUIK","ProjectId":"VARYJAM_GUIK_09990ISDF_20227Z","Tags":[],"Properties":{"WindowsUUID":"900E0AEC-35EA-11B2-A85C-EC54BBEEEE","X4SampleID":"9375953074","uDriverVersion":"v1_2_3"},"Categories":[],"Trigger":true,"Received":"2020-10-01T11:36:25.4408274Z"},{"Id":"ABC|CZ-J_1S4810L1_20227Z","DocType":"REC","Project":"VARYJAM_GUIK","ProjectId":"VARYJAM_GUIK_09990ISDF_20227Z","Tags":[],"Properties":{"WindowsUUID":"4IIAE4CC-35EA-1190-A85C-EC54B61DC9EE","X4SampleID":"9375953074","uDriverVersion":"v1_2_3"},"Categories":[],"Trigger":true,"Received":"2020-10-01T11:36:25.4408446Z"},{"Id":"ABC|CZ-J_1S4810L1_2020Z55","DocType":"REC","Project":"VARYJAM_GUIK","ProjectId":"VARYJAM_GUIK_09990ISDF_20205Z","Tags":[],"Properties":{"WindowsUUID":"0009AE3CC-35EA-11B2-A85C-EC54B6BO9EE","X4SampleID":"9375953074","uDriverVersion":"v1_2_3"},"Categories":[],"Trigger":true,"Received":"2020-10-01T11:36:25.4408616Z"}]

 

 

Complete Error message from above step output:

 

{
    "statusCode": 400,
    "headers": {
        "x-ms-last-state-change-utc": "Thu,01 Oct 2020 01:20:08.577 GMT",
        "lsn": "1",
        "x-ms-schemaversion": "1.10",
        "x-ms-quorum-acked-lsn": "1",
        "x-ms-current-write-quorum": "3",
        "x-ms-current-replica-set-size": "4",
        "x-ms-xp-role": "1",
        "x-ms-global-Committed-lsn": "1",
        "x-ms-number-of-read-regions": "0",
        "x-ms-transport-request-id": "7",
        "x-ms-cosmos-llsn": "1",
        "x-ms-cosmos-quorum-acked-llsn": "1",
        "x-ms-session-token": "0:1",
        "x-ms-request-charge": "1.67",
        "x-ms-serviceversion": "version=2.11.0.0",
        "x-ms-activity-id": "80d65be4-9a2e-4a50-bc03-ff1364a41849",
        "Strict-Transport-Security": "max-age=31536000",
        "x-ms-gatewayversion": "version=2.11.0",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "Date": "Thu, 01 Oct 2020 21:05:51 GMT",
        "Content-Length": "1102",
        "Content-Type": "application/json"
    },
    "body": {
        "code": "BadRequest",
        "message": "Message: {\"Errors\":[\"One of the specified inputs is invalid\"]}\r\nActivityId: 80d65be4-9a2e-4a50-bc03-ff1364a41849, Request URI: /apps/099caga2-ea2c-4195-8563-f7abba6e492a/services/090a829-b004-4560-bb20-df25687096f6/partitions/opp95e8af-e9cd-4970-8112-b9218636986f/replicas/888050248535p/, RequestStats: \r\nRequestStartTime: 2020-10-01T21:05:51.6825863Z, RequestEndTime: 2020-10-01T21:05:51.6825863Z,  Number of regions attempted:1\r\nResponseTime: 2020-10-01T21:05:51.6825863Z, StoreResult: StorePhysicalAddress: rntbd://abc-ms-prod-northeurope1-ko98.documents.azure.com:09991/apps/099caga2-ea2c-4195-8563-f7abba6e492a/services/090a829-b004-4560-bb20-df25687096f6/partitions/opp95e8af-e9cd-4970-8112-b9218636986f/replicas/888050248535p/, LSN: 1, GlobalCommittedLsn: 1, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 1.67, ItemLSN: -1, SessionToken: 1, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Create\r\n, SDK: Microsoft.Azure.Documents.Common/2.11.0"
    }
}

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,764)