Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS_TOOL070 - Service definition &1 is locked


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS_TOOL - Message Class for Web Services and Virtual Endpoints

  • Message number: 070

  • Message text: Service definition &1 is locked

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS_TOOL070 - Service definition &1 is locked ?

    SAP Error Message:
    WS_TOOL070 Service definition &1 is locked


    Cause:

    This error occurs when you try to modify or activate a Web Service definition that is currently locked by another user or process. In SAP, service definitions are locked to prevent simultaneous changes that could lead to inconsistencies or data corruption.

    The placeholder &1 in the message will be replaced by the name of the service definition that is locked.


    Explanation:

    • SAP locks service definitions during editing or activation to ensure data integrity.
    • If a user or process has locked the service definition and did not release it properly (e.g., due to a session timeout or crash), other users will see this error when attempting to access or modify the same service.
    • Locks can also occur if a transport request involving the service definition is in process.

    Solution:

    1. Check who holds the lock:

      • Use transaction SM12 (Lock Entries) to find the lock on the service definition.
      • Search for entries related to the service definition name (use the service name or relevant object).
      • Identify the user/session holding the lock.
    2. Release the lock:

      • If the lock is held by a user who is no longer working on it (e.g., session ended unexpectedly), you can delete the lock entry in SM12.
      • Be cautious when deleting locks; ensure no active process is using the service definition.
    3. Wait and retry:

      • If the lock is held by another active user, coordinate with them to finish their work and release the lock.
      • After the lock is released, retry your operation.
    4. Check for background jobs or transports:

      • Sometimes background jobs or transport requests lock service definitions.
      • Check if any transport requests are in progress involving the service.
      • Wait for the transport to complete or consult your Basis team.
    5. Restart SAP services (if applicable):

      • In rare cases, if locks persist due to system issues, a restart of the SAP instance or relevant services might be necessary (usually done by Basis team).

    Related Information:

    • Transaction Codes:

      • SM12 – Display and delete lock entries.
      • SOAMANAGER – Manage Web Service definitions and configurations.
      • SICF – Maintain Internet Communication Framework services.
    • Notes and Documentation:

      • SAP Notes related to Web Service locking issues.
      • SAP Help Portal documentation on Web Service management and locking mechanisms.
    • Best Practices:

      • Always properly save and exit service definition editing to release locks.
      • Coordinate changes in a team environment to avoid simultaneous edits.
      • Monitor locks regularly if multiple users work on Web Services.

    If you continue to experience issues after releasing locks, consider checking system logs (transaction SM21) or contacting SAP Support with details of the locked service and system environment.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author