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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to use custom assembly files within report and deploy to Power BI Service?

Hi all, 

 

I am currently working to migrate all existing SSRS to Power BI. I am running into an issue when I am trying to migrate a report that uses a custom assembly file. This dll file was not created by anyone on my team and was purchased so I am not able to access the actual code. 

 

This is the error I recieve when I try to deploy the report with the DLL (Im not sure why it says it cannot find the file specified since I am explicitly writing the full file path):

 

Operation returned an invalid status code 'BadRequest'
RdlWorkloadErrorCode:
PaginatedReportAuthoringError

RdlWorkloadErrorMessage:
Report is invalid. ErrorCode: rsErrorLoadingCodeModule, Details: Error while loading code module: BarcodeLib, Version=1.0.0.22, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly BarcodeLib, Version=1.0.0.22, Culture=neutral, PublicKeyToken=null or one of its dependencies. The system cannot find the file specified.

PaginatedReportAuthoringError:
Report is invalid. ErrorCode: rsErrorLoadingCodeModule, Details: Error while loading code module: BarcodeLib, Version=1.0.0.22, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly BarcodeLib, Version=1.0.0.22, Culture=neutral, PublicKeyToken=null or one of its dependencies. The system cannot find the file specified.

 

Any help or alternative solutions are appreciated!

 

Thank you in advance 🙂

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Please pay attention to the following details.

To use custom assemblies in a report, you must first create the assembly, make it available to Report Designer, add a reference to the assembly in the report, and then use an expression in the report to refer to the methods contained in that assembly. When the report is deployed to the report server, you must also deploy the custom assembly to the report server.

 

To support the use of custom code assemblies in report definition files, two Report Definition Language (RDL) elements are included in the RDL specification: the CodeModules element and the Classes element.

See details : Using Custom Assemblies with Reports 

Migrate SQL Server Reporting Services reports to Power BI 

 

In addition, I have found a similar post, please refer to the following document about authentication credentials to see if it helps.

Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0 

 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @Anonymous 

 

Currently as far as I am aware you cannot use custom assembly files in Paginated reports in Power BI Service.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ,

 

I was wondering if you have found or know of any workaround to custom DLL files not being supported within Paginated Reports in Power BI Services.

Hi @Amir23 

 

Currently it is not possible.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.