How To Fix /UI5/APP_API021 - SAPUI5 library/component &1 used in application &2 does not exist


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /UI5/APP_API -

  • Message number: 021

  • Message text: SAPUI5 library/component &1 used in application &2 does not exist

  • 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 /UI5/APP_API021 - SAPUI5 library/component &1 used in application &2 does not exist ?

    The SAP error message /UI5/APP_API021 indicates that a specific SAPUI5 library or component that is referenced in an application does not exist or cannot be found. This error typically arises during the development or execution of an SAPUI5 application when the framework is unable to locate the specified library or component.

    Cause:

    1. Incorrect Library/Component Name: The name of the library or component specified in the application might be misspelled or incorrectly referenced.
    2. Library Not Loaded: The required library or component may not be included in the application’s configuration or manifest file.
    3. Version Mismatch: The application may be trying to use a library or component that is not available in the version of SAPUI5 being used.
    4. Deployment Issues: If the application is deployed on a server, the necessary libraries may not have been deployed correctly.
    5. Network Issues: If the application is trying to load libraries from a remote source, network issues may prevent access to those libraries.

    Solution:

    1. Check Library/Component Name: Verify that the library or component name is correctly spelled and matches the expected naming conventions.
    2. Update Manifest File: Ensure that the required libraries are included in the manifest.json file of your application. For example:
      "sap.ui5": {
          "dependencies": {
              "libs": {
                  "sap.m": {},
                  "sap.ui.core": {}
              }
          }
      }
    3. Check SAPUI5 Version: Make sure that the version of SAPUI5 being used supports the library or component you are trying to access. You can check the version in the index.html or the manifest.json file.
    4. Deployment Verification: If the application is deployed, check the deployment logs and ensure that all necessary libraries are included in the deployment package.
    5. Network Configuration: If the application relies on external libraries, ensure that the network configuration allows access to those resources.

    Related Information:

    • SAPUI5 Documentation: Refer to the official SAPUI5 documentation for details on available libraries and components.
    • SAP Community: Engage with the SAP Community forums for insights and solutions from other developers who may have encountered similar issues.
    • Debugging Tools: Use browser developer tools to check for any console errors or network issues that may indicate why the library cannot be loaded.
    • SAP Notes: Check for any relevant SAP Notes that may address known issues or bugs related to the specific library or component.

    By following these steps, you should be able to identify and resolve the issue causing the /UI5/APP_API021 error in your SAPUI5 application.

    • 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
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