I am stuck with ReportfilePath which is navigating i.e. getting saved under incorrect path
ReportFilePath is given as path.Combine(Environment.CurrentDirectory,in_ReportsDownloadPath,“Report-” +in_TaxID+“-”+ in_Year.ToString + “-” + Month+“.csv”)
While Debugging observed that ReportFilePath value is becoming null and slashes are added in in_ReportsDownloadPath
My issue is Path.Combine is not working when I checked individually. When I am using path.combine of environment.currentdirectory with other value then ReportFilePath actually not combining the value of current directory. Its getting saved in some other directory
As said in the above, I restarted my workflow but still its same. And also to have trail version, I have written small steps to check path.combine working but its not. PFB
Send me your path which is you assigned to this variable,
“in_ReportsDownloadPath”?..
If any back slash is present at the end of the “in_ReportsDownloadPath”, remove that.
Slashes are added in in_ReportsDownloadPath. Not sure why its being added everytime and also path.combine is not combing the path of current direct directory with in_ReportsDownloadPath
Thank you very much. It worked now and its pasted correct value.
1 more small help . Merge Datatable is showing now Object reference not set to instance of an object
How you created the “dt_YearlyReport” datatable in the workflow???..
Whether you created the “dt_YearlyReport” in the assign as,
“dt_YearlyReport = new Datatable”