I am getting files from a folder using “Directory.GetFiles(path)” in foreach.
picking invoices one by one and process them in document understanding to read required data. it is working fine for one file. but when processing multiple invoices then it is processing one less from total count, I mean if 5 files in folder then process 4 successfully and getting error for last.
“Object reference not set to an instance of an object.”
Please help me.