SAP Knowledge Base Article - Public

3206743 - The item details direct link gives an error when launched from the notification

Symptom

Opening an item details direct link received on an email notification generates the following error message:

Error:

An application error has occurred. Please try again.

If you have further questions or issues regarding this error, please provide the error details below to your support group.

 Error message = For input string: "<REV_DATE_IN_LONG/>"

<br>Ticket No = 123273564<br>ErrorFingerprint [exceptionRootCauseTag=5522e8d5d080f6cb6bdb683e839ac713d480b0da, exceptionStackTraceTag=d7ac0f7d85434eb8c983824b06c99b03957a083b]<br>Timestamp = 2022-04-29T14:45:03.766+0000

Environment

SAP SuccessFactors Learning

Reproducing the Issue

  1. Access Learning Administration>
  2. Go to Generate Direct Links menu>
  3. Select the Item Details from the dropdown>
  4. Select Tokens>
  5. Copy the generated link>
  6. Go to Email Notification Templates menu>
  7. Search for a notification template ID>
  8. Edit it>
  9. Make sure the Editor flag is NOT checked>
  10. In the HTML version (NOT THE EDITOR) paste the copied text right above the <\LOOP> tag>
  11. Save it>
  12. Trigger the notification>
  13. Once you receive the notification, click the link in the notification>
  14. A validation error will be shown.

Notification template will look like (direct link tokens pasted highlighted in bold):

<LOOP>
<SCHED_INSTRUCTIONS/>
<label key="notification.ApmInstanceDelivery.MessageText1" arg0="<STUD_NAME/>" arg1="<STUD_ID/>"/> <label key="notification.ApmInstanceDelivery.MessageText2" arg0="<CPNT_TYPE_ID/>" arg1="<CPNT_ID/>" arg2="<REV_DATE/>" arg3="<CPNT_TITLE/>"/> <label key="notification.ApmInstanceDelivery.MessageText3" arg0="<START_DATE/>" arg1="<START_TIME/>"/> <label key="notification.ApmInstanceDelivery.MessageText4" arg0="<LOCN_ID/>" arg1="<LOCN_DESC/>"/> 
<DEEPLINK_NOTIFICATION linkType="ITEM_DETAILS" value="componentID=<URLENCODE value="<CPNT_ID/>"/>&componentTypeID=<URLENCODE value="<CPNT_TYPE_ID/>"/>&revisionDate=<URLENCODE value="<REV_DATE_IN_LONG/>"/>"/>
</LOOP>

Cause

The item details direct link is only supported by the "ApmTrainingExpiration" notification template, as this is the only template that has all the tokens from the item details direct link on the token set.

Resolution

To avoid issues, only use a direct link on a notification when the link tokens are available on the notification template token set.

See Also

You can find a relation of notification token sets by template ID on the SAP Help Portal - Template ID to Syntax ID to Syntax Tag Map.

Keywords

upcoming, reminder, notification, item, details, direct, link, REV_DATE_IN_LONG, exceptionRootCauseTag=5522e8d5d080f6cb6bdb683e839ac713d480b0da, exceptionStackTraceTag=d7ac0f7d85434eb8c983824b06c99b03957a083b, token, email, ApmTrainingExpiration , KBA , LOD-SF-LMS-NOT , Notifications , LOD-SF-LMS , Learning Management System , Problem

Product

SAP SuccessFactors Learning all versions