简体   繁体   中英

Azure Data Factory Table Storage Conversion Error

I'm trying to get data from Azure Table Storage using Azure Data Factory. I have a table called orders which has 30 columns. I want to take only 3 columns from this table (PartitionKey, RowKey and DeliveryDate). The DeliveryDate column has different data types like DateTime.Null (String value) and actual datetime values. When I want to preview the data i get the following error:

在此处输入图像描述

The DataSource looks like this:

{
"name": "Orders",
"properties": {
    "linkedServiceName": {
        "referenceName": "AzureTableStorage",
        "type": "LinkedServiceReference"
    },
    "annotations": [],
    "type": "AzureTable",
    "structure": [
        {
            "name": "PartitionKey",
            "type": "String"
        },
        {
            "name": "RowKey",
            "type": "String"
        },
        {
            "name": "DeliveryDate",
            "type": "String"
        }
    ],
    "typeProperties": {
        "tableName": "Orders"
    }
},
"type": "Microsoft.DataFactory/factories/datasets"}

I test your problem,it works.Can you show me more detail about this or there is something wrong about my test?

Below is my test data:

桌子

实体

预习

The dataset code:

{
    "name": "Order",
    "properties": {
        "linkedServiceName": {
            "referenceName": "AzureTableStorage",
            "type": "LinkedServiceReference"
        },
        "annotations": [],
        "type": "AzureTable",
        "structure": [
            {
                "name": "PartitionKey",
                "type": "String"
            },
            {
                "name": "RowKey",
                "type": "String"
            },
            {
                "name": "DeliveryDate",
                "type": "String"
            }
        ],
        "typeProperties": {
            "tableName": "Table7"
        }
    },
    "type": "Microsoft.DataFactory/factories/datasets"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM