Exclude a file from scan

1 Likes

ISSUE:

ControlPoint allows to exclude files when scanning sources. The graphical interface gives the possibility to exclude file extensions. What if I want to exclude a specific file.

Annotation 2020-04-30 141928.png

HOW TO STEPS:

The connector configuration file gives you more granularity in what you can exclude.

Open the connector configuration file (.cfg).

Go to the task section of the repository: e.g. [TaskMyRepository]

Add the PathCantHaveRegex parameter. In the following example, we exclude "thumb.db" files AND all pdf files.

PathCantHaveRegex0=.*thumb\.db
PathCantHaveRegex1=.*\.(pdf)

Note that you can have multiple parameters with the number at the end.

Also note that when you use these manual adds in the configuration file, you should not use anymore the field in the graphical interface as this will conflict.

See also the file system connector documentation: https://www.microfocus.com/documentation/idol/IDOL_12_3/FileSystemConnector_12.3_Documentation/Help/index.html#Configuration/TaskName/PathCantHaveRegex.htm

Labels:

How To-Best Practice
Comment List
Parents
  • Hi,

    RemovePolicyFromRejectedDocs.sql was provided as a workaround for clearing documents in the state Review Rejected as the CP UI does not currently cater for that (CP-10029).

    Therefore that script would not have tested in conjunction with other functionality such as Export for BI.

    If there is an issue then you should be able to drop the ControlPointExport DB and repopulate it from scratch via "Initial_export.ps1".

    [ControlPoint].[dbo].[CPAuditEvent] view contains info on events audited:


    Id Item
    ====================================
    100 Policy assigned by user
    101 Policy assigned by category
    102 Execution rules met
    103 Conflict encountered
    104 Prevented due to conflict resolution
    105 Allowed after conflict resolution
    106 Awaiting review
    107 Approved after review
    108 Rejected after review
    109 Executed
    110 Execution failed
    111 Resubmitted
    112 Policy removed by user
    113 Policy removed due to policy delete
    114 Policy revoked
    115 Updating
    116 Updated
    117 Aborted
    118 Request resubmit
    119 Request abort
    120 Phase executed
    121 Classification assigned
    122 Policy removed due to item change
    123 Request abort and prevent automatic assignment
    124 Aborted and automatic assignment prevented
    125 Policy to be re-done due to item change
    130 Phase undo executed
    131 Policy undo executed
    132 Item marked for phase undo
    133 Policy execution has not started; policy to be removed due to category change
    134 Policy phase cannot be undone
    200 Assign classification requested
    201 User assigned
    202 Remove classification requested
    203 User removed
    204 Update classification alert requested
    205 User alert
    206 Classification assigned to IDOL item
    207 Classification assigned to IDOL item from folder
    208 Classification value on item not found
    300 Category published
    400 Tag added
    401 Tag removed
    402 Tag updated
    403 Tag assigned by user
    404 Tag removed by user
    500 Delete SOR Record


    Regards,
    Colin

Comment
  • Hi,

    RemovePolicyFromRejectedDocs.sql was provided as a workaround for clearing documents in the state Review Rejected as the CP UI does not currently cater for that (CP-10029).

    Therefore that script would not have tested in conjunction with other functionality such as Export for BI.

    If there is an issue then you should be able to drop the ControlPointExport DB and repopulate it from scratch via "Initial_export.ps1".

    [ControlPoint].[dbo].[CPAuditEvent] view contains info on events audited:


    Id Item
    ====================================
    100 Policy assigned by user
    101 Policy assigned by category
    102 Execution rules met
    103 Conflict encountered
    104 Prevented due to conflict resolution
    105 Allowed after conflict resolution
    106 Awaiting review
    107 Approved after review
    108 Rejected after review
    109 Executed
    110 Execution failed
    111 Resubmitted
    112 Policy removed by user
    113 Policy removed due to policy delete
    114 Policy revoked
    115 Updating
    116 Updated
    117 Aborted
    118 Request resubmit
    119 Request abort
    120 Phase executed
    121 Classification assigned
    122 Policy removed due to item change
    123 Request abort and prevent automatic assignment
    124 Aborted and automatic assignment prevented
    125 Policy to be re-done due to item change
    130 Phase undo executed
    131 Policy undo executed
    132 Item marked for phase undo
    133 Policy execution has not started; policy to be removed due to category change
    134 Policy phase cannot be undone
    200 Assign classification requested
    201 User assigned
    202 Remove classification requested
    203 User removed
    204 Update classification alert requested
    205 User alert
    206 Classification assigned to IDOL item
    207 Classification assigned to IDOL item from folder
    208 Classification value on item not found
    300 Category published
    400 Tag added
    401 Tag removed
    402 Tag updated
    403 Tag assigned by user
    404 Tag removed by user
    500 Delete SOR Record


    Regards,
    Colin

Children
No Data
Related
Recommended