liprec / vsts-release-aas

Repository for my Analysis Service Azure pipelines tasks related to Azure Analysis Service or Power BI Premium
Other
27 stars 28 forks source link

Cause of error not clear: "Error during deploying the model" #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

I've been trying to deploy some models using this extension, however I keep getting the error as seen below. I can't determine what exactly is going wrong by looking at the error. I have verified the SQL server, database and SSAS are deployed.

2017-09-01T14:47:21.9690899Z ##[debug]Caught exception from task script. 2017-09-01T14:47:21.9720917Z ##[debug]Error record: 2017-09-01T14:47:22.0580898Z ##[debug]Error during deploying the model (Exception has been thrown by the target of an invocation..exception.message) 2017-09-01T14:47:22.0600908Z ##[debug]At D:\a\_tasks\deploy-aas-db_a55f5b79-9828-4b7f-9528-85e9e826c028\1.0.1\deploy-aas-db.psm1:250 char:9 2017-09-01T14:47:22.0611595Z ##[debug]+ throw "Error during deploying the model ($_.exception.message ... 2017-09-01T14:47:22.0621872Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2017-09-01T14:47:22.0631769Z ##[debug] + CategoryInfo : OperationStopped: (Error during de...eption.message):String) [], RuntimeException 2017-09-01T14:47:22.0649660Z ##[debug] + FullyQualifiedErrorId : Error during deploying the model (Exception has been thrown by the target of an invocati on..exception.message) 2017-09-01T14:47:22.0670216Z ##[debug] 2017-09-01T14:47:22.0689752Z ##[debug]Script stack trace: 2017-09-01T14:47:22.0739749Z ##[debug]at DeployModel, D:\a\_tasks\deploy-aas-db_a55f5b79-9828-4b7f-9528-85e9e826c028\1.0.1\deploy-aas-db.psm1: line 250 2017-09-01T14:47:22.0759758Z ##[debug]at <ScriptBlock>, D:\a\_tasks\deploy-aas-db_a55f5b79-9828-4b7f-9528-85e9e826c028\1.0.1\deploy-aas-db.ps1: line 72 2017-09-01T14:47:22.0783439Z ##[debug]at <ScriptBlock>, <No file>: line 1 2017-09-01T14:47:22.0799763Z ##[debug]at <ScriptBlock>, <No file>: line 22 2017-09-01T14:47:22.0817466Z ##[debug]at <ScriptBlock>, <No file>: line 18 2017-09-01T14:47:22.0827755Z ##[debug]at <ScriptBlock>, <No file>: line 1 2017-09-01T14:47:22.0847772Z ##[debug]Exception: 2017-09-01T14:47:22.0897784Z ##[debug]System.Management.Automation.RuntimeException: Error during deploying the model (Exception has been thrown by the target of an invocation..exception.message) 2017-09-01T14:47:22.1077517Z ##[error]Error during deploying the model (Exception has been thrown by the target of an invocation..exception.message) 2017-09-01T14:47:22.1077517Z ##[debug]Processed: ##vso[task.logissue type=error]Error during deploying the model (Exception has been thrown by the target of an invocation..exception.message) 2017-09-01T14:47:22.1127511Z ##[debug]Processed: ##vso[task.complete result=Failed]

liprec commented 6 years ago

Thanks for submitting this. I will update the extension to show the correct error message as it is now showing: "Error during deploying the model ($_.exception.message)" which doesn't help in debugging the error.

ghost commented 6 years ago

Thanks for the quick reply!

liprec commented 6 years ago

I have updated the extension with better exception logging. Hope that this will help in debugging the original error during deploying.

paulomatiolimosaic commented 5 years ago

I'm still getting the same error as above. I cannot troubleshoot where is the error in the model deployment.

Error during deploying the model (Exception has been thrown by the target of an invocation.)