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

ValueError: Invalid Capacity Id when trying to get lakehouse tables metadata #391

Open
shreya27b opened this issue Jan 3, 2025 · 1 comment
Labels
question Further information is requested

Comments

@shreya27b
Copy link

shreya27b commented Jan 3, 2025

I am trying to retrieve lakehouse tables metadata using the get_lakehouse_tables function from the sempy_labs library. However, I am encountering a ValueError indicating that the provided capacity Id is not valid but the get_lakehouse tables has no capacity Id parameter.

#lib/python3.10/site-packages/sempy_labs/directlake/_guardrails.py:66, in get_sku_size(workspace)
     63 dfC_filt = dfC[dfC["Id"] == capacity_id]
     65 if len(dfC_filt) == 0:
---> 66     raise ValueError(
     67         f"{icons.red_dot} The '{capacity_id}' Id is not a valid capacity Id."
     68     )
     70 return dfC_filt["Sku"].iloc[0]

ValueError: 🔴 The '*************************' Id is not a valid capacity Id.

Image

@shreya27b shreya27b added the question Further information is requested label Jan 3, 2025
@m-kovalsky
Copy link
Collaborator

It looks like you do not have proper access to the capacity. If you run the following code do you see your capacity?

import sempy.fabric as fabric
df = fabric.list_capacities()
display(df)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants