How To Fix 0S120 - Error switching off Trace TST21


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 0S - Messages for the SQL trace

  • Message number: 120

  • Message text: Error switching off Trace TST21

  • Show details Hide details
  • What causes this issue?

    Filter settings for the performance trace are collected in table TST21.
    An error occurred when the system attempted to initialize these
    settings.

    System Response

    Processing continues after the error message.

    How to fix this error?

    Attempt to switch on the performance trace and activate the filter by
    choosing "Trace on with filter". If the error occurs again, restart the
    system. This should eliminate the error.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 0S120 - Error switching off Trace TST21 ?

    The SAP error message 0S120 indicates an issue related to the trace functionality in the SAP system, specifically when trying to switch off the trace for a particular transaction or user session. The trace functionality is often used for debugging and performance analysis, and the error can occur for various reasons.

    Cause

    The error can be caused by several factors, including:

    1. Insufficient Authorizations: The user may not have the necessary authorizations to switch off the trace.
    2. System Configuration Issues: There may be configuration issues in the SAP system that prevent the trace from being turned off.
    3. Technical Issues: There could be underlying technical problems, such as database locks or issues with the tracing mechanism itself.
    4. Session Issues: The session in which the trace is being turned off may have expired or encountered an error.

    Solution

    To resolve the error, you can try the following steps:

    1. Check Authorizations: Ensure that the user has the necessary authorizations to manage traces. You may need to consult with your SAP security team to verify and adjust the user's roles and permissions.

    2. Use Transaction ST01: If you are using transaction ST01 (System Trace), ensure that you are following the correct procedure to switch off the trace. You can also check the trace logs for any additional error messages that might provide more context.

    3. Check System Logs: Use transaction SM21 (System Log) to check for any related error messages or warnings that might indicate what went wrong when trying to switch off the trace.

    4. Restart the Session: If the session has expired or is in an inconsistent state, try logging out and logging back in, or restarting the transaction.

    5. Consult SAP Notes: Check the SAP Support Portal for any relevant SAP Notes that might address this specific error. There may be patches or updates available that resolve known issues.

    6. Contact SAP Support: If the issue persists after trying the above steps, consider reaching out to SAP Support for further assistance. Provide them with detailed information about the error, including the transaction code, user ID, and any relevant logs.

    Related Information

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as ST01 (System Trace), ST05 (SQL Trace), and SM21 (System Log) for troubleshooting.
    • SAP Notes: Regularly check for updates and patches in the SAP Notes database that may address known issues related to tracing and performance monitoring.
    • Documentation: Review SAP documentation on tracing and performance analysis for best practices and troubleshooting tips.

    By following these steps, you should be able to diagnose and resolve the issue related to the SAP error message 0S120.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant