Zia prediction fails due to signature content

Zia prediction fails due to signature content

Issue:

Zia Approval prediction is not working when the prediction query has signature in it.

Log Trace:
[12:15:08:465]|[07-05-2022]|[com.manageengine.servicedesk.sdpai.utils.ApprovalPrediction]|[INFO]|[147]: result::-1.0|
[12:15:08:465]|[07-05-2022]|[com.manageengine.servicedesk.sdpai.utils.AIUtil]|[INFO]|[147]: inside setapprovalprediction|
[12:15:08:465]|[07-05-2022]|[com.manageengine.sdpod.v3api.bean.EntityBeanObject]|[INFO]|[147]: Long value: 11741 passed for zia_approval_prediction.approval_id|
[12:15:08:465]|[07-05-2022]|[com.manageengine.sdpod.v3api.bean.EntityBeanObject]|[INFO]|[147]: Long value: 1657016108465 passed for zia_approval_prediction.action_date|
[12:15:08:465]|[07-05-2022]|[com.manageengine.servicedesk.sdpai.utils.AIUtil]|[INFO]|[147]: appprediction in saving::{"mail_content":"Approved\nLennie Marais  Group Infrastructure Manager","module":"Change","change":{"id":512},"prediction":"Unable to predict","action_date":1657016108465,"approval_id":11741}|
[12:15:08:496]|[07-05-2022]|[com.manageengine.servicedesk.mailutils.ApprovalMailHandler]|[INFO]|[147]: Zia predict the approval action as Unable to predict|

Fix:
The proper approval comment and the signature has new line character(\n) in between them. So splitting the content into two and predicting the first content again (Approved) if the action content fails.

Support Ticket:

Compatible SDP Version:
13005 - 13008

Note:
This fix is to troubleshoot this particular case. Please contact the developer team before sharing the fix to customers
                  New to ADManager Plus?

                    New to ADSelfService Plus?