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

Bug when fetching all subscriptions #72

Closed
eosho opened this issue Feb 28, 2020 · 2 comments
Closed

Bug when fetching all subscriptions #72

eosho opened this issue Feb 28, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@eosho
Copy link

eosho commented Feb 28, 2020

Describe the bug
With the latest v7.0, when refreshing the dashboard there is an error stating duplicate subscription Id

Column 'subscriptionId' in Table 'All Subscriptions' contains a duplicate value 'xxxxxxxxx-769e-45ae-ab43-6da33674bd26' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.

My fix was editing the query and removing duplicate subscription Ids.
#"Removed Duplicates" = Table.Distinct(#"Expanded managedByTenants1", {"subscriptionId"})

To Reproduce
A simple refresh of the dashboard (might not be reproduce able by everyone)

Expected behavior
Should pull every subscription Ids and remove duplicates

@josunefon josunefon self-assigned this Mar 3, 2020
@josunefon josunefon added the bug Something isn't working label Mar 3, 2020
@josunefon
Copy link
Member

Hi @eosho

You're right, one subscription can be managed by one or more tenants.

Currently to fix this issue you'll need to remove the steps Expanded managedByTennats and Expanded managedByTennats1 from the applied steps section to obtain unique Subscription IDs.

image

We're not showing this information about the tenant management in the reports but this is something we're planning to use in the future.

This bug will be fixed in the 7.1 version.

Thanks!

@josunefon
Copy link
Member

The PR with the bug fix is waiting for approval, thanks again for your feedback ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants