コミュニティ

"The name Document does not exist in the current Context".

using Document.Field to get the table row count gives me the error

int NominalCount = Document.Field("Invoice Layout\\Nominal Breakdown").Items.Count;

"The name Document does not exist in the current Context". How can I resolve this?

 

Thank you

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

2件のコメント

  • Avatar
    Adrian Enders

    Where are you writing this code? Rule script? Stage Script? Try "Context.Document.Fields.."

    0
  • Avatar
    Mariia Indosova

    Hi @...!

    Can you tell me where did you use this script?

    Based on my experience, such issue might happen if you use the script in the wrong place.

    Try to go to the Project Properties > Workflow tab > change workflow's schema to the Advanced workflow > create a script stage after recognition. Choose "Document processing" type and put the script there. See screenshots below.

    0

サインインしてコメントを残してください。