Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

[Question] Post Migration getting error while opening the edit tables #25

Open
cvlmonica opened this issue May 29, 2024 · 5 comments
Open

Comments

@cvlmonica
Copy link

I have migrated a import mode dataset to direct lake mode ( which has data in Fabric lakehouse). Within it few calculated tables couldn't be migrated. But our ETL has taken care of it in lakehouse building the same table name with data so while I am trying to click on edit tables so that I can select that missing migrated calculated tables but I am getting this error:

image

I have tried multiple times to access but still same error. Even though the semantic model refreshes successful (which means connectivity to that lakehouse is working fine). Any solution around this!?

@m-kovalsky
Copy link
Owner

Did you try opening the semantic model in Tabular Editor to see if there are any errors in the model? Also make sure that the entity partition name for each table matches the corresponding table in your lakehouse.

@cvlmonica
Copy link
Author

yes, I did checked it in the tabular editor , as I have a measure named period_selection which is pointing to a calculated table. And while doing the migration that table is not migrated.

I think if the calculated tables/or any other object which is not migrated then anything related to it should not be migrated to prevent such errors! What is the solution for this!?

image (5)

@m-kovalsky
Copy link
Owner

I can append the migration process with a step to remove any objects with errors. It's quite simple and you can even run this code to do it for your own model. This code is for measures but the same principle can be applied to any object.

with connect_semantic_model(dataset='DatasetName', readonly=False, workspace='WorkspaceName') as tom:
    for m in tom.all_measures():
        if m.ErrorMessage != '':
            tom.remove_object(object=m)

@cvlmonica
Copy link
Author

thank you so much!

@cvlmonica cvlmonica reopened this Jun 14, 2024
@cvlmonica
Copy link
Author

I hope you will be adding a step in migration where if the objects has errors those gets removed from the model.
And what I observed is, consider I have an import mode dataset and I have couple of calculated tables/columns and I have moved these logic into ETL logic and moved those calculated tables as tables into my lakehouse.
When I ran the migration logic and checks for the validation function it shows that a calculated column is not migrated but actually it has been migrated to the direct lake semantic model.
Is this a bug or what is it!? can you help is understand this!?
Attaching the screenshots below to get a clear understanding:
image

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants