1

我正在传递所需的凭据和参数,但出现错误

属性“索引”的值无效:“索引超出范围。必须是非负数且小于集合的大小。参数名称:索引'。指数超出范围。必须是非负数且小于集合的大小。参数名称:索引活动ID:36a4265d-3607-4472-8641-332f5656661d。

4

2 回答 2

1

我有同样的问题,密码包含一个 ' ,这造成了麻烦。更改了没有符号的密码,它就像一个魅力

于 2021-03-25T13:26:45.513 回答
0

似乎 UI 没有正确生成链接服务。使用Microsoft Docs 示例 JSON尝试创建链接服务时,我收到了相同的索引错误。如果我从连接字符串中删除密码并将其添加为单独的属性,我就能够成功生成链接服务。

Microsoft Docs 示例(不起作用)

{
    "name": "SnowflakeLinkedService",
    "properties": {
        "type": "Snowflake",
        "typeProperties": {
            "connectionString": "jdbc:snowflake://<accountname>.snowflakecomputing.com/?user=<username>&password=<password>&db=<database>&warehouse=<warehouse>&role=<myRole>"
        },
        "connectVia": {
            "referenceName": "<name of Integration Runtime>",
            "type": "IntegrationRuntimeReference"
        }
    }
}

工作示例

{
    "name": "SnowflakeLinkedService",
    "properties": {
        "type": "Snowflake",
        "typeProperties": {
            "connectionString": "jdbc:snowflake://<accountname>.snowflakecomputing.com/?user=<username>&db=<database>&warehouse=<warehouse>",
            "password": {
                "type": "SecureString",
                "value": "<password>"
            }
        },
        "connectVia": {
            "referenceName": "<name of Integration Runtime>",
            "type": "IntegrationRuntimeReference"
        }
    }
}
于 2020-08-06T15:25:10.690 回答