Error while adding custom delay in delay activity from config file

Hi ,

I am getting the error mentioned in photo while adding the custom delay from config file in the ‘Delay Activity’

Do let me know the how to resolve the issue?

Thanks in advance!

Hi @Binod_Kumar_Biswal

Try the below syntax:
TimeSpan.FromSeconds(Cint(in_Config("CustomDelay").ToString))

Output variable will be of the datatype System.TimeSpan

Hope it helps!!

Hey @Binod_Kumar_Biswal try below expression

note : in_Delay (is a string type of variable.)

cheers

@Binod_Kumar_Biswal

hey you added .Tostring is out of the bracket

try to pass like below

TimeSpan.FromSeconds(CInt(in_Config(“CustomDelay”).ToString))

Happy Automation!!