Error - Starting Index cannot be less than zero

Below is the requirement -

  1. open URL → https://mod.gov.in/dod/major-achievements
  2. Scrap data of all achievements (All Pages)
  3. Create Year Folder.
  4. Create Month Folder under Year.
    I am getting an error while creating 4th step.

Please help.

image

image

Thanks
Abhishek

@Abhishek_Kumar_sinha

Check the month Assign, you are again reassigning starr(1), but it is already stored in year

can you share me the sample string and output required?

Thanks

@Srini84
Typing Mistake, I kept starr(0) but still showing the same error.

sample string -

Major activities of Department of Defence for the month of January ,2020

create year folder.
create Montly folder under Year.

Pls advise.

Thanks
Abhishek

@Abhishek_Kumar_sinha

Try like below

Samplesplit(1) will be the Year

Month = SampleSplit(0).TrimEnd

Mark as solution if this helps

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.