Set Dynamic Delay in Delay Activity

Hey All, I hope you all are doing great. I am trying to make a dynamic delay in UiPath studio but it says invalid time frame can anyone help me out with this problem?

Hi @Muhammad_Anas_Baloch

To set dynamic delay , you can store the milliseconds wait time like 1000 or 2000 in the config xls and you could retrieve by using the key value as Config(“TimeoutValue”).tostring

The error “invalid time frame” in UiPath delay activity can occur if the duration format is not correct.

Hi,

Can you try to use TimeSpan.FromSecond method etc, as the following?

image

TimeSpan.FromSeconds(delaySec)

note : delaySec is Double type variable

Regards,

Thank you, dear it worked for me!