web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Not able to see any OOB trace logs

(1) ShareShare
ReportReport
Posted on by 95
Hi All,
 For your support now I am not able to see any trace log records despite the tracing option from the customization tap being enabled for all I've tried to switch to the other options, performing IISReset and restarting the server with no result
Any idea
V9.1 on prem
I have the same question (0)
  • Saif Ali Sabri Profile Picture
    2,351 Super User 2025 Season 2 on at

    My response was crafted with AI assistance, tailored to provide detailed and actionable guidance for your query.
    OOB Trace Logs Not Visible in Dynamics 365 V9.1 On-Prem
    If you're unable to see OOB trace logs in Dynamics 365 V9.1 On-Prem, even after enabling tracing from the customization tab, follow these steps to resolve the issue:

    1. Verify If Tracing Is Properly Enabled

    Ensure that tracing is enabled at the server level:

    1. Open Registry Editor (regedit).
    2. Navigate to:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM
    3. Check or create the following values:
      • TraceEnabled → DWORD = 1
      • TraceCategories → All
      • TraceCallStack → DWORD = 1
      • TraceRefresh → DWORD = 1
    4. Close Registry Editor and restart IIS:
      nginx 
      iisreset

    2. Check Trace File Location

    By default, logs are stored in:

    mathematica 
    C:\Program Files\Microsoft Dynamics CRM\Trace
    • Ensure the folder exists and has the necessary permissions.
    • If files are not being generated, try manually creating the Trace folder.

    3. Restart the CRM Services

    Restart the following services from Services.msc:

    • Microsoft Dynamics 365 Asynchronous Processing Service
    • Microsoft Dynamics 365 Sandbox Processing Service
    • Microsoft Dynamics 365 Deployment Service

    4. Verify Event Viewer Logs

    • Open Event Viewer → Check under Applications and Services Logs > Microsoft > MSCRM.
    • Look for any errors related to tracing.

    5. Reinstall the Trace Settings (If Needed)

    If logs are still not visible, try disabling and re-enabling tracing:

    1. Set TraceEnabled = 0 in the registry.
    2. Run iisreset.
    3. Set TraceEnabled = 1 again and restart IIS.
  • Abanoub_D365 Profile Picture
    95 on at
    Actually I've applied these steps but unfortunately still the issue as is
  • CU12031241-0 Profile Picture
    8 on at
    It seems like your problem is that the trace log is not showing up despite having this option enabled. You can double check the write access to the log directory, make sure the logging level is set to Debug or Trace, and make sure the log path is correct. Also, don't forget to check if there is enough disk space and check if the configuration files are corrupted. If that still doesn't work, try reviewing the Event Viewer for detailed errors. And if you're feeling stressed about dealing with this, why not try playing Geometry Dash for a bit to relax and recharge before continuing to troubleshoot?
  • Suggested answer
    Saif Ali Sabri Profile Picture
    2,351 Super User 2025 Season 2 on at

    Advanced Troubleshooting for Missing Trace Logs in Dynamics 365 v9.1 On-Prem

    1. Confirm CRM Deployment Manager Settings

    Ensure that tracing is enabled in CRM Deployment Manager:
    1. Open Deployment Manager (DeploymentAdminConsole.exe).
    2. Click Organizations → Right-click your CRM Organization → Select Properties.
    3. Go to the Trace Settings tab and ensure:
      • Tracing Enabled is checked.
      • Trace Categories is set to All (for full debugging).
    4. Click OK, then restart IIS (iisreset).

    2. Ensure MSCRM_CONFIG Database is Recording Trace Logs

    Run the following SQL query to check if trace logs exist in the database:
    sql
    SELECT TOP 10 * FROM MSCRM_CONFIG.dbo.TraceLog ORDER BY CreatedOn DESC;
    • If no records appear, CRM isn’t writing logs to SQL, which could be a permissions or configuration issue.
    • If records do appear in SQL but not in CRM UI, move to the next step.

    3. Check MSCRM_CONFIG Database Size & Cleanup

    If the MSCRM_CONFIG database is full, CRM may stop writing logs.
    • Check database size:
    sql
    EXEC sp_helpdb 'MSCRM_CONFIG';
    • If the database is too large, try clearing older trace logs:
    sql
    DELETE FROM MSCRM_CONFIG.dbo.TraceLog WHERE CreatedOn < DATEADD(DAY, -7, GETDATE());

    4. Verify Trace Log Writing Permissions

    Make sure that the CRM Application Pool Identity (IIS) has full write access to the Trace Directory and SQL database.
    • Identify the CRM App Pool identity:
      1. Open IIS Manager (inetmgr).
      2. Go to Application Pools → Locate Microsoft Dynamics 365 AppPool.
      3. Check the Identity column (e.g., Network Service, CRMAdmin, or a custom service account).
    • Grant Full Control on Trace Directory:
      1. Navigate to the folder path from the registry (TraceDirectory).
      2. Right-click Properties → Security.
      3. Add the CRM App Pool Identity and grant Full Control.
    • Verify SQL Permissions:
      1. Open SQL Server Management Studio (SSMS).
      2. Ensure the CRM Service Account has db_owner access to MSCRM_CONFIG.
      3. Run:
    sql
    SELECT name, principal_id FROM sys.database_principals WHERE type IN ('S', 'U') AND name LIKE '%CRM%';

    5. Enable More Detailed Logging (Temporary Debug Mode)

    If logs are not being generated, enable detailed tracing for deeper insights.
    1. Modify Registry for Debug-Level Tracing
      • Set the following values in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM:
    ini
    TraceCategories = *:Verbose
    TraceCallStack = 1
    TraceEnabled = 1
      • Restart IIS:
    nginx
    iisreset
    1. Enable SQL Profiler
      • Run SQL Server Profiler and create a new trace to capture CRM activities.
      • Check if SQL transactions related to trace log inserts appear.

    6. Restart CRM in Safe Mode

    Try restarting Dynamics 365 with minimal services to rule out conflicts.
    1. Stop all CRM services:
    arduino
    net stop MSCRMAsyncService
    net stop MSCRMSandboxService
    net stop MSCRMMonitoringService
    net stop MSCRMWebService
    1. Start only critical services:
    sql
    net start MSCRMWebService
    net start MSCRMAsyncService
    1. Check if trace logs are now being recorded.

    7. Check Event Viewer for Hidden Errors

    • Open Event Viewer (eventvwr).
    • Navigate to Windows Logs → Application.
    • Look for CRM-related errors (Source: MSCRM, Dynamics, SQL).
    • If errors reference MSCRM_CONFIG, there may be a database issue.

    Next Steps

    If none of the above works:
    1. Try changing the Trace Directory to another location (C:\NewTrace), update the registry, and restart IIS.
    2. Run a CRM Repair Installation via Control Panel → Programs & Features → Dynamics 365 Server → Repair.
    3. Consider enabling Debug Diagnostics (DebugDiag) to capture IIS crashes during trace logging.
  • Verified answer
    Abanoub_D365 Profile Picture
    95 on at
    Hi dears,
     Now, after registering a sandbox able to see trace logs I can confirm that the ability in the on-prem environment to see trace logs is only available for sandboxed plugins

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans