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

PowerShellScript/Copy-PowerBIReportContentToBlankPBIXFile.ps1 #11

Open
olivierlenard opened this issue Jan 30, 2024 · 3 comments
Open

Comments

@olivierlenard
Copy link

Hi James,

Your script was a real help for my daily work with colleagues creating reports online before realising the need the desktop version for advanced features.
Lately I have the following error running the script :

On Characters:184 : 25
+   $OutFile = !!$OutFile ? $OutFile : "$($sourceReportName)_Clone.pbix ...
+                         ~
Unexpected Token « ? » in the expression or instruction.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

Did you already had it, any idea ?

Thanks !

@olivierlenard
Copy link
Author

Hi all,

Any clue ?

Best !

Olivier LN

@JamesDBartlett3
Copy link
Owner

Hi, @olivierlenard, that looks like an error you might encounter if you're using a version of PowerShell that does not recognize the ternary operator. Are you using the latest version of PowerShell 7?

@JamesDBartlett3
Copy link
Owner

Hi @olivierlenard, can you confirm that this issue has been resolved by upgrading to PowerShell version 7+?

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

No branches or pull requests

2 participants