NiFi Ingest 25.4
NiFi Ingest

# Synchronize with a Repository

The primary purpose of a connector is to retrieve data from a repository so that it can be processed and indexed into a Content component. The connector retrieves new documents, updated documents, and a list of documents that have been deleted so that the index is kept up-to-date with the data source. NiFi Ingest processors that synchronize with a repository have names that begin with "Get", such as GetFileSystem, GetWeb, or GetSharePoint.

Some NiFi Ingest connectors also support a feature called synchronize from identifiers. If a connector supports this feature, you can route documents that were not processed successfully back to the connector, so that the connector retrieves each of the failed documents again.

The behavior of the "Get" processor changes depending on whether you configure an incoming connection.

- If the processor has no input, it synchronizes with the repository each time it is scheduled to run. (For information about how to configure the schedule, see Configure Synchronize Schedules).
- If the processor has an incoming connection it runs only when there is a FlowFile in the input queue. The connector reads the identifier (a unique value that is assigned by the connector) of the incoming document and attempts to retrieve that document from the repository again. If the source data is retrieved successfully the connector discards the FlowFile that it received and outputs a new FlowFile to the success relationship. If the source data is not retrieved successfully the connector outputs the FlowFile it received to the failed identifiers relationship.

The following procedure demonstrates how to perform both types of synchronize task using a single processor.

To perform synchronize and synchronize from identifiers with a single processor

1. Add and configure the "Get" processor for the relevant repository.

   TIP: The same processor will perform both synchronize and synchronize from identifiers. So, if you want to perform a synchronize task every 24 hours but you want to process failed documents every 30 minutes, schedule the processor to run every 30 minutes. (Use the highest common factor of both of your chosen schedules).

2. Route failed documents back to the "Get" processor.

   At this point the processor only performs the "synchronize from identifiers" task, and will only synchronize documents that are added to its input queue.

3. Add a `GenerateFlowFile` processor to the dataflow, and configure it to create a FlowFile that will start a synchronize task.

   1. Add a processor, by dragging the processor icon from the components toolbar to the canvas.

      The Add Processor dialog box opens.

   2. Search for and select the GenerateFlowFile processor and click Add.

      The processor is added to the canvas.

   3. Create a connection between the GenerateFlowFile processor and the "Get" processor. Hover the mouse over the GenerateFlowFile processor until you see the connection icon - - and then drag the icon to the "Get" processor.

      The Create Connection dialog box opens.

   4. In the Relationships area, select the success check box and click Add.

      The connection appears on the canvas. In the following image the GenerateFlowFile processor has been named "StartSynchronize".

   5. Right-click the GenerateFlowFile processor and click Configure.

      The Configure Processor dialog box opens.

   6. Click the Scheduling tab.
   7. Configure how often to synchronize with the repository. For example, in the Run Schedule box, type `24 hours`.
   8. Click the Properties tab.

   9. Click Add .

      The Add Property dialog box opens.

   10. Type `idol.get.action` and click OK.

       Another box opens so that you can specify the value.

   11. Type `synchronize` and click OK.
   12. Click Apply to close the Configure Processor dialog box.
4. You can now start both the connector processor and the GenerateFlowFile processor.

Copyright 2018-2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery NiFi Ingest 25.4

Topic Title: Synchronize with a Repository