Directory.Get files Error

Hi All,

I have download file in "C:\Users\marina.dutta\Downloads

I am using Directory.GetFiles(in_Config(“FileDownloadPath”).ToString.Replace(“user”,system.Environment.UserName),“*.csv”).OrderByDescending(Function(d) new FileInfo(d).CreationTime).First

my in_Config(“FileDownloadPath”)=

But when I am using Directory.GetFiles , I am getting Object reference not set to an instance

@marina.dutta,

It would be because of in_Config is null. Check if your workflow getting this actual value. Check Arguments being passed correctly.

Thanks,
Ashok :slight_smile:

1 Like

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