首页 > 解决方案 > AWS Forecast 错误提示过滤器 ID 丢失或无效

问题描述

每当我想进行预测查找时,都会收到以下错误消息:

Bad request
ResourceNotFoundException : The query did not return any forecast results as the required filter id is either missing or is invalid.

我对为什么会收到此错误一无所知。我检查了我的预测键(即 item_id)和值(即 F11),它们与我用于数据集的 .csv 相符。我还检查了我为数据集设置的属性的顺序,它们也适合我的 .csv。

我的 csv 中的示例行如下所示:

2016-12-07, 2, LAE, F11, 190, 190, 215, 58, 58, 79, 0, 23, ****

我的数据模式如下所示:

{
    "Attributes": [
        {
            "AttributeName": "timestamp",
            "AttributeType": "timestamp"
        },
        {
            "AttributeName": "location",
            "AttributeType": "string"
        },
        {
            "AttributeName": "mpkt",
            "AttributeType": "string"
        },
        {
            "AttributeName": "item_id",
            "AttributeType": "string"
        },
        {
            "AttributeName": "PL_atag",
            "AttributeType": "string"
        },
        {
            "AttributeName": "SO_atag",
            "AttributeType": "string"
        },
        {
            "AttributeName": "demand",
            "AttributeType": "float"
        },
        {
            "AttributeName": "plumlauf",
            "AttributeType": "string"
        },
        {
            "AttributeName": "sumlauf",
            "AttributeType": "string"
        },
        {
            "AttributeName": "umlauf",
            "AttributeType": "string"
        },
        {
            "AttributeName": "diff_mpp",
            "AttributeType": "string"
        },
        {
            "AttributeName": "diff_rp",
            "AttributeType": "string"
        },
        {
            "AttributeName": "fst_fber",
            "AttributeType": "string"
        }
    ]
}

那么这里的错误在哪里呢?

标签: amazon-web-servicesamazon-forecast

解决方案


我可以通过输入包括空白使其工作。在您的情况下,您应该为 item_id 输入“F11”。


推荐阅读