title: The key didn't match any rows in the table
body: <p>I'm attempting to refresh my Azure Analysis Services Model using the PowerShell command below.</p>
  
  <pre><code>Invoke-ProcessASDatabase -Server $ServerName -DatabaseName $DatabaseName –RefreshType Full -Credential $cred
  </code></pre>
  
  <h2>Problem</h2>
  
  <p>I get an error message back, however it isn't very helpful. Does anyone know how to find out which part of my model is broken? </p>
  
  <blockquote>
    <p>Invoke-ProcessASDatabase : Failed to save modifications to the server.
    Error returned: 'The key didn't match any rows  in the table.. The
    exception was raised by the IDbCommand interface.</p>
    
    <p>Technical Details: RootActivityId:
    7b0af12c-c9cf-47f9-8abb-9aaff8f0f6f5 Date (UTC): 4/26/2019 3:21:48 PM
    The command has been canceled.. The exception was raised by the
    IDbCommand interface. The command has been canceled.. The exception
    was raised by the IDbCommand interface. The command has been
    canceled.. The exception was raised by the IDbCommand interface. The
    command has been canceled.. The exception was raised by the IDbCommand
    interface. The command has been canceled.. The exception was raised by
    the IDbCommand interface. The command has been canceled.. The
    exception was raised by the IDbCommand interface. The command has been
    canceled.. The exception was raised by the IDbCommand interface. The
    command has been canceled.. The exception was raised by the IDbCommand
    interface. The command has been canceled.. The exception was raised by
    the IDbCommand interface. The command has been canceled.. The
    exception was raised by the IDbCommand interface. The command has been
    canceled.. The exception was raised by the IDbCommand interface. The
    command has been canceled.. The exception was raised by the IDbCommand
    interface. The current operation was cancelled because another
    operation in the transaction failed. The command has been canceled..
    The exception was raised by the IDbCommand interface. The command has
    been canceled.. The exception was raised by the IDataReader interface.
    The command has been canceled.. The exception was raised by the
    IDataReader interface. '. At line:24 char:1
    + Invoke-ProcessASDatabase -Server $ServerName -DatabaseName $DatabaseN ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (-Redacted-:String) [Invoke-ProcessASDatabase], OperationException
        + FullyQualifiedErrorId : Microsoft.AnalysisServices.PowerShell.Cmdlets.ProcessASDatabase</p>
  </blockquote>