Logo
CAR REVIEW
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
PREGNANCY
 
 
Windows Server

Maintaining Dynamics GP : Troubleshooting issues with a DexSQL log

6/7/2013 4:25:37 PM

When trying to troubleshoot issues a common request from Microsoft support and from their Partners is to run a DexSQL log. A DexSQL log is a file that logs commands made from Dynamics GP to the database to help understand performance issues. After creation, this file is sent to the company's partner or to Microsoft for assistance in troubleshooting.

When creating a DexSQL log the key is to capture only the amount of data related to the problem. In this recipe, we will look at creating a DexSQL log to provide more information to Microsoft support.

For our example, we will assume that the problem relates to creating a financial batch; so that is the process that will get captured in the DexSQL log.

How to do it...

To create a DexSQL log:

  1. 1. Ensure that Microsoft Dynamics GP is closed.

  2. 2. Open the Notepad utility in Windows.

  3. 3. Select File | Open in Notepad and navigate to the location where the Dex.ini file for Dynamics GP is installed. By default, this is c:\Program Files\Microsoft Dynamics\GP\Data\Dex.ini.

  4. 4. Once the Dex.ini file is open in Notepad, find these two lines in the file:

    SQLLogSQLStmt=FALSE
    SQLLogODBCMessages=FALSE
    
  5. 5. Change both lines to a value of TRUE and save the file. This turns on logging in Dynamics GP:

    • The first line, SQLLogSQLStmt=TRUE, logs all SQL statements that are sent to the server by the application.

    • The second line, SQLLogODBCMessages=TRUE, logs all ODBC messages returned to the application by ODBC:

    • Either line or both lines can be set to TRUE. Typically, Microsoft support asks that both lines be set to TRUE.

  6. 6. Start Microsoft Dynamics GP and log in. This creates a file named DexSQL.log in the same location as the Dex.ini file.

    • Results will be logged to the DexSQL.log file regardless of which lines are set to TRUE.

    • Any ODBC messages are prefixed by [Microsoft].

  7. 7. Select Financial from the Navigation Pane on the left. Select Batches under Transactions.

  8. 8. The DexSQL log now holds all of the information related to logging in and everything done so far in this GP session. The log now needs to be cleared prior to recording the actual problem scenario.

  9. 9. To clear the DexSQL log, find the DexSQL.log file in the same directory as the Dex.ini file. Using File Manager, select and delete the file. Once activity starts in Dynamics GP, a new file is created.

  10. 10 Return to Dynamics GP. In the open Batch Entry window type TEST BATCH in the Batch ID field. Set the Origin field to General Entry and save the batch. Now the DexSQL.log file needs to be renamed to avoid adding unrelated data:

  1. 11. Return to the DexSQL.log file in File Manager. Right-click on the DexSQL.log file and rename it to DexSQL-Batch.log.

  2. 12. Once the DexSQL log has been renamed it's important to close Dynamics GP and turn off logging. If this doesn't happen, Dynamics GP can significantly slow down and the DexSQL log can grow to consume all of a computer's hard drive space.

  3. 13. To turn off logging, close Dynamics GP, and reopen the Dex.ini file.

  4. 14. Find these lines in the Dex.ini file and change TRUE to FALSE:

    SQLLogSQLStmt=TRUE
    SQLLogODBCMessages=TRUE
    
  5. 15. Save the Dex.ini file and delete the leftover DexSQL.log file that was created when closing Dynamics GP.

  6. 16. What is left is the DexSQL-Batch.log file that holds specifics from right before and after the problem area. This file can be opened using Notepad to see what information is being sent to Microsoft or the company's Dynamics GP partner.

How it works...

Creating a DexSQL log is an important maintenance process for companies to understand. Microsoft and Microsoft Partners often ask for this information when troubleshooting errors. Being able to generate a DexSQL log to facilitate problem resolution is important for maintaining a healthy Dynamics GP system.
Other -----------------
- Maintaining Dynamics GP : Speeding security setup with User Copy
- Maintaining Dynamics GP : Validating balances with the Reconcile utility
- Maintaining Dynamics GP : Resolving errors with the Check Links utility
- System Center Configuration Manager 2007 : Creating SQL Reporting Services Subscriptions
- System Center Configuration Manager 2007 : Creating New Reports
- Windows Server 2008 : Working with the Schema - Modifying the Schema with adprep, Registering the Active Directory Schema Snap-In
- Windows Server 2008 : Promoting and Demoting a Domain Controller - Using dcpromo to Install from Media, Forcing Removal of Active Directory
- BizTalk Server 2009 : Use The Business Rule Engine (part 2) - What Are the Artifacts That Constitute a Business Rule?
- BizTalk Server 2009 : Use The Business Rule Engine (part 1)
- Microsoft Dynamics CRM 4 : Scribe Integration - Scribe Insight Architecture
- Microsoft Dynamics CRM 4 : Scribe Integration - Integration Options
- Maintaining Dynamics GP : Safeguarding data by Backing Up everything
- Maintaining Dynamics GP : Improving stability by Managing Dictionaries
- Client Access to Exchange Server 2007 : Using Cached Exchange Mode for Offline Functionality
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 3) - Using Group Schedules
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 2) - Sharing Information with Users Outside the Company
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 1)
- Windows Server 2003 on HP ProLiant Servers : The Physical Design and Developing the Pilot - Time Services (part 2) - Domain Time Hierarchy
- Windows Server 2003 on HP ProLiant Servers : The Physical Design and Developing the Pilot - Time Services (part 1) - Time Services Role in Authentication
- Windows Server 2003 on HP ProLiant Servers : The Physical Design and Developing the Pilot - Network Services
 
 
Most view of day
- Microsoft Excel 2010 : Protecting and Securing a Workbook - Selecting Trusted Publishers and Locations
- Microsoft Project 2010 : Fine-Tuning Task Details (part 9) - Viewing the Project’s Critical Path
- Troubleshooting Hardware, Driver, and Disk Issues : How to Use Built-In Diagnostics (part 3)
- BizTalk 2006 : Getting Started with Pipeline Development (part 2) - Understanding Pipeline Execution, Understanding Interchanges
- Windows Server 2012 Requirements and Installation : Deploying Minimal Server Interface
- Creating an XPS Document,Scanning a Picture, Scanning Anything
- Microsoft Excel 2010 : Protecting and Securing a Workbook - Avoiding Harmful Attacks, Using the Trust Center
- Microsoft Visio 2010 : Creating and Validating Process Diagrams - Reusing Existing Validation Rules
- Windows Phone 8 : Orientation and the PhoneApplicationPage Class - Setting Page Orientation at Runtime
- SQL server 2008 R2 : Creating and Managing Stored Procedures - Using Input Parameters
Top 10
- Windows Phone 8 : Scheduled Tasks - Scheduled Task API Limitations
- Windows Phone 8 : Scheduled Tasks - Updating Tiles Using a Scheduled Task Agent
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 5) - Editing an Existing To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 4) - Creating the To-Do Item Shell Tile, Saving a To-Do Item
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 3) - Debugging Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 2) - TodoService, TodoItemViewModel
- Windows Phone 8 : Scheduled Tasks - To-Do List Scheduled Task Sample (part 1) - TodoItem,TodoDataContext
- Windows Phone 8 : Scheduled Tasks - Using Scheduled Tasks
- Windows Phone 8 : Scheduled Tasks - Background Agent Types
- Windows Phone 8 : Windows Phone Toolkit Animated Page Transitions - Reusing the Transition Attached Properties
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro