Whenever a bhavcopy is not available for a particular day, then the subroutine shouldn't process that day's data, that's what other downloaders do. Dunno abt this code though, whether such an subroutine is possible or not.
The idea is that if there is any data available for a given day, be it bhavcopy or index data or futures data, the day is processed and whatever is available is downloaded. So that's why if NSE hasn't uploaded bhavcopy for a day, only the bhavcopy download fails and rest proceeds.
today at my end equity bhavcopy not downloaded. dont know any one facing such issue
The issue will only occur if you are using the link profile "NSE Daily (with Delivery)". NSE sometimes doesn't upload data on this link and only bhavcopy data download fails. This is the same problem reported earlier as well. If you don't need delivery data or NSE has not uploaded delivery data for some day, I'd highly recommend switching to another link profile (such as "NSE Daily" or "NSE Archives").
Also another update -- anybody who was using the NSE Archives profile should switch to NSE Daily link profile.
NSE has introduced some authorization protocols which will take time to implement and I'm a very busy currently
I'll release a new version with those protocols sometime later if I feel that the Archives URL is really required
I got some free time and have implemented the required code pieces. I don't have access to a windows machine currently, so will release a new version in a few days. With the new version all link profiles will be available for usage. However some things to note:
1. NSE has a different url where they upload bhavcopy with delivery data. This doesn't have any backup link.
2. NSE doesn't upload bhavcopy on this URL many times. (e.g for 28th September 2020 and 13th April 2020)
3. Due to this problem, users will notice download failure for Bhavcopy on given dates because no bhavcopy exists on the delivery data server
4. However Bhavcopy will probably exist on the normal server for this day
5. So switch to a profile that doesn't support delivery data and there should be no more issues
Starting with StockD v4.5, I've put more meaningful names to link profiles in the Advanced Tab. Hope that it will ease the process of switching link profiles.
End of the day, Link Profiles are nothing but backup servers. If one doesn't work, please try the other ones.
Hopefully StockD v4.5 will be released for Windows by this Sunday.