Symptom
Direct Link for Item Details page breaks the Upcoming Class Reminder Email Notification.
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
- Go to LMS admin side.
- Go to Generate Direct Links menu.
- Pick the Item Details from the dropdown.
- Select Tokens.
- Copy it.
- Now go to Email Notification Templates menu.
- Search for ApmInstanceDelivery template ID.
- Edit it.
- Make sure the Editor flag is NOT checked.
- In the HTML version (NOT THE EDITOR) paste the copied text right above the <\LOOP> tag.
- Save it.
- Create a Class for the next day.
- Enroll a user with a valid email address that you have access to its mailbox.
- Go to the APM Upcoming Class Reminder Email Notification.
- Set the threshold to 7 days.
- Schedule the APM to the next minute.
- Once you receive the notification, click the Link in the notification.
- 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
This is working as designed.
Resolution
The Upcoming Reminder template does not support Direct Link to an Item or Class. This is a template to remind the learner that an upcoming class is near its start date.
Keywords
Upcoming Reminder notification, Item Details, Direct Link, REV_DATE_IN_LONG, exceptionRootCauseTag=5522e8d5d080f6cb6bdb683e839ac713d480b0da, exceptionStackTraceTag=d7ac0f7d85434eb8c983824b06c99b03957a083b , KBA , LOD-SF-LMS-NOT , Notifications , Problem