Skip to content
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

Expression should be string type for workspace info scan #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

richardoliverpearce
Copy link

Description

A few sentences describing the overall goals of the pull request's commits.

UNTESTED

I could not raise an issue, so here's a basic PR example.

There is a bug for WorkspaceInfoScan since version 4.11.0. When triggering a scan:

var scan = await powerBIClient.WorkspaceInfo.PostWorkspaceInfoWithHttpMessagesAsync(requiredWorkspaces, true, true, true, true, true, cancellationToken: cancellationToken);

Then retrieving result:

var response = await powerBIClient.WorkspaceInfo.GetScanResultWithHttpMessagesAsync(scanId, cancellationToken: cancellationToken);

Results in following exception:

Exception: Microsoft.Rest.SerializationException: Unable to deserialize the response.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
---> Newtonsoft.Json.JsonSerializationException: Error converting value "let
    Source = AnalysisServices.Database("powerbi://***"),
    Cubes = Table.Combine(Source[Data]),
    Cube = Cubes{[Id="Model", Kind="Cube"]}[Data]
in
    Cube" to type 'Microsoft.PowerBI.Api.Models.ASMashupExpression'. Path 'workspaces[1].datasets[0].expressions[0].expression', line 1, position 453138.
--- End of inner exception stack trace ---
---> System.ArgumentException: Could not cast or convert from System.String to Microsoft.PowerBI.Api.Models.ASMashupExpression.

Question

please answer the following questions. put x inside [ ] (e.g. [x])

What inside?

  • Bug Fixes?
  • New Features?
  • Documentation?

Is pull request totally generated from swagger file?

  • Yes.
  • [] No, part of it is auto-generated.

Backward compatibility break?

  • Yes. Pull request breaks backward compatibility!

Learn more about backward compatibility.

@richardoliverpearce
Copy link
Author

@microsoft-github-policy-service agree

@richardoliverpearce
Copy link
Author

Hi @ayeshurun

I can see you're the most active user contributing to this repository. Could you please assist with this issue?

Thanks,

Richard

AmosHersch pushed a commit that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant