Forum Discussion
Semantic Link Lab - Create Data Model
- 6 months ago
Hi KarenL7,
It means a semantic model named ModelBPA already exists in that workspace, and at least one table has already been added to it. Sempy Labs (by design) reuse an existing model if the name matches, and does not auto-overwrite or merge. Your next step would be to find the semantic model named ModelBPA, delete it and re-run your code.
One important thing to note (just mentioning) is sempy_labs.create_model_bpa_semantic_model() function defaults dataset to 'ModelBPA' (if not mentioned explicitly).
Hello KarenL7
Navigate to OneLake Catalog and apply a filer on Semantic model. If you find a semantic model called ModelBPA, that's why your code has failed.
You can either delete the ModelBPA semantic model or choose to use a different name in your code.
- KarenL76 months agoAdvocate V
deborshi_nag thank you for that I will be trying again