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
Anonymous
Not applicable

Cloned Report Doesn't Copy Custom Columns

I have a Power BI Report which acts as a template report. In this report I created a custom column. I clone this report using powerbi api then update data in it, this way there are multiple reports cloned from this template report which contain different data.

 

When I open the cloned report I get this error in the chart where custom column is used, all else works fine.

 

image.png

 

This error message is pointing to the custom column. When I edit this new cloned report I found the issue which is the new created column which appears and acts just fine in template report, does not appear in the copied/cloned report at all.

 

The custom column is missing in dataset.

 

Are custom columns not copied to the reports which are cloned using Power BI API? If they are copied then what am I missing?

 

Note: In template report this newly created column information appears in the edit queries section. As mentioned it works fine here. 

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Have you created this custom column in Service?As this error is showing that there was a change to the underlying dataset, which is causing problems.Pls add this custom column in desktop then repulish it to Service to see whether the error still exists?

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Anonymous
Not applicable

All changes I made, they were in Desktop app, the only thing that is different from desktop app is. Data I am feeding in Master Report (Desktop App) is from excel file, while the one in Service is created by Power BI API and data is being fed using addRows(don't recall exact name) API which uses JSON format.

Anonymous
Not applicable

Hi @Anonymous ,

 

Just now,I tried to reproduce your senario,I get data from Excel,create a custom column,then publish to service.

When the report exists in Service,I cloned it to another workspace by Rest Api,and all the columns appear,everything works fine,see below:

Annotation 2020-06-12 173716.png

So would you pls check whether there's anything wrong during the clone.

Here is API link,you can copy report via this link:

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/clonereport

Then fill in the json code as needed:

 Untitled.png

If your issue still occurs,pls create  a support ticket via below link and our relevant personnel will help to handle it.
https://powerbi.microsoft.com/en-us/support/
 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

lbendlin
Super User
Super User

when you say template report do you mean a report (.pbix) file that you keep as a sort of master file, or do you mean an actual template (.pbit) ?

Anonymous
Not applicable

Yes the template report I am mentioning is a .pbix file that I created as a report in PBI Desktop Application. Published it to a workspace in PBI Portal, then using PBI API I cloned it in another workspace. All reports mentioned have .pbix extension.

 

Though I am unable to download the cloned report from portal as it says something like, 'only reports created by PBI Desktop can be downloaded'.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.