简体   繁体   English

将服务链接到MySQL。 使用ICU转换源编码为UTF-8的无效输入时出错

[英]Linked Service to MySQL. Error converting invalid input with source encoding UTF-8 using ICU

In Azure Data Factory I created a MySQL linked service. Azure Data Factory我创建了一个MySQL链接服务。 But during data preview I get error: 但是在数据预览期间我得到了错误:

ERROR [HY000] [Microsoft][Support] (50311) Error converting invalid input with source encoding UTF-8 using ICU. 错误[HY000] [Microsoft] [支持](50311)使用ICU转换源编码为UTF-8的无效输入时出错。 Rejected bytes began with: CFC2.. Activity ID:e3b7fc32-8fcd-4981-b0e3-f377c6b17150 拒绝的字节始于:CFC2。活动ID:e3b7fc32-8fcd-4981-b0e3-f377c6b17150

Most likely a coding error. 最有可能是编码错误。 But I did not find how to configure it 但是我没有找到如何配置它

Here is JSON of linked sevice 这是链接服务的JSON

{
    "name": "n_trans_connection",
    "type": "Microsoft.DataFactory/factories/linkedservices",
    "properties": {
        "annotations": [],
        "type": "MySql",
        "typeProperties": {
            "connectionString": "server=some-server;port=some-port;database=u5256_mti_spr;user=some-user;sslmode=1;usesystemtruststore=0",
            "encryptedCredential": "some-hash"
        }
    }
}

How to set up encoding? 如何设置编码?

Since the error is when you preview data , I don't think that is coding issue . 由于错误是在预览数据时出现的,因此我认为这不是编码问题。 Can you please check if you select a different table and if you face the same issue . 能请您检查是否选择其他表格以及是否遇到相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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