How to make sure the sequence of documents will match the order of them in the batch while iterating through them in the custom batch processing script?

Question

If I iterate through documents  in the custom batch processing script, the sequence is not correct:



How can I make sure the sequence of documents will match the order of them in the batch?

Answer

Modify the script the following way:

for (int i = 0; i < Batch.Documents.Count; i++)
{
Processing.ReportWarning("Document["+i+"]: index = ") + Batch.Documents[i].Index.ToString();

}

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.