Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.13k stars 4.52k forks source link

[BUG]DataFactoryPipelineCollection & DataFactoryPipelineResource Throwing {"Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'System.String'."} #43244

Open francisminu opened 2 months ago

francisminu commented 2 months ago

Library name and version

Azure.ResourceManager.DataFactory, 1.0.0-beta.6 (as well as 1.0.0)

Describe the bug

I am trying to fetch the pipelines list in a data factory. When I try to loop through the collection, I get the error message: {"Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'System.String'."}

Expected behavior

It should allow me to loop through and access the collection

Actual behavior

Error message: {"Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]' to type 'System.String'."}

Reproduction Steps

DataFactoryPipelineCollection pipelines = dataFactoryResource.GetDataFactoryPipelines(); await foreach (DataFactoryPipelineResource item in pipelines.GetAllAsync()) { }

Environment

No response

github-actions[bot] commented 2 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

sdzunenko commented 2 months ago

Same for me. Unable to list (or get single) pipelines for make call to it to be executed.

This is already tracked under 40850 that marked as Closed but it wasn't actually fixed with new version.