Add or edit data exchange to download to Webex Campaign

📘

It is mandatory to create a profile manager client setup before you create a data exchange.

The data management tab allows users to create a data exchange configuration with the customer's SFTP connection. The SFTP/Amazon S3 configuration details are used to download or upload the feed(ETL).

1870

Add New Data Exchange

Follow these steps to create a new data exchange:

  1. Navigate to Data management > Data exchange list screen and click Add new data exchange. The Add new data exchange screen appears.
  1. Enter details for the following fields.
  • Data exchange name: (Mandatory) Enter a name for the File client.

  • Protocol: (Mandatory) Select the protocol from the drop-down menu. The options are:

     ◘  **SFTP**: To download files from an SFTP path.
    
     ◘  **Amazon S3**: To download files from an Amazon S3 storage. 
    
     ◘  **Local**: To download files to/from a non-SFTP shared/mount path.
    
  • Active: Enable the toggle to make the SFTP client active.

  • Transfer type: (Mandatory) Select the type of transfer as Download to webex campaign.

  • Profile manager file client: (Mandatory) Select the file client you already created from the drop-down menu.

  • Source path in SFTP / S3: Enter the path from where the files should be downloaded.

For example,

Source pathFormat
To configure the date format in the source path/Data/Snaps/InputFolder/Games/&YYYY&/&MM&/&DD&/SNAP/
To configure the date format in the source path along with subfolder/Data/Snaps/InputFolder/Games/&YYYY&/&MM&/&DD&/&WORD&/
  • Source file name pattern in SFTP / S3: Enter the source file pattern. This option can be used if the file is .txt or .csv or any other file extension.

       Following are some examples of file names and patterns:


  • Destination path in webex campaign: (Mandatory) Enter the destination path to download the file. The following are the possible options:

    • If you enter "/ ": The files will be downloaded to the default tenant-specific root directory.
    • If you enter /SomeFolder: If you want to organize your files in a folder-specific manner, then specify the folder name. The folder will be created automatically in the tenant-specific root directory.

  • Schedule start date: (Mandatory) Select the start date.

  • Schedule end date: (Mandatory) Select the end date.

  • Frequency of data transfer (seconds): Enter the interval to execute the particular job for every configured number of seconds. The minimum value you can set is 60 seconds.

Additional parameters

  1. (Optional) Configure Additional parameters to include a filter of how the data exchange should process the data.

    • Day filter: Enter the days separated by ‘-’ to pick up a file for data loading. For example, if today's date is 15th June, if you enter 1-5, it indicates that the system has to pick up files of 1 day from the previous 5th day from the current date (10th June file). If you enter 2 - 3, the system will pick up files of 2 days from the previous 3rd day from the current date (12th and 11th June).

    • Pick order: This option is used to specify the fetching order of the files. Enter 0 to follow FIFO (First In First Out) and 1 to follow LIFO (Last In First Out) order. For example, if there are 10 files in an SFTP location, you want the system to pick up the files in an order that is the first files to be picked up, then enter 0. If you want the last file to be picked up first, then enter 1.

    • Data timeout: Enter the timeout when reading from the data connection. The default value is 0 minutes. That means it will never time out.

    • File count interval (mins): Enter the time interval to check the file count in SFTP source and destination folders.

    • Repeat count: This option is used to stop the number of intervals falling in between Execute from and Execute up to based on the interval scheduled. For example, if the data exchange From and To is configured for 24 hrs with an interval of 1 hr, then the count will be 24. That means the job gets executed 24 times. To stop the execution after 600 min, enter 600 as a repeat count. If you enter -1, the job will continue to execute as per the intervals till the end date.

    • Exclusive window: Enter the time in seconds to sleep before the download starts.

    • Folder thread size: Enter the number of concurrent folders that can be processed simultaneously during the job execution. This option is useful when the input files are provided in different folders. The default value is 1.

    • File thread size: Specify the number of concurrent files that can be picked up from SFTP and processed simultaneously during the job execution. This option is useful when you have more files to be processed. The maximum value you can enter is 20.

    • Rename suffix: Enter the file suffix to rename when the transfer to the destination path is successful. For example, .done or .completed.

    • Archive source file pattern: Enter the archive source file pattern. This option is used when the source file is uploaded as a compressed file such as .zip or .gz. This option will copy the compressed file to the destination and then extracts the .txt or .csv file from .zip or .gz.

    • Copy suffix: Enter the suffix to files that need to be appended while in transfer or copy. For example, _under_process_tmp. This is useful to identify the file that was in progress, in case the transfer is aborted or stopped for some reason.

📘

We strongly recommend that you specify some value in the Copy suffix field to ensure that the receiving system does not start processing partially-transferred files. However, if your local IT expert has confirmed that your operating system is automatically able to identify when a file transfer is complete, then you may remove the default value of .tmp and leave this field blank.

  • Is preprocessing required: Enable the toggle if the file has to be preprocessed.

    Preprocess command: Enter the command to execute any executable file which takes
    downloaded file as input and transforms into profile manager usable format file as output.

               For example,

              cdrconvert -f csv -I $(inputPath) -O $(outPutPath) -t /opt/softwares/delivery-CONVERTER-20/Compiler/bin/ ERS_R12_MSC_table.dat -m /opt/softwares/delivery-CONVERTER-20/Compiler/bin/ ERS_R12_MSC_mapping.txt -enumtext

 
Exclude preprocess: Enter the file extension which you want to exclude from
preprocessing. For example, you are downloading 5 files from a folder that contains .csv
and .txt. If you know that .txt file need not be pre-processed, then enter .txt.command to
exclude preprocess.

  • Is tracking required? : This is optional. You can enable the toggle to track the data exchange.

    Archive path: Enter archive path. It is used for the remote file location in tracking
    secondary folders.

    File pattern: Enter archive file pattern.

    Day filter: Enter the filter as 1-0, where 1- Number of days to pick and 0 - Number of days to skip loading.

    Repeat count: Optional. This option is used to stop the number of intervals that fall in
    between Execute from and Execute up to based on the interval scheduled. For
    example, if the data exchange From and To is configured for 24 hrs with an interval of 1 hr,
    then the count will be 24. That means the job gets executed 24 times. To stop the execution
    after 10 hrs, enter 10 as a repeat count. If you enter -1, the job will continue to execute as per the intervals till the end date.

    Folder thread size: Enter the number of concurrent folders that can be processed
    simultaneously during the job execution. This option is useful when the input files are
    provided in different folders. The default value is 1.

    SFTP connection: Select the SFTP connection from the drop-down menu to perform the
    job.

    Archive file pattern: It is also like a source file pattern. If the remote location has any
    archive file will look for configured archive source file pattern.

    Order: Enable the toggle to run the tracking job and the main job in sequential order
    otherwise, both jobs run in parallel.

    Job interval (secs): Enter the interval to execute the particular job for every configured
    number of seconds.

    Exclusive window: Enter the time in seconds to sleep before the download starts.

    File thread size: Specify the number of concurrent files that can be picked up from
    SFTP and process them simultaneously during the job execution. This option is useful when
    you have more files to be processed. The maximum value you can enter is 20.

1241
  1. Click the Save.

The configuration will be saved.

Edit or Delete a Data exchange

  1. On the Data exchange list screen, click on the required Data exchange name you want to edit.
  2. Make necessary changes and click Update.

  1. To delete a Data exchange, click on the ellipses icon of the required Data exchange and click Delete.