<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: UI5 MessageStrip Error: Assertion failed: Method 'cla... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325366#M4936762</link>
    <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2036318"&gt;@M_M&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1956161"&gt;@Filipp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in version 1.144.0 is working fine with below code.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;			&amp;lt;MessageStrip
				text="Yogananda Warning with default icon and close button:"
				type="Warning"
				showIcon="true"
				showCloseButton="true"
				class="sapUiMediumMarginBottom"&amp;gt;
			&amp;lt;/MessageStrip&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 11:58:27 GMT</pubDate>
    <dc:creator>Yogananda</dc:creator>
    <dc:date>2026-02-10T11:58:27Z</dc:date>
    <item>
      <title>UI5 MessageStrip Error: Assertion failed: Method 'class' must be called with exactly one class name</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaq-p/14325210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had an exception in the Console when loading a ui5 page (not Fiori elements), that contains a MessageStrip:&lt;/P&gt;&lt;P&gt;Error: Assertion failed: Method 'class' must be called with exactly one class name&lt;/P&gt;&lt;P&gt;Component: sap.m.MessageStrip&lt;BR /&gt;Version affected: 1.143.0+&lt;BR /&gt;Version working: 1.142.6&lt;BR /&gt;Error: Assertion failed: Method 'class' must be called with exactly one class name&lt;BR /&gt;Reproduction: &amp;lt;MessageStrip class="sapUiSmallMargin" text="Test"/&amp;gt;&lt;/P&gt;&lt;P&gt;There are clearly not 2 classes assigned to the MessageStrip. It even occurs if the class tag is not even there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 10:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaq-p/14325210</guid>
      <dc:creator>M_M</dc:creator>
      <dc:date>2026-02-10T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 MessageStrip Error: Assertion failed: Method 'cla...</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325318#M4936756</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2036318"&gt;@M_M&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This seems like a regression in the MessageStrip renderer. I couldn't find an existing issue for it on the &lt;A href="https://github.com/SAP/openui5/issues" target="_blank"&gt;https://github.com/SAP/openui5/issues&lt;/A&gt;.&amp;nbsp;Please, consider filing an issue there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 11:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325318#M4936756</guid>
      <dc:creator>Filipp</dc:creator>
      <dc:date>2026-02-10T11:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 MessageStrip Error: Assertion failed: Method 'cla...</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325366#M4936762</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2036318"&gt;@M_M&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1956161"&gt;@Filipp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in version 1.144.0 is working fine with below code.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;			&amp;lt;MessageStrip
				text="Yogananda Warning with default icon and close button:"
				type="Warning"
				showIcon="true"
				showCloseButton="true"
				class="sapUiMediumMarginBottom"&amp;gt;
			&amp;lt;/MessageStrip&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 11:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325366#M4936762</guid>
      <dc:creator>Yogananda</dc:creator>
      <dc:date>2026-02-10T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 MessageStrip Error: Assertion failed: Method 'cla...</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325991#M4936806</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/75"&gt;@Yogananda&lt;/a&gt;, &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1956161"&gt;@Filipp&lt;/a&gt;&amp;nbsp;thank you for your answers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I thought, that I went through all scenarios. Like removing the MessageStrips in all views and just focus on one. But as Yogananda wrote, that it worked, I went back to triple check.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It took me a while to find something strange. Mea Culpa.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I pasted Yoganandas Code next to the other commended MessageStrip, and the error was still there.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The faulty code (of a test project, that nobody would ever see in production, and this editor won't let me highligt it) :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;lt;MessageStrip&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;class="sapUiSmallMargin"&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;text="Blah"&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;showIcon="true"&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;visible="{=(${ODataThing&amp;gt;ODataAttr1}.length === 0) ? true : false}" /&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically, if I put the a MessageStrip tag into all places.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But why does it happen?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The whole structure is a floating content layout with two columns. The 1st column is a list, that 'loads' details into the 2nd column. The 2nd column consists of an ObectPageLayout. The faulty code lives in a fragment (1Fragment) inside of one of the subSections.&lt;BR /&gt;&lt;P&gt;&amp;lt;sections&amp;gt;&lt;BR /&gt;&amp;lt;ObjectPageSection title="..." id="1Section"&amp;gt;&lt;BR /&gt;&amp;lt;subSections&amp;gt;&lt;BR /&gt;&amp;lt;ObjectPageSubSection id="1SubSection"&lt;BR /&gt;visible="{= !${...} }"&amp;gt;&lt;BR /&gt;&amp;lt;blocks&amp;gt;&lt;BR /&gt;&amp;lt;core:Fragment fragmentName="1Fragment" type="XML"/&amp;gt;&lt;BR /&gt;&amp;lt;/blocks&amp;gt;&lt;BR /&gt;&amp;lt;/ObjectPageSubSection&amp;gt;&lt;BR /&gt;&amp;lt;/subSections&amp;gt;&lt;/P&gt;&lt;P&gt;But not only there. I've also got a Wizard in a Dialog fragment, which is triggered on a button from the 1st column. That has MessageStrip tags as well. Same issue with them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is more, why does it fail when rendering the MessageStrip? Could it be another problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message states, that the class method must be called with exactly one class name. If this is referring to CSS classes... It still happens if I remove multiple CSS classes entirely.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;BR&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Feb 2026 07:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14325991#M4936806</guid>
      <dc:creator>M_M</dc:creator>
      <dc:date>2026-02-11T07:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: UI5 MessageStrip Error: Assertion failed: Method 'cla...</title>
      <link>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14326863#M4936868</link>
      <description>I'm not using openui5. I'm using SAP UI5.</description>
      <pubDate>Thu, 12 Feb 2026 06:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/ui5-messagestrip-error-assertion-failed-method-class-must-be-called-with/qaa-p/14326863#M4936868</guid>
      <dc:creator>M_M</dc:creator>
      <dc:date>2026-02-12T06:44:13Z</dc:date>
    </item>
  </channel>
</rss>

