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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
CamBLantern
Frequent Visitor

Error when creating data agent with fabric-data-agent-sdk Python package

I am trying to create a brand new Fabric Data Agent, like so:

 

 

from fabric.dataagent.client import (
    create_data_agent,
    FabricDataAgentManagement,
)
data_agent = create_data_agent(data_agent_name="MyDataAgent",workspace_id="***")
data_agent.add_datasource("MySemanticModel", workspace_id_or_name="***", type="semanticmodel")

 

 

For versions 0.1.12a0 through 0.1.14a0, this code will error out with the following:

 

TypeError: 'NoneType' object is not iterable

 

How do I submit a bug to the team that maintains this Python library?

 

3 REPLIES 3
v-achippa
Community Support
Community Support

Hi @CamBLantern,

 

Thank you for reaching out to Microsoft Fabric Community.

 

The error you are seeing in the versions of the fabric-data-agent-sdk appears to be a regression. As a temporary fix please downgrade to the last known working version 0.1.11a0 and restart the notebook. This should work until the product team investigates.
Since this is an SDK issue please consider raising a support ticket for further investigation.
To raise a support ticket, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

Thanks and regards,

Anjan Kumar Chippa

Hi @CamBLantern,

 

As we haven’t heard back from you, we wanted to kindly follow up to check that have you raised the support ticket? Is your issue resolved?

 

Thanks and regards,

Anjan Kumar Chippa

For me, version 0.1.11a0 didn’t resolve the same issue I was experiencing, but version 0.1.10a0 did.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.

Top Solution Authors