Error "There was an error highlighting the violating text for this incident" when trying to view an incident created due to a MIP policy
search cancel

Error "There was an error highlighting the violating text for this incident" when trying to view an incident created due to a MIP policy

book

Article ID: 397528

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

When viewing an incident created by a MIP policy, you see the error "There was an error highlighting the violating text for this incident".

Environment

16.x

Cause

This can be caused if a child AIP label has been moved to a new parent.  In the logs you will see the following error:

File: Enforce/logs/tomcat/localhost.yyyy-mm-dd.log
Thread: 12139
Level: WARNING
Source: com.vontu.manager.report.snapshot.IncidentDetailPage
Message: (MANAGER.200) Error generating match highlighting for incident ########, incident detail will be rendered without them
Cause:
com.symantec.dlp.incidentdomainservices.matching.MatchHighlightingException: Error marking violating content for incident ######com.symantec.dlp.incidentdomainservices.matching.MatchHighlightingException: Error marking violating content for incident ######
    at com.symantec.dlp.incidentdomainservices.matching.MatchHighlightingService.highlightMatches(MatchHighlightingService.java:163)
    at com.vontu.manager.report.snapshot.IncidentDetailPage.prepareForDisplay(IncidentDetailPage.java:170)
    at com.vontu.pagebuilder.PageBuilderImpl.render(PageBuilderImpl.java:75)
    at com.vontu.manager.struts.pagebuilder.DisplayAction.display(DisplayAction.java:71)
    at com.vontu.manager.struts.pagebuilder.PageOutputAction.execute(PageOutputAction.java:90)
    at com.vontu.manager.report.snapshot.IncidentSnapshotDisplayAction.execute(IncidentSnapshotDisplayAction.java:67)
    at sun.reflect.GeneratedMethodAccessor1106.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.vontu.manager.struts.transactions.AllowsTransactionalProxy.invoke(AllowsTransactionalProxy.java:96)
    at com.sun.proxy.$Proxy652.execute(Unknown Source)

....

    at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2

...

Caused by: javax.persistence.NonUniqueResultException: query did not return a unique result: 2

 

Resolution

This is addressed in 16.1 MP1 and 25.1

CRE-19696
If you move a Microsoft Purview Information Protection (MPIP) classification label from one parent label to another, classification incidents highlight the violating text correctly.