Azure-Player / azure.datafactory.devops

Azure DevOps Deployment Tasks for Azure Data Factory objects
MIT License
39 stars 21 forks source link

Can not convert Object to String #47

Closed SudhirNune closed 3 years ago

SudhirNune commented 3 years ago

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 , D:\a_tasks\PublishADFTask_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX\1.6.846\PublishADF.ps1: line 128

[debug]at , : line 1

[debug]at , : line 22

[debug]at , : line 18

[debug]at , : line 1

[debug]Exception:

[debug]System.ArgumentException: Can not convert Object to String.`

Our ADF factory has 143 Data Sets

NowinskiK commented 3 years ago

Log please

SudhirNune commented 3 years ago

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

NowinskiK commented 3 years ago

Thanks.