I have created one scripted field named as "ErrorGroup" in which I have write below script :
if(doc['Message.keyword'].value!=null && doc['Level.keyword'].value=='Error'){if(doc['Message.keyword'].value.contains('Error fetching picking lists items for picklist id')){return 'Error in fetching picking lists items';} else if(doc['Message.keyword'].value.contains('WebMPL:Article not present in picklist')){return 'Article not present';}return 'other';}
using this script, Message field read as null for "Error fetching picking lists items for picklist id" string but it is working fine for ''Message'' which have "WebMPL:Article not present in picklist" value.
Full Value of these message field is
1)WebMPL:Error fetching picking lists items for picklist id : , Error: metrosystems.mcrm.common.Exceptions.SiebelException: Error fetching picking list items fro picklist ''
at metrosystems.mcrm.data.soe.Repository.PickingRepositoryBetty.GetPickingListById(String id, String languageCode, String accountId, String custStoreId, Boolean getFromService) in d:\TeamCity\buildAgent\work\616e3af0ffbc99a9\metrosystems.mcrm.data.soe\Repository\PickingRepositoryBetty.cs:line 548
at metrosystems.mcrm.business.soe.Service.PickingService.GetPickingListById(String id, String langCode, String pickListStore, String accountId, String custStoreId, Boolean getFromService) in d:\TeamCity\buildAgent\work\616e3af0ffbc99a9\metrosystems.mcrm.business.soe\Service\PickingService.cs:line 129
at metrosystems.mcrm.soe.Controllers.PickingApiController.GetPickingItems(String id, String pickListStore, String accountId, String custStoreId, Boolean getFromService) in d:\TeamCity\buildAgent\work\616e3af0ffbc99a9\metrosystems.mcrm.soe\Controllers\PickingApiController.cs:line 125 ======> Its is not working correct, for this ErrorGruop I am getting null value.
- WebMPL:Article not present in picklist. Barcode : 3484700007946====> It is working fine fdor this ErrorGruop field value is "Article not present".
Can anyone please help me on this?
Thanks in advance...