Ahsan (ahsan@shield-legal.com)
2024-08-19 15:53:49

Hey Guys here is my code.

deleted-U06C7A8PVLJ
2024-08-19 16:11:55

*Thread Reply:* When you run it; about how long does it run til it breaks? @Ahsan

Ahsan (ahsan@shield-legal.com)
2024-08-19 16:34:47

*Thread Reply:* its a random break time for the files, no set number is iterated

deleted-U06C7A8PVLJ
2024-08-19 16:36:34

*Thread Reply:* Gotcha. I am running as we speak and I am waiting for that "break" but haven't seen it yet; that is why I asked. But when it does I will investigate it some more

👍:skin_tone_4: Ahsan
deleted-U06C7A8PVLJ
2024-08-19 16:53:05

*Thread Reply:* @Ahsan let me know if this one works better. I added where it also gives us an excel file output to easier see if it is false or true; also I adjusted it where "checkfileexists" function is being called once for each file and stored in variables which then are used in the subsequent if condition and logging.

deleted-U06C7A8PVLJ
2024-08-19 16:53:54

*Thread Reply:* Here is an example output @Ahsan I believe this should be all their clients?

Ahsan (ahsan@shield-legal.com)
2024-08-19 17:20:36

*Thread Reply:* File error: File not found or not a file: C:\Users\Ahsan\Documents\Work Code\API Integration\API Testing\B & G ELG\B&G\11206311 - Laurier Dubreuil\11206311 - PlaintiffMEDICAL AUTHORIZATION - Facility Medical Release FormChandler Regional Medical Center - Facility Medical Release Form - Wet Signed_1563723.pdf

deleted-U06C7A8PVLJ
2024-08-19 17:46:44

*Thread Reply:* Yeah when I ran it I got the same amount of clients and did not break. Here is the slightly adjusted code of it for print statements and here is the output I got second time around

deleted-U06C7A8PVLJ
2024-08-19 17:47:44

*Thread Reply:* I have to clock out in a few minutes but I can help you more tomorrow if this doesn't solve it. If there is supposed to be only 575 pdf files pulled then that means it worked from my end; but if there are more than those then that means it didn't pull all of them

deleted-U06C7A8PVLJ
2024-08-19 17:47:51

*Thread Reply:* @Ahsan

deleted-U06C7A8PVLJ
2024-08-19 17:48:45

*Thread Reply:* Here is the output I get when I run it thru VS

Ahsan (ahsan@shield-legal.com)
2024-08-19 17:51:35

*Thread Reply:* Thank you for your help

Ahsan (ahsan@shield-legal.com)
2024-08-19 17:51:52

*Thread Reply:* I am pretty sure it is a memory and runn lenght issue causing the random fail due to the size of the directory

Ahsan (ahsan@shield-legal.com)
2024-08-19 16:00:14
✅ deleted-U06C7A8PVLJ
deleted-U06C7A8PVLJ
2024-09-04 12:55:36

Hey team. I brought bagels; if you want to grab one they are at the table next by me (The table with the magazines)

👍:skin_tone_4: Ahsan