Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
sharp1FL
Helper I
Helper I

Copilot ValueError: Schema healthcare1_msft_bronze.substancedefinition is too long to be added in NB

I am trying to use Copilot in a notebook in my HLS public preview workspace.  I get the following error when I execute the Copilot package installation cell.  Any advice on how I can address this?

 

Thanks.

 

ValueError: Schema healthcare1_msft_bronze.substancedefinition is too long to be added to the vector store.

2 REPLIES 2
Nabha-Ahmed
Super User
Super User

Hi @sharp1FL 

This error usually happens when the schema or table name is too long for the Copilot vector store.
You can try one of the following approaches to fix it:

1. Use a shorter alias or view name

CREATE VIEW bronze_substance AS
SELECT * FROM healthcare1_msft_bronze.substancedefinition

Then reference it in your notebook as:

df = spark.table("bronze_substance")


2. Select only the needed columns

df = spark.table("healthcare1_msft_bronze.substancedefinition").select("column1", "column2")


3. Create a temporary view with a shorter name

spark.table("healthcare1_msft_bronze.substancedefinition").createOrReplaceTempView("substancedef_short")

 

Then use the short name (substancedef_short) when calling Copilot.
If the issue persists, make sure you are on the latest Fabric Copilot public preview build — some early preview versions have naming length limits.

Hope this helps!

Akash_Varuna
Super User
Super User

Hi @sharp1FL  , Could you please try these steps

  • Shorten the schema name to reduce its length.
  • Use aliases or map verbose names to shorter ones.
  • Preprocess the schema name to truncate it before adding it to the vector store.
  • Check if the vector store allows increasing the maximum length limit.
  • Split the schema into smaller components (e.g., database, schema, table).
    if this post helped please do give a kudos and accept this as a solution 
    Thanks in Advance

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.