Problem with path.combine


#1

Hi,

I need create a new variable called ReportFilePath and set its value to the path and the file name of the monthly report that is downloaded in .csv format.

The ReportFilePath is a string variable for me. And the path look like:

path.Combine(Environment.CurrentDirectory, in_ReportDownloadPath,“Report-”+in_TaxID+"-"+in_Year+"-"+month+".csv")

Error message…
error

Many thanks for help.


#2

Hi @fudi5,

Try this
path.Combine(Environment.CurrentDirectory, in_ReportDownloadPath,"Report-"+in_TaxID.ToString()+"-"+in_Year.ToString()+"-"+month.ToString()+".csv")

Regards,
Arivu


#3

Thanks a lot My Friend:)


#4

you are always welcome friend @fudi5 :slight_smile:


#5

Hi!

I tried this, but get the following error:

image

Can you help @arivu96?


#6

Hi Team,

I am getting the same error "Illegal Characters in path " while running my program I have defined the variable report file path as:
image

It is running for one month January only , then move to fetch taxid for next WIID.
Can you please help me .