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.49k stars 4.82k forks source link

[BUG] DataFactoryResource.GetDataFactoryLinkedService(string name) JSON deserialization error for SAPTable LinkedService if sncMode property is specified #45772

Open rn-zeiss opened 2 months ago

rn-zeiss commented 2 months ago

Library name and version

Azure.ResourceManager.DataFactory 1.3.0

Describe the bug

Trying to get an instance of a SAPTable LinkedService from data factory using DataFactoryResource.GetDataFactoryLinkedService(string name) method. There is an exception raised if the LinkedService is containing the sncMode: "Unable to cast object of type 'System.Boolean' to type 'System.String'."

Expected behavior

DataFactoryLinkedServiceResource is instantiated properly for SAPTable LinkedService with sncMode specified.

Actual behavior

If the "sncMode" property is specified in the LinkedService there is an exception during method call DataFactoryResource.GetDataFactoryLinkedService(string name): "Unable to cast object of type 'System.Boolean' to type 'System.String'."

Reproduction Steps

Define a LinkedService of type SAPTable in data factory and try to access it using DataFactoryResource.GetDataFactoryLinkedService(string name)

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.

HarveyLink commented 1 month ago

This issue may be a service issue, open issue in rest api repo: https://github.com/Azure/azure-rest-api-specs/issues/30783