SSAS tabular model timeout raised during processing

前端 未结 1 1780
不思量自难忘°
不思量自难忘° 2021-01-22 00:16

When doing a Full Process on a tabular model to an Azure Analysis Service model I get the following error after 10 minutes into the processing:

Failed to save mo         


        
相关标签:
1条回答
  • 2021-01-22 00:54

    So thanks to GregGalloway's prompting I've figured out the timeout can be set on a per Partition basis using the Power Query M language.

    So the data access parts of my TMSL object now look like so...

    The model.dataSource is as so:

    "dataSources": [
      {
        "type": "structured",
        "name": "MySource",
        "connectionDetails": {
          "protocol": "tds",
          "address": {
            "server": "serverName.database.windows.net",
            "database": "databaseName"
          },
          "authentication": null,
          "query": null
        },
        "options": {},
        "credential": {
          "AuthenticationKind": "UsernamePassword",
          "Username": "dbUsername",
          "EncryptConnection": true
        }
      }
    ]
    

    And the individual Partition queries are as so (note the CommandTimeout parameter):

    let
        Source = Sql.Database("serverName.database.windows.net","databaseName",[CommandTimeout=#duration(0, 2, 0, 0)]),
        MyQuery = 
        Value.NativeQuery(
            Source,
            "SELECT * FROM [dbo].[MyTable]"
        )
    in
        MyQuery
    

    So now I'm explicitly setting a timeout of 2 hours for the Partition query.

    0 讨论(0)
提交回复
热议问题