0 votes

The following script in the repository (https://www.adaxes.com/script-repository/check-mailbox-size-s450.htm) is throwing an error for us today.

We are on version 3.17.23801.0 but I am pretty certain this was not throwing an error as of last week on the same version.

The error is:

[Error] You cannot call a method on a null-valued expression. Stack trace: at <ScriptBlock>, <No file>: line 7 [Error] Custom commands - Command Processor 'Custom commands' threw an exception while processing the command. Failed to get a list of efficient custom command actions. Failed to check the following condition of the 'Deprovision User' custom command: If script 'Mailbox under 49GB' returns true. You cannot call a method on a null-valued expression.

Please advise

ago by (840 points)

1 Answer

0 votes
ago by (304k points)

Hello,

Such a thing can happen in case the target object is an Exchange recipient (e.g. mail-enabled user) but does not have a mailbox. To avoid the issue, make sur that the If has an Exchange mailbox condition is present in your custom command before the script. Finally, you should have something like the following: image.png

0

This custom command is not run against accounts without a mailbox.

I've also tested just running the evaluation script alone against my user object, which most definitely has a mailbox and it still produces the null error.

0

Hello,

Are you able to view Exchange properties of the user in Adaxes Administration console? Please, post here or send us (support@adaxes.com) screenshots.

0

I just checked my object and it definitely shows the Exchange props.

However, there are these warnings (unsure if it's related, but it tracks)

[Warning] Some fields couldn't be loaded. Failed to get the mailbox usage information. ASSERT: Attempting to convert large prop tag to 32-bit form [Warning] ASSERT: Attempting to convert large prop tag to 32-bit form

image.png

0

Hello,

For troubleshooting purposes, please, enable tracing of requests sent to Exchange servers, reproduce the warnings and send us (support@adaxes.com) the log file. For information on how to enable the tracing, have a look at the following help article: https://www.adaxes.com/help/EnableExchangeRequestLogging.

Also, please, send us with a screenshot of the Multi-server environment dialog. The dialog displays how many Adaxes services you have and what their versions are. For information on how to view it, see https://www.adaxes.com/help/MultiServerEnvironment.

0

We have just started seeing the exact same issue too for all users just using the Adaxes console...... Guessing MS have changed something or are having an issue maybe? image.png

0

Hello,

According to the following forum thread, it looks like the issue is on the Microsoft side: https://learn.microsoft.com/en-us/answers/questions/5489594/get-mailboxstatistics-returning-an-error-get-mailb. We can only state that there is nothing in Adaxes itself that can cause such a behavior.

0

Microsoft advised it is a service issue and the service health dashboard can be monitored to see when it resolves.

Related questions

0 votes
1 answer

Happy Friday, Is there a built-in to get a users mailbox size (O365 mailbox) and use it as a variable in a powershell script? I know I can use Connect-ExchangeOnline, but our service account is MFA enabled so its no way to automate the login.

asked May 12 by thatcher (180 points)
0 votes
1 answer

I want to be able to create a custom action that allows, via the web interface, a user to increase the size of his/her own mailbox by say 10% or 20%. What would be the best way to go about this?

asked Jul 15, 2024 by dominik.stawny (280 points)
0 votes
1 answer

Hi, is there a chance to modify the Mailbox Size Limits report so that it also shows the current Mailbox Size and the Limit? Regards Ingemar

asked Jun 4, 2013 by ijacob (960 points)
0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4, 2024 by KEME (80 points)
0 votes
1 answer

This will run in a business rule "after creating a user" The email should be set to %firstname:lower%%lastname:lower%@mydomain. If the email isn't unique then it ... failure. This should update the emailaddress attribute in AD(not updating anything in Azure).

asked Feb 2, 2023 by mightycabal (1.1k points)
3,731 questions
3,409 answers
8,625 comments
550,184 users