每当我要进行预测查询时,都会收到以下错误消息:
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"
}
]
}
那么这里的错误在哪里?
答案 0 :(得分:0)
您假设提供数据集中存在的任何预测关键字的item_id值。在aws-forecast中,我们可以一次查看任何一项的详细信息。不同的项目会有不同的预测结果。
答案 1 :(得分:0)
我可以通过输入包含空白使它起作用。 对于您的情况,您应在item_id中输入“ F11”。