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

Cannot bind argument to parameter 'alertUid' because it is null #1

Open
burtonmsp opened this issue Sep 3, 2022 · 0 comments
Open

Comments

@burtonmsp
Copy link

Hi,
Having an issue with live alerts as shown below.

If I replace the Datto code [alert_uid] with the ID of an active alert and run a test, it works fine.

PositionMessage : At C:\home\site\wwwroot\Modules\CoreHelper.psm1:372 char:38
+ $Alert = Get-DrmmAlert -alertUid $AlertID
+ ~~~~~~~~
PSScriptRoot : C:\home\site\wwwroot\Modules
PSCommandPath : C:\home\site\wwwroot\Modules\CoreHelper.psm1
CommandOrigin : Internal
ScriptStackTrace : at Get-AlertEmailBody, C:\home\site\wwwroot\Modules\CoreHelper.psm1: line 372
at , C:\home\site\wwwroot\Receive-Alert\run.ps1: line 10

Exception: Cannot bind argument to parameter 'alertUid' because it is null.

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

1 participant