Message type: E = Error
Message class:  /IWFND/CM_COS -  
Message number: 158
Message text: XSLT syntax error
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.
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.
The SAP error message /IWFND/CM_COS158 XSLT syntax error typically occurs in the context of SAP Gateway services when there is an issue with the XSLT transformation logic used in the service. This error indicates that there is a syntax error in the XSLT file that is being processed. Causes: Incorrect XSLT Syntax: The most common cause is that the XSLT file contains syntax errors, such as missing tags, incorrect attribute values, or improper nesting of elements. Invalid Characters: The presence of invalid characters or unsupported constructs in the XSLT can lead to this error. Version Compatibility: The XSLT may be written for a different version of XSLT than what is supported by the SAP system. Missing or Incorrectly Defined Variables: If the XSLT references variables that are not defined or are incorrectly defined, it can lead to syntax errors. Solutions: Validate the XSLT: Use an XSLT validator or an XML editor that supports XSLT to check for
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
/IWFND/CM_COS157 An error occurred
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWFND/CM_COS156 Insufficient authorization to generate transformation
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWFND/CM_COS159 Operation cancled
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
/IWFND/CM_COS160 Data are missing
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.