microsoft / semantic-link-labs

Early access to new features for Microsoft Fabric's Semantic Link.
MIT License
128 stars 21 forks source link

migrate_calc_tables_to_lakehouse returns an error #173

Open unme777 opened 1 day ago

unme777 commented 1 day ago

Describe the bug Hi Michael, this is Ying from Canada. First, thank you very much for creating this great tool to facilitate DL migration!

The instruction is clear and easy to follow, however, when reaching to ----> 4 migration.migrate_calc_tables_to_lakehouse( 5 dataset = dataset_name, 6 new_dataset = new_dataset_name, 7 workspace = workspace_name, 8 new_dataset_workspace = new_dataset_workspace_name, 9 lakehouse = lakehouse_name, 10 lakehouse_workspace = lakehouse_workspace_name 11 )

we got some errors as below:

FabricHTTPException: 400 Bad Request for url: https://api.fabric.microsoft.com//v1/workspaces/36be636f-aa1f-4981-b7f9-2c7e7424047d/lakehouses/240a72f2-f4dd-42ea-b19a-1dd2716c0287/tables Error: {"requestId":"223e5835-7115-445a-bb10-377936c982d6","errorCode":"UnsupportedOperationForSchemasEnabledLakehouse","message":"The operation is not supported for Lakehouse with schemas enabled."} Headers: {'Content-Length': '192', 'Content-Type': 'application/json; charset=utf-8', 'x-ms-public-api-error-code': 'UnsupportedOperationForSchemasEnabledLakehouse', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Frame-Options': 'deny', 'X-Content-Type-Options': 'nosniff', 'Access-Control-Expose-Headers': 'RequestId', 'request-redirected': 'true', 'home-cluster-uri': 'https://wabi-us-north-central-c-primary-redirect.analysis.windows.net/', 'RequestId': '223e5835-7115-445a-bb10-377936c982d6', 'Date': 'Thu, 26 Sep 2024 20:41:54 GMT'}

image image image

We have tried a couple of times, "migrate_tables_columns_to_semantic_model" and " migrate_field_parameters" worked, "migrate_model_objects_to_semantic_model" didn't return an error but relationships and measures didn't show up after running the codes.

Do you have any suggestions how we could fix the issue? Thanks in advance for your help!

Once again, it's a great tool:)

m-kovalsky commented 23 hours ago

Do you have schemas enabled for the lakehouse? It appears that if you do, this API does not work (which is a bug in the actual API).