Community

FlexiCapture - Can't delete a document Answered

Hello

 

I'm trying to remove some documents out of my batch using the method DeleteDocument of IBatch.

I wrote a script to do that but everytime I'm getting a error with the message "It's not possible to modify the batch structure in this script" (the real message is in portuguese-br: Não é possível modificar a estrutura do lote neste script).

 

I tried the same script in different events handler and stages.

 

Does anybody know where it's possible to change the batch structure?

 

Here is the script

this.DeleteDocument(Page.Document);

 

Thanks.

0

Comments

3 comments

  • Avatar
    Ekaterina

    Hello,

    Please make sure that you have written your script on the "batch processing" level.

    1
  • Avatar
    Bruno Silva

    Hello Ekaterina, thanks for your reply.

     

    In my automatic stage the script tab isn't appearing.

     

    Thanks

    0
  • Avatar
    Ekaterina

    Hello,

    When you create the new stage, please select “Automatic” setting without any sub-stage as shown at the screenshot. If you still can not see the “Script” tab please send us the screenshots that demonstrate the problem.

    1

Please sign in to leave a comment.