azure.datafactory.devops icon indicating copy to clipboard operation
azure.datafactory.devops copied to clipboard

Can not convert Object to String

Open SudhirNune opened this issue 5 years ago • 3 comments

During the deployment process of ADF, we are seeing the below error

Can not convert Object to String

The error occurs at the STEP: Deleting objects not in source ... Azure Data Factory (instance) loaded.

we see the following error: ##[debug]at Get-AdfFromService, D:\a\_tasks\PublishADFTask_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\1.6.846**\ps_modules\azure.datafactory.tools\public\Get-AdfFromService.ps1: line 40** ##[debug]at Publish-AdfV2FromJson, D:\a\_tasks\PublishADFTask_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\1.6.846\ps_modules\azure.datafactory.tools\public\Publish-AdfV2FromJson.ps1: line 195 ##[debug]at <ScriptBlock>, D:\a\_tasks\PublishADFTask_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\1.6.846\PublishADF.ps1: line 128 ##[debug]at <ScriptBlock>, <No file>: line 1 ##[debug]at <ScriptBlock>, <No file>: line 22 ##[debug]at <ScriptBlock>, <No file>: line 18 ##[debug]at <ScriptBlock>, <No file>: line 1 ##[debug]Exception: ##[debug]System.ArgumentException: Can not convert Object to String.

Our ADF factory has 143 Data Sets

SudhirNune avatar May 13 '21 05:05 SudhirNune

Log please

NowinskiK avatar May 13 '21 07:05 NowinskiK

Found the issue, this is a core issue with the command let of - Get-AzDataFactoryV2Dataset.

Raised a bug in Azure Power Shell Module repo.

https://github.com/Azure/azure-powershell/issues/14984

SudhirNune avatar May 13 '21 13:05 SudhirNune

Thanks.

NowinskiK avatar May 13 '21 14:05 NowinskiK