Azure-cosmos-dotnet-v2: Update file returns null error with local emulator

Created on 10 Feb 2019  路  6Comments  路  Source: Azure/azure-cosmos-dotnet-v2

Update file returns null error with local emulator

I am having the error of return null for uploading json file that works fine on Azure. It reports null and holds the process for a long time and eventually causes the blue screen with a stop code: code page in a non-page zone.

Most helpful comment

I can reproduce this. Attempting upload valid JSON with a handful of records causes the following:

image

image

The spinner in the messages pane keeps going.

Emulator version 2.2.1.0

Sample of the JSON file:

[
    {           
        "id": "1d3e9c8b-d173-4105-9c1a-d76d028fc7c3",
        "bookingref": "BK000004",
        "bookingdate": "1549394520",
        "contact": {
            "forename": "Thor",
            "surname": "Bjornsson",
            "profileref": "prf003"
        }
    },
    {       
        "id": "0d1d11ea-e6ad-4310-b002-e332ffbdc1b6",
        "bookingref": "BK000005",
        "bookingdate": "1553791500",
        "contact": {
            "forename": "Eddie",
            "surname": "Hall",
            "profileref": "pf001"
        }
    },
    {
        "id": "1f7e545f-c1ef-4fda-a26c-abbd3cc227a2",
        "bookingref": "BK000006",
        "bookingdate": "1540794600",
        "contact": {
            "forename": "Magnus",
            "surname": "Midtbo",
            "profileref": "pf002"
        }
    },
    {
        "id": "364be7e9-b882-4890-8e8c-82b7b828c176",
        "bookingref": "BK000007",
        "bookingdate": "1554891000",
        "contact": {
            "forename": "Jon",
            "surname": "Call",
            "profileref": "pro001-1"
        }
    },
    {
        "id": "6ab0c130-9c27-4820-a71e-fbbbce7015b7",
        "bookingref": "BK000008",
        "bookingdate": "1547421780",
        "contact": {
            "forename": "Bouldering",
            "surname": "Bobat",
            "profileref": "pro002-1"
        }
    }
]

All 6 comments

I can reproduce this. Attempting upload valid JSON with a handful of records causes the following:

image

image

The spinner in the messages pane keeps going.

Emulator version 2.2.1.0

Sample of the JSON file:

[
    {           
        "id": "1d3e9c8b-d173-4105-9c1a-d76d028fc7c3",
        "bookingref": "BK000004",
        "bookingdate": "1549394520",
        "contact": {
            "forename": "Thor",
            "surname": "Bjornsson",
            "profileref": "prf003"
        }
    },
    {       
        "id": "0d1d11ea-e6ad-4310-b002-e332ffbdc1b6",
        "bookingref": "BK000005",
        "bookingdate": "1553791500",
        "contact": {
            "forename": "Eddie",
            "surname": "Hall",
            "profileref": "pf001"
        }
    },
    {
        "id": "1f7e545f-c1ef-4fda-a26c-abbd3cc227a2",
        "bookingref": "BK000006",
        "bookingdate": "1540794600",
        "contact": {
            "forename": "Magnus",
            "surname": "Midtbo",
            "profileref": "pf002"
        }
    },
    {
        "id": "364be7e9-b882-4890-8e8c-82b7b828c176",
        "bookingref": "BK000007",
        "bookingdate": "1554891000",
        "contact": {
            "forename": "Jon",
            "surname": "Call",
            "profileref": "pro001-1"
        }
    },
    {
        "id": "6ab0c130-9c27-4820-a71e-fbbbce7015b7",
        "bookingref": "BK000008",
        "bookingdate": "1547421780",
        "contact": {
            "forename": "Bouldering",
            "surname": "Bobat",
            "profileref": "pro002-1"
        }
    }
]

any fix for this issue?

any ideas on this? thanks

Please upgrade the emulator to the latest version. It should be fixed in version 2.11.1

thanks - that worked :)

hey @j82w its been a good 12+ months since i worked with the emulator, but refreshing myself on the azure cosmos "non production" development/testing free pricing tier, i take that to mean Microsoft are now steering people away from the emulator to use Azure services directly instead? that would make complete sense to me anyway

Was this page helpful?
0 / 5 - 0 ratings