Breakpoints Won’t Hit in Data Provider Class when Debugging SSRS Reports

by | Updated August 15, 2016 | Development, Dynamics AX, Reporting, SQL

When the time came for me to develop my first SSRS report from scratch I ran into something that took a bit to figure out. I wasn’t able to get any of my breakpoints to hit in my data provider class. I couldn’t find anything online to help. Luckily a co-worker of mine was able to give me the steps needed. We thought it would be a good item to blog about. Hopefully it can save someone out there time if they run into the same thing.

I noticed it after I had everything setup. I created my controller, data contract, and DP classes. I got the table setup that will support the report and assigned it as a temporary table. Then I created the visual studio project (Dynamics AX model project), setup the design of my report and got it deployed to the SSRS report server. The report ran and returned data but I wanted to step through the DP class code. None of my breakpoints would get hit and I couldn’t figure out why. It turns out you need to take the actions below.

NOTE:  these actions should be reversed once you are done debugging and are ready to promote the objects to your TEST, UAT or Prod environments.

Steps for Breakpoints to Hit Data Provider Class

1. In your temp table you need to change the following properties:

• TableType:  Regular
• CreatedBy: Yes
• CreatedTransactionId: Yes

Table Properties

 

2. In the DP (data provider) class you need to make the following changes:

• In the ClassDeclaration extend the SrsReportDataProviderPreProcess

Code for SSRS Reports

• In your ProcessReport method add the following line:
o temporarytablename.setConnection(this.parmUserConnection());

Code

 

3. After making those changes compile all of the objects. 

Then you can start debugging and stepping through your code. Just remember to change the items above back before promoting the objects for user testing.

Check out my colleague’s blog for more on Debugging SSRS Reports.

Related Posts

  • If the Debugger will not break in your SQL Server Reporting Services Report and/or you want to speed up the debugging session by not printing the report and only stepping…

  • Many Dynamics AX reports utilize Data Provider classes, so when modifying existing reports or creating new ones, there is often a need to pass information to the DP class from…

  • When working on SSRS reports in the Dynamics AX 2012 reporting framework, a lot of the information comes over from the MorphX Extended Data Types.  However, there are still times…

2 Comments

  1. Luis

    Thanks a lot, this was really helpful!. Now data providers have no secrets to me 🙂

    Regards from Argentina

  2. Stacy Vallad

    Luis,

    Thanks for taking the time share this information as was extremely helpful!

    Cheers from Michigan!

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

march

03mar10:00 am10:30 amThe Modern Manufacturer - MRP vs. MPS – What, When and How

03mar2:00 pm2:30 pmLot Management Best Practices for Batch Manufacturers

10mar10:00 am10:30 amEnhancing the Customer Experience and Driving More Business with Dynamics 365 Customer Service

10mar2:00 pm2:30 pmThe Five Steps to Managing Sales Tax for Manufacturers

11mar11:00 am12:00 pmConfab with Stoneridge - Livestream - Power Apps Component Framework Power Hour

17mar10:00 am10:30 amThe Modern Manufacturer: Pro Tips for your Finance Team

24mar10:00 am10:30 amUnlock the Potential of Digital Marketing with Dynamics 365 Marketing

25mar11:00 am12:00 pmConfab with Stoneridge - Livestream - The Four Keys to Choosing the Best ERP or CRM Solution

31mar10:00 am10:30 amThe Modern Manufacturer: Keys to Reporting Success

31mar01aprTraining Class: Financial Reporting W/Account Schedules for Dynamics 365 Business Central

april

31mar01aprTraining Class: Financial Reporting W/Account Schedules for Dynamics 365 Business Central

07apr10:00 am10:30 amBoost Seller Productivity and Close More Business with Dynamics 365 Sales

07apr2:00 pm2:30 pmEnsuring Quality for Batch Manufacturers

08apr11:00 am12:00 pmJumping into the Deep End of the Data Lake

14apr10:00 am10:30 amThe Modern Manufacturer: Cost Accounting in D365

22apr11:00 am12:00 pmMoving from Manual to Automated with Strategic Automation Strategies

28apr10:00 am10:30 amThe Modern Manufacturer: Best Practices for Inventory Turn

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X