【问题标题】:Request parameter RefreshType is not in correct format请求参数 RefreshType 格式不正确
【发布时间】:2019-02-07 18:17:41
【问题描述】:

我尝试通过逻辑 APP 处理我的 Azure 分析服务立方体:

在 HTTP 操作中,我有以下正文:

{
    "inputs": {
        "method": "POST",
        "uri": "https://northeurope.asazure.windows.net/servers/xxx/models/xxx/refreshes",
        "body": {
            "refresh": {
                "objects": [
                    {
                        "database": "ModelName",
                        "table": "TableName"
                    }
                ],
                "type": "full"
            }
        },
        "authentication": {
            "type": "ActiveDirectoryOAuth",
            "authority": "https://login.windows.net",
            "tenant": "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
            "audience": "https://*.asazure.windows.net",
            "clientId": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
            "secret": "xxxxYjxx7y5xxskHxxxxxxznxxxxxxxxODX+xxxxxxxx"
        }
    }
}

运行此逻辑应用后,我收到以下错误:

{
    "statusCode": 400,
    "headers": {
        "Strict-Transport-Security": "max-age=xxxxxx00; includeSubDomains",
        "x-ms-root-activity-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
        "x-ms-current-utc-date": "2/7/2019 9:25:05 AM",
        "x-ms-xmlaerror-extended": "Request parameter RefreshType is not in correct format.",
        "Date": "Thu, 07 Feb 2019 09:25:05 GMT",
        "Server": "Microsoft-HTTPAPI/2.0",
        "Content-Length": "294",
        "Content-Type": "application/json; charset=utf-8"
    },
    "body": {
        "code": "BadRequest",
        "subCode": 2,
        "message": "Request parameter RefreshType is not in correct format.",
        "timeStamp": "2019-02-07T09:25:05.4650388Z",
        "httpStatusCode": 400,
        "details": [
            {
                "code": "RootActivityId",
                "message": "353ab74e-2793-4ee5-954f-819c851f4cb6"
            },
            {
                "code": "Param1",
                "message": "RefreshType"
            }
        ]
    }
}

您有什么想法,为什么我会收到此错误消息?以及如何解决这个问题

【问题讨论】:

  • 有什么解决办法吗?

标签: json azure httprequest azure-logic-apps


【解决方案1】:

Refresh Type 是一个 ENUM,它只从下面的列表中获取值,你可以将类型设置为 Full 并检查是否有效:

希望对你有帮助。

【讨论】:

  • 感谢您的回答。我已将其更改为"type": 1,但仍然出现相同的错误
  • 不,我的意思是,您是否尝试过使用适当大小写的 Full。
猜你喜欢
  • 1970-01-01
  • 2012-08-22
  • 2023-03-10
  • 2012-03-20
  • 2020-01-07
  • 2017-09-20
  • 2021-12-11
  • 2019-03-25
  • 2020-10-29
相关资源
最近更新 更多