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 Colin,

     

    We can remove the "ControlPointExport" Database anytime and rerun the script to create and to import data using powershell  and if need refreshDatabase SP to sync up to date right ?

    I am getting some error while running the SP "RefreshPublishedDocuments' and not sure whether worth to investigate or rerun and create to see the behaviour. ExportDPCP Error.JPG

    Note: When I checked "[dbo].[UpdateLogExport] "order by logTimeStamp found the error as "Error 547 Inserting new records in documentPolicy. Aborting Execution". Policies --> Table and View records not matching and view contains many duplicate records as well.

    select count(*) from [ControlPointExport].[ControlPoint].[Policies]  with (nolock) --23165
    select COUNT(DISTINCT UUID) from [ControlPoint].[Policies] with (nolock)--1461

    select count(*) from [dbo].[DocumentPolicy]  with (nolock) --1461

Comment
  • Hi Colin,

     

    We can remove the "ControlPointExport" Database anytime and rerun the script to create and to import data using powershell  and if need refreshDatabase SP to sync up to date right ?

    I am getting some error while running the SP "RefreshPublishedDocuments' and not sure whether worth to investigate or rerun and create to see the behaviour. ExportDPCP Error.JPG

    Note: When I checked "[dbo].[UpdateLogExport] "order by logTimeStamp found the error as "Error 547 Inserting new records in documentPolicy. Aborting Execution". Policies --> Table and View records not matching and view contains many duplicate records as well.

    select count(*) from [ControlPointExport].[ControlPoint].[Policies]  with (nolock) --23165
    select COUNT(DISTINCT UUID) from [ControlPoint].[Policies] with (nolock)--1461

    select count(*) from [dbo].[DocumentPolicy]  with (nolock) --1461

Children
No Data
Related
Recommended