我有一个新的SSAS 2016表格模型(1200兼容级别)。我正在尝试设置一个SQL代理作业来每天处理模型。然而,在执行作业时,它抛出以下错误:在SQL代理中处理SSAS表格模型失败
XmlaException. The { text node at line 7, column 17 cannot appear inside the Command element (namespace urn:schemas-microsoft-com:xmla-analysis) under Envelope/Body/Execute. This element can only have text nodes containing white-space characters.
的命令是:
{
"refresh": {
"type": "full",
"objects": [
{
"database": "Finance"
}
]
}
}
该工程确定,当我在SSMS执行它,但失败时,通过SQL代理运行工作。
你使用什么样的步骤类型?它是“SQL Server分析服务命令”吗?根据我的经验,这需要是XML,而不是上面提到的JSON。你是怎么想出这个命令的? –