Im trying to validate if a field not empty … then print this into the txt file, it reads and inserts the first part but doesnt insert the second part … I’ve tried and search for why its not working but im beginning to think it cant work?
If you mean that you never see 'This is a test 2" line then:
Run the code with the debugger on and confirm that you have records that have a value in doc.Manager(0) and then determine the value of doc.Manager2(0).
You might have a document set where every doc has a completed manager(0).
You might have a set where every doc that has on Manager(0) has a Manager2(0).
Or maybe you don’t have the right field names.
Or…something else.
The debugger is a big help working out this kind of issue.