I recently encountered a scenario of users getting a stack trace error when trying to generate an invoice while in debugging mode in Dynamics AX. When working through bugs on the test server, calling the Debug::assert() caused the stack trace error to appear.

Cause: Since we were working through a lot of bugs, the testers were finding we had to have debugging enabled on the test server. When the process hits this: Debug::assert() code, the AX debugger was invoked automatically, displaying the stack trace error. The user would never get this error in production because the debugging would be disabled.

Reproducing Error: I had issues trying to reproduce this error in our development environment. When the error occurred it never hit a break point in the debugger so I couldn’t find the line of code that was generating the error. After some research I found out that I had to check the ‘Execute business operations in CIL’ (Tools – Options – Development form). After checking I was able to do more debugging in AX and Visual Studio to find where the error was being generated, when trying to call Debug::assert().

How to Resolve Debug::assert() error: To eliminate this error during our testing the change was simple. First make sure that ‘Execute business operations in CIL’ is checked. NOTE: after checking/unchecking this you have to generate a CIL before you will see the changes in VS. Then you need to find the Debug::assert() that is causing the error. When you find comment out the line but make sure to put a TODO statement to make sure to uncomment the code before the move to production. For example, //TODO uncomment Debug::assert when debugging is turned off. This TODO will come up when you do a compile within AX. The downside to this is that I did have to make a change to a SYS layer class/method. However, once you remove the commented line and TODO you can do a Compare and delete the VAR layer since there are no longer any code changes.

This issue took a bit for me to work through. Hopefully these steps can save someone time in the future. Happy debugging.

About Eric Meissner

Eric Meissner is a Senior Developer at Stoneridge Software with 10 years of experience in development and business intelligence. Eric is certified in Microsoft AX 2012 R3 CU8 Development and Microsoft Dynamics 365 Development.

Upcoming Events

Event Details

Do you have a crystal-clear, real-time understanding of your business numbers? Can you articulate where money is coming from, where it’s going, and what’s on the horizon? If not, you

Event Details

Do you have a crystal-clear, real-time understanding of your business numbers? Can you articulate where money is coming from, where it’s going, and what’s on the horizon? If not, you need a business scorecard. We’ll show you what a weekly scorecard consists of, and how your business can gain greater insight by using one.

Location

Organizer

Event Details

More often than not, when business leaders hear the words “ERP” they cringe at the thought and re-live pain they may have experienced during their last implementation. Having led hundreds

Event Details

More often than not, when business leaders hear the words “ERP” they cringe at the thought and re-live pain they may have experienced during their last implementation. Having led hundreds of implementations, our team sees ERP as an opportunity for increased productivity and profit, not your next daunting task.

Location

Organizer

Event Details

If you're new to Microsoft Dynamics GP, this series of classes will introduce you to the software and show you the basic elements. Throughout the week you will

Event Details

If you’re new to Microsoft Dynamics GP, this series of classes will introduce you to the software and show you the basic elements. Throughout the week you will be introduced to general ledger, payables management, receivables management, and bank reconciliation. Upon completion, you will have full knowledge of the GP financial module and will be able to perform basic and advanced functions.

Day 1: Introduction to Microsoft Dynamics GP

8:30 a.m. – 5 p.m.

This one-day course explores the basic elements of Microsoft Dynamics GP. Topics covered during this session include system and company setup procedures, how to use reports and inquiries, how to use Smart List to expand inquiry and analysis capabilities and tips for the user to personalize Microsoft Dynamics GP to streamline business practices.

Day 2: General Ledger in Dynamics GP

8:30 a.m. – 5 p.m.

This course explores the accounting cycle and the processes required to enter financial data into the system. It covers how to set up general ledger accounts, enter general ledger transactions, and post the transactions. This course also shows how to perform additional functions such as account reconciliation, budgeting, allocation, period-end procedures, and year-end closing procedures.

Day 3: Payables Management in Dynamics GP

8:30 a.m. – 5 p.m.

The one-day Microsoft Dynamics® GP Payables Management course examines the accounting cycle and the processes required to enter vendor invoices and process checks. This course also shows you how to perform additional functions such as adjustments, prepayments, month-end closing, and cash flow control.

A thorough understanding of these topics allows for capitalizing on vendor discount dates to reduce accounts payable liabilities and easily select the right vouchers for payment by date, vendor, number, or custom query to control cash outlay. This course also provides guidance on how to define default values that automatically populate data fields and how to gather the information needed to make better business decisions by exploring powerful inquiry and lookup functions.

This course explores the processes required to manage cash receipts, cash disbursements, and other transactions that affect checkbook balances. It also shows you how to perform the checkbook reconciliation process in the Bank Reconciliation module, ensuring the accuracy of your financial data and its relation to your financial institution statements.

This class runs from 8:30 a.m. – 5 p.m. Monday – Thursday, and 8:30 a.m. – Noon on Friday. If you would like to register for a single day class, please email solutions@stoneridgesoftware.com.

Location

Organizer

Event Details

Included in the Dynamics GP Extended Pack, Field Service offers companies the ability to track equipment use, preventative maintenance, and contract administration. During this webinar, Bobbi Horn will showcase the

Event Details

Included in the Dynamics GP Extended Pack, Field Service offers companies the ability to track equipment use, preventative maintenance, and contract administration. During this webinar, Bobbi Horn will showcase the features included with Field Service including service types, equipment records, problem-cause resolution codes, scheduling individual or multiple technicians to a call, Linking to point-of-sale, and Tracking labor time.

If you have employees or technicians that are on customer site and still using paper forms, or if you have equipment or vehicles that are being checked out or used for different projects you should attend this webinar.

Organizer

Event Details

Are you investing valuable resources on internal projects that take time away from managing and completing organizational goals? Stoneridge Software’s AX | D365 F&O client support team offers more than

Event Details

Are you investing valuable resources on internal projects that take time away from managing and completing organizational goals? Stoneridge Software’s AX | D365 F&O client support team offers more than break-fix assistance. Support solutions should be a value-add for your organization, allowing your employees to receive expert guidance when it comes to your AX | D365 F&O system and processes. During this short 30 minute webinar, you’ll hear how to save time, money, and resources with support options available including:

Location

Organizer

Event Details

Curious about career opportunities at Stoneridge Software? Join us for happy hour at Drekker Brewing Co.! You’ll have the opportunity to meet current team members and do some networking, as

Event Details

Curious about career opportunities at Stoneridge Software? Join us for happy hour at Drekker Brewing Co.! You’ll have the opportunity to meet current team members and do some networking, as well as learn more about current openings, company perks, and our work culture. We have numerous job openings, which include senior-level positions as well as junior-level positions in our New Hire Academy and internship opportunities for college students. If you think it sounds like fun, your right!

Event Details

Now is the time to discover why the majority of companies currently using AX will move to Dynamics 365 Finance and Operations over the next few years. During this webinar,

Event Details

Now is the time to discover why the majority of companies currently using AX will move to Dynamics 365 Finance and Operations over the next few years. During this webinar, you’ll see first hand what business processes and user experience will look like in Finance and Operations. You’ll also hear the top reasons why business leaders are moving from AX to Dynamics 365.

Understand how your IT department will be affected by moving to the cloud

See the modern user experience and learn why it’s important when hiring new talent

Learn how to identify any conflicts or issues in the system prior to any updates with automated testing

See how easy it is to generate reports with PowerBI

By the end of this webinar, you’ll have a solid understanding of why current AX clients are steadily moving to Finance and Operations and if it’s worth it for your company to upgrade.

Contact Info

Follow Us Online

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.