Writing a string variable by combining string variables - one variable not writing

I am currently writing a code that writes a file name using 2 string variables and some custom text as shown below:

FolderPath_BankStatementBot + “\JPM-Bank-TRILON-”+ DateStringVar +“.zip”

The file gets written as “JPM-Bank-TRILON-.zip”

DateStringVar is not a null value so I do not understand why it is writing it as such.

I even wrote the DateStringVar to a log successfully before this part of the code so I know that it is not null.

This has happened to me recently with another example but never before this.

Any suggestions on how to fix this?

1 Like