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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
santhiya
Helper I
Helper I

Schema Difference in Testing Environment and Production Environment

I am directly connecting with my Testing  database with import mode . I am having the following issues 

I am having few columns that in Testing database that are not in my production database. 
 I am having two tables which has a one to one Relationship due to some bug a key on other end of the table has duplicated value resulting one to Many Relationship but in Production the relationship is one to one 
In development everything works fine, but when I deploy to Production due schema change and relationship mismatch the refresh breaks
 
Do you have any solution to solve this kind of approach?
1 REPLY 1
lbendlin
Super User
Super User

Remove the extra columns from your "Testing database". You don't want to have these schema differences, especially not when they affect joins.

 

Consider adding primary keys so that the issue cannot occur at all.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.