cubewise-code / bedrock

Bedrock is TM1 Best Practice assets built from years of TM1 experience
Other
79 stars 74 forks source link

Exported file name in lower cases on Linux when using cube copy process #322

Closed macsir closed 2 years ago

macsir commented 2 years ago

Describe the bug Exported file can't be found when importing using cube copy process on Linux

Version

Additional context All tm1 files including the temporary exported files are in lower-case file names. Especially when the cube name has upper cases, the import process can't find the proper file name. pCube = LOWER(pCube); can fix the bug when on Linux.


If( Scan('/', GetProcessErrorFileDirectory)>0);
#  sOS = 'Linux';
  sOSDelim = '/';
  pCube = LOWER(pCube);
Else;
#  sOS = 'Windows';
  sOSDelim = '\';
EndIf;

## File location for indirect data copy
cDir    = '.' | sOSDelim;
cFileName = pCube | cTimeStamp | cRandomInt | '.csv';
cFile   = cDir | cFileName;
cTitleRows = 1;
cDelimiter = ',';
cQuote = '"';```

I can do the PR if you like. Thanks.
lotsaram commented 2 years ago

Hi @macsir thanks for noticing this. Yes if you would like to create a pull request with the fix you're more than welcome to :-D