Hey everyone! I'm really new to PowerShell and have been using a script to automatically email me weekly sales numbers, breaking it down into percentages. I just got a new office PC this weekend—nothing fancy, but it's way faster than my old one. While my script was working fine on my previous PC, now it seems to be pulling $0.00 for the Net Sales numbers, even though the file is being rewritten. I have a 10-second wait in place for the website I pull from (which can be a bit slow), but it seems like the computer is processing too quickly and not waiting long enough to grab the actual sales numbers. Any tips on how to troubleshoot this?
1 Answer
It might be tough to pinpoint the issue without seeing your code; sometimes the HTML of the source site changes, which can mess up your script. Glad you figured out the pause trick, though! Adding a slight delay can really help.

Thanks for the tip! I was hesitant to share my code because I wasn’t sure about the rules, but it looks like that 3-second pause before the problematic part did the trick. Appreciate your response!