In SAP Gateway (CMMS Interoperability) environment APM fails to create Notification in SAP via alarm


 Product(s):APM Implementation and Performance Management
 Version(s):7
 Environment:N/A
 Area:N/A
 Subarea:N/A

Problem Description

An APM environment with SAP Gateway (CMMS Interoperability) turned on, the user received the following error when trying to create Notification in SAP via alarm acknowledgement:

"SAP Notification creation failed.

System.Net.WebException: The remote server returned an error: (401) Unauthorized.

at System.Net.HttpWebRequest.GetResponse()

at Ivara.EXPLink.IVSTAGE.WebRequestWithCrsf.SetupCSRFToken(String baseAddress, NetworkCredential …"

If the user left the Alarm Acknowledgement dialogue window open for a long period of time (20+mins) without interference, the user would eventually be able to complete the acknowledgement and eventually send the Notification creation request to SAP successfully.

Solution

This was a difficult issue to troubleshoot and it required the use of a tracing application in order to diagnose the problem. Due to the error message much time was spent on checking/dismissing issues with the user credentials and permissions for crsf token. With the help of the tracing application, it was found that the URL used for the SAP External data provider was missing a "/" that was cause the message to redirect. Adding "/" to the end of the BaseServiceUrl corrected the issue;