Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MikkyD2 opened this issue Jul 14, 2023 · 3 comments
Open

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

MikkyD2 opened this issue Jul 14, 2023 · 3 comments

Comments

@MikkyD2
Copy link

MikkyD2 commented Jul 14, 2023

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;

@albertospelta
Copy link

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

@MikkyD2
Copy link
Author

MikkyD2 commented Jul 18, 2023

Thank you

@otykier
Copy link
Collaborator

otykier commented Sep 6, 2023

This should now be fixed in 2.20.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants