CAST Engineering Dashboard - Violations - False Violation - Avoid too many copy pasted artifacts

Purpose (problem description)

This page handle the case when an object is not supposed to be violated by the QR “Avoid too many copy pasted artifacts”, but the violation is missing

Observed in CAST AIP

ReleaseYes/No
8.3.x

Observed on RDBMS

RDBMSYes/No
CSS

Step by Step scenario

  1. Take snapshot
  2. Open CED and observe that the violation is missing

Action Plan

Perform the below actions

  1. From the knowledge schema, get the Id of the artifact that is similar to the object on which there is violation:

SELECT object_id_2 FROM objects_similarities WHERE object_id_1 IN (SELECT idkey FROM keys WHERE keynam = ‘object_name’)


   **Query result example**

   546472

   **Query result interpretation**

   The query returns the id of the object
2. Check if the object is part of a module by following the page [SQL Queries - CAST Knowledge Base - Queries on Module - Module content and properties](/export-v2/tg/sql-queries/sql-queries-cast-knowledge-base/sql-queries-cast-knowledge-base-queries-on-module/sql-queries-cast-knowledge-base-queries-on-module-module-content-and-properties/) if the similar object is not part of the module then this is a bug, as a Workaround perform the following:

   1. Install the following procedures on the knowledge schema: [DIA\_GENPATH\_COPYPASTE.sql](https://doc-data.castsoftware.com/TG/attachments/566539183/566539184.sql), [diag\_scope\_ncopypaste.sql](https://doc-data.castsoftware.com/TG/attachments/566539183/566539182.sql)
   2. Compute a snapshot by skipping analysis.Note that this bug is fixed in Cast AIP 8.2.11.
3. If the above steps do not solve your issue contact [CAST Technical Support](https://help.castsoftware.com/hc/en-us/requests/new). with the following [Relevant input](/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/cast-engineering-dashboard-component-ced/cast-engineering-dashboard-violations/cast-engineering-dashboard-violations-false-violation-or-no-violation/)

 

**Notes/comments**

Ticket # 10663

**Related Pages**

*Specify pages indirectly related to this topic.(eg:side- effects)*