-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urgent: Sudden issue started with GetDataFactoryPipeline function #4825
Comments
@HarveyLink Please help take a look at this, thanks! |
Hi @divyeshgohil85, sorry, but I couldn't find the method |
Hi, we have implemented logic to fetch factory resources. Using armClient, we retrieve a subscriptionResource, and from this subscriptionResource, we can access a dataFactory resourceGroupResource. Please refer to the attachment below. |
@divyeshgohil85 I reproduced the issue, and no exceptions were found. Please check the attachment below. |
Hi, Thank you for taking the time. Based on your response, I tried to replicate the issue and reviewed the error. I discovered there was a glitch on my part. Here’s a detailed explanation: In my pipeline, there are two web activities. The first activity uses the POST method. I duplicated this activity and changed its method from POST to GET but forgot to remove the body. As a result, the second activity retained the body even though the method was changed to GET. While the ADF UI does not display the body, it still exists in the backend. When I attempted to execute this pipeline via code, it resulted in an error. To resolve this, I temporarily changed the method of the second activity back to POST, removed the body, and then switched the method back to GET. This adjustment resolved the issue, and I was able to execute the pipeline successfully. |
Link to sample
No response
Library name and version
Package= Azure.ResourceManager.DataFactory, Version=1.1.0
Language of the Sample
Sample Issue Type
Issue details
I've been using the Azure.ResourceManager.DataFactory SDK and recently encountered an issue. Previously, I used the GetDataFactoryPipeline method to retrieve my pipeline details and then run it in the next step. This setup has been working fine. However, yesterday, when I tried to run the pipeline, it threw an exception from the GetDataFactoryPipeline method.
The stack trace is:
System.InvalidCastException
HResult=0x80004002
Message=Unable to cast object of type 'System.Collections.Generic.Dictionary
2[System.String,System.Object]' to type 'System.String'. Source=Azure.Core.Expressions.DataFactory StackTrace: at Azure.Core.Expressions.DataFactory.DataFactoryElementJsonConverter.Deserialize[T](JsonElement json) at Azure.Core.Expressions.DataFactory.DataFactoryElementJsonConverter.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.Serialization.JsonConverter
1.ReadAsObject(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 json, JsonTypeInfo
1 jsonTypeInfo)at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
at Azure.ResourceManager.DataFactory.Models.WebActivity.DeserializeWebActivity(JsonElement element, ModelReaderWriterOptions options)
at Azure.ResourceManager.DataFactory.Models.PipelineActivity.DeserializePipelineActivity(JsonElement element, ModelReaderWriterOptions options)
at Azure.ResourceManager.DataFactory.DataFactoryPipelineData.DeserializeDataFactoryPipelineData(JsonElement element, ModelReaderWriterOptions options)
at Azure.ResourceManager.DataFactory.PipelinesRestOperations.Get(String subscriptionId, String resourceGroupName, String factoryName, String pipelineName, String ifNoneMatch, CancellationToken cancellationToken)
at Azure.ResourceManager.DataFactory.DataFactoryPipelineCollection.Get(String pipelineName, String ifNoneMatch, CancellationToken cancellationToken)
at Azure.ResourceManager.DataFactory.DataFactoryResource.GetDataFactoryPipeline(String pipelineName, String ifNoneMatch, CancellationToken cancellationToken)
at Domains.Datafactory.DatafactoryDomain.d__11.MoveNext() in D:\Project\Arne_Clo\azure-data-factory-integration-dot-net\Domains\Datafactory\DatafactoryDomain.cs:line 73
Above stack track trace states that something strange is released and the object is changed from System.String to System.Collections.Generic.Dictionary`2[System.String,System.Object].
I did not see any parameter changes for the same function (GetDataFactoryPipeline), I believe this is an internal issue and want this issue to address ASAP.
Expected behavior
No response
Actual behavior
No response
Reproduction Steps
No response
Environment
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win-x64
The text was updated successfully, but these errors were encountered: