Assign: Index was outside the bounds of the array

@Alnsr

Check you have the license for the Document Understanding, check below post

Mark as solution if this helps

Thanks