Сообщество

refresh dataset

I would like to know how to refresh a dataset from a table, I have tried the way I believed, which is in the photo I attach below, but I think it does not work.
There must be a way to leave the project on a client and every day or each three days Flexicapture dataset is refreshed from your vendor or BU table of your system

 

0

Комментарии

Комментариев: 8

  • Avatar
    izoaib

    Hi Javsuc,

    I create a windows scheduler to run the batch file which contain the command to update the Dataset.

    I hope this will help you if you still looking for solution.

    0
  • Avatar
    Rahul Kapoor

    I agree with @izoaib. You can use windows task scheduler to achieve this. Below are the detailed steps to customize the windows task scheduler:

    1. Open Task Scheduler (Programs > Accessories > System Tools > Task Scheduler).

    2.    Create a task: Action > Create Task. On the General tab specify any task name. On the Action tab press “New” and set the following parameters.   

    Action: Start a program;

    Program/script: "C:\Program Files\ABBYY FlexiCapture 12 Servers\FlexiBRSvc.exe"   

     Add arguments (optional): please update dataset "<you project path>" "<you document    definition name>" "<data set name>"

    3. Leave the other parameters as default.

    4. Select the created task (in the Task Schedule library) and run it.  

    -1
  • Avatar
    Sara

    Hi,

    I have created a batch file with all commands as above. If I run batch file manually, it will run and update the dataset. However, I want to run batch file automatically in the background and not manually and also want to file logs of last sync time. How to achieve this?

    Thanks,

    Samir

    0
  • Avatar
    izoaib

    Hi Sara,

    To run batch file automatically at background you need to schedule it by using Windows Task Scheduler.

     

     

    0
  • Avatar
    Sara

    Hi Izoaib,

    1. I do want command prompt to appear automatically while scheduling a task. How to do this?

    2. I wan to log last sync time in a notepad file, so that i know when it was updated last. 

    Help appreciate,

    Thanks,

    Sara

    0
  • Avatar
    izoaib

    To write to text file

    echo Logged time = %time% %date%>> log.txt

    Once you schedule a task from windows Task Schedular than it will open a command prompt.
    Let me know if you need command to update dataset
    0
  • Avatar
    Sara

    Hi Izoaib,

    Thanks for reply. But command prompt screen is still appearing. Can I run in the background? It opens every time scheduled time is invoked.

    Thanks,

    Sara

    0
  • Avatar
    izoaib

    Hi Sara,

    Other option is to write script. For that goto Edit Doc Def file, goto DAtaset and there select script. 

    You will find online link to write script for Abbyy.

    0

Войдите в службу, чтобы оставить комментарий.