Error messages when you try to print a report in Microsoft Dynamics SL: "Microsoft Visual C++ Runtime Library Runtime Error" and "System Message 7011"


Symptoms


When you try to print a report in Microsoft Dynamics SL 7.0, you receive the following error messages.

Error message 1
Microsoft Visual C++ Runtime Library
Runtime Error!

Program:
The application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information.
Error message 2
System Message 7011- ROI Get RIPARAM failed for CRPERC. Error=.
Error message 3
System Message 7011 - ROI Get RIPARAM failed for CRPEMSGCNT. Error=.

Cause


The MSDSL application role or the E7F575915A2E4897A517779C0DD7CE SQL user is not correctly synchronized with the Microsoft Dynamics SL databases. Or, both the role and the user are not correctly synchronized. This situation can occur if the following conditions are true:
  • You run the "Synchronize All Ownership and Security" update scenario in the Database Maintenance (98.290.00) screen.
  • The Database Maintenance (98.290.00) screen is from an earlier version of Microsoft Dynamics SL.
  • You run the update scenario on any database that exists on the same instance of SQL Server as a Microsoft Dynamics SL 7.0 database.

Resolution


Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs.

To resolve this problem, follow these steps:
  1. Use SQL Server Management Studio to run the following statement against the Microsoft Dynamics SL system database:
    DELETE FROM RPTExtra
  2. Run the "Synchronize All Ownership and Security" update scenario in the Database Maintenance (98.290.00) screen.