Scripts icon indicating copy to clipboard operation
Scripts copied to clipboard

Running a script via the commanline and -S is not working

Open MikkyD2 opened this issue 2 years ago • 3 comments

I can run a C# script in TE2 or TE3 with no problem. When invoking the same script via the command line I get an error as follows. C# is all new to me

The script also works from TE2 when I open the tool from the command line using the SPN so I doubt its access related.

Executing script 0... Script compilation errors: Error CS1024 on line 1, col 2: Preprocessor directive expected Error CS1025 on line 1, col 4: Single-line comment or end-of-line expected

Script has LF as EOL. Error occurirng at line 2. I'll dig around and see if I need to install anything else that comes built into TE

#r "Microsoft.AnalysisServices.Core.dll" using ToM = Microsoft.AnalysisServices.Tabular;

MikkyD2 avatar Jul 14 '23 12:07 MikkyD2

@MikkyD2 The current version seems to require CRLF as EOL. Replacing LF to CRLF in the script should fix the error.

albertospelta avatar Jul 18 '23 14:07 albertospelta

Thank you

MikkyD2 avatar Jul 18 '23 15:07 MikkyD2

This should now be fixed in 2.20.0!

otykier avatar Sep 06 '23 13:09 otykier