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

Unable to save a working C# script as a Macro #1371

Closed
revanth-ar opened this issue Sep 18, 2024 · 2 comments
Closed

Unable to save a working C# script as a Macro #1371

revanth-ar opened this issue Sep 18, 2024 · 2 comments
Labels
template: issue Issue report created by user, needs to be triaged

Comments

@revanth-ar
Copy link

revanth-ar commented Sep 18, 2024

Description

I have a working C# script that won't save as a Macro in T3. I get the error message "Macro cannot be saved because the script contains one or more errors". The script runs fine when executed without saving as macro.

I narrowed the issue down to the var numericColumnsnew definition in the UpdateNumericColumns() function (line 183 to 185 in below code)

https://github.com/revanth-ar/T3-Scripts/blob/61f2a45b7edc989b0410fffde270104807460392/Script%20for%20creating%20Aggregated%20Measures%20for%20selected%20columns%20with%20bug.csx

Please let me know if this is a T3 bug or an issue with my code.

Tabular Editor 3 Version

3.17.1

Screenshots

No response

Steps to Reproduce

Works when running the script on a table. Save as Macro button returns an error.

Expected behavior

No response

Crash Report

No response

Windows Version

Windows 11

@revanth-ar revanth-ar added the template: issue Issue report created by user, needs to be triaged label Sep 18, 2024
@otykier
Copy link
Collaborator

otykier commented Sep 20, 2024

Hi @revanth-ar
I took the liberty to create a PR in your repo to address this issue. Hope this helps!

@revanth-ar
Copy link
Author

Thanks, Daniel. I understand it now, and your fix works great.

@mlonsk mlonsk closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: issue Issue report created by user, needs to be triaged
Development

No branches or pull requests

3 participants