This method can work when it separate from my workflow.But when i try to combine into my workflow, it cant work. Pls help me to solve this matter. Thanks
Can you try printing the two variables before this Move File activity, using message box or write line activity? Or run the workflow in debug mode to know the values of the variables at this instance.
Also note that while naming files, certain special characters are not allowed, like comma, slash, etc. Make sure your variables don’t contain any of these.
@kaderms sorry for late reply. Before move file, i use message box and put variable inside and the result show like this.
Which this two variable are start date and end date.My variable dont have those.
File naming conventions in Windows doesn’t allow the below characters as a part of the file name.
So you will have to remove any of these special characters in your file name variables.
Also, can you share what is the actual file name of the source file that you are trying to move? Can you locate the file on disk and share the filename as it is saved on the disk?
@kaderms i already solve this problem. i should replace / to - like this “c:\Timesheet\”+ valstart.Replace(“/”,“-”).Trim + valend.Replace(“/”,“-”).Trim +“.xlsm”