When running the Update Readiness Tool before an upgrade from Symantec Data Loss Prevention 14.6 to 15.0, 15,1, or 15.5, the tool returns results in its log file with the error below.
Start: Data Foreign Key Constraint Validation - [date and time]
Data violations are detected on your schema, please use the below query(s) to retrieve the invalid data.
SELECT DISTINCT protocolFilterId AS "PROTOCOLFILTERID" FROM ENDPOINTPROTOCOLFILTER
WHERE protocolFilterId IS NULL OR protocolFilterId NOT IN (SELECT acv.protocolFilterId FROM
AgentConfigurationVersion acv WHERE acv.protocolFilterId IS NOT NULL);
End : Data Foreign Key Constraint Validation - elapsed 0s - FAILED (1 violation)
create table EndpointProtocolFilter_nomatch as
select * from EndpointProtocolFilter where protocolFilterId not in (select acv.protocolFilterId FROM
AgentConfigurationVersion acv where acv.protocolFilterId IS NOT NULL);
select count(*) from EndpointProtocolFilter where protocolFilterId not in (select acv.protocolFilterId
FROM AgentConfigurationVersion acv where acv.protocolFilterId IS NOT NULL);
DELETE FROM EndpointProtocolFilter WHERE protocolFilterId NOT IN (SELECT acv.protocolFilterId FROM AgentConfigurationVersion acv WHERE acv.protocolFilterId IS NOT NULL);
commit;
select count(*) from EndpointProtocolFilter where protocolFilterId not in (select acv.protocolFilterId
FROM AgentConfigurationVersion acv where acv.protocolFilterId IS NOT NULL);