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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Power bi report builder error

when i am using custom code 

for localizing Data 

Public Function GetLocalizedValue(name as String, culture as String) as String
Try
Return PDSReports.LocalizedValue.GetString(TRIM(name), TRIM(culture) )
Catch ex As Exception
Return ex.Message
End Try
End Function

 

i got error like-

There is an error on line 2 of custom code: [BC30451] 'PDSReports' is not declared. It may be inaccessible due to its protection level.

 

i tried so many solutions ... guide me if you know some reference about it...thanks in advance  ...#powerbireportbuilder

1 REPLY 1
d_gosbell
Super User
Super User

Where did you get this code? It's not valid VBA code, there is no built-in PDSReports object in paginated reports.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.