How To Fix /UI5/DESCR_VAR_CHECK034 - Mixed mode of inline texts and i18 properties files is not allowed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /UI5/DESCR_VAR_CHECK -

  • Message number: 034

  • Message text: Mixed mode of inline texts and i18 properties files is not allowed

  • 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/DESCR_VAR_CHECK034 - Mixed mode of inline texts and i18 properties files is not allowed ?

    The SAP error message /UI5/DESCR_VAR_CHECK034 indicates that there is a mixed usage of inline texts and internationalization (i18n) properties files in your SAPUI5 application. This is not allowed because it can lead to inconsistencies in how text is managed and displayed in the application.

    Cause:

    The error occurs when:

    • You have defined some texts directly in the XML views or JavaScript files (inline texts).
    • At the same time, you are also using i18n properties files for localization.

    SAPUI5 applications should consistently use one method for managing text resources to ensure proper localization and maintainability.

    Solution:

    To resolve this error, you need to choose one method for managing your text resources:

    1. Use Inline Texts Only:

      • If you prefer to use inline texts, remove all references to i18n properties files from your application. This means you should replace any i18n binding in your views with static text.
    2. Use i18n Properties Files Only:

      • If you prefer to use i18n properties files, replace all inline texts in your XML views or JavaScript files with references to the i18n model. This involves:
        • Creating or updating your i18n properties file (e.g., i18n.properties).
        • Using the i18n model in your views, for example:
          <Text text="{i18n>yourTextKey}" />
        • Ensure that all text displayed in the application is sourced from the i18n properties file.

    Related Information:

    • Best Practices: It is generally recommended to use i18n properties files for all user-facing text in SAPUI5 applications. This approach allows for easier localization and maintenance, especially when supporting multiple languages.
    • Documentation: Refer to the official SAPUI5 documentation on internationalization for more details on how to set up and use i18n properties files effectively.
    • Debugging: If you are unsure where the mixed usage is occurring, you can search your project files for instances of inline text and i18n bindings to identify and correct them.

    By following these steps, you should be able to resolve the error and ensure that your SAPUI5 application adheres to best practices for text management.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker