Comments (1)
  1. Ashok says:

    Hello Jason,

    Upon executing the script I get the error loading the objectMicrosoft.Office.Server.UserProfiles DLL (line #8).

    See detailed error below

    *******

    new-object : Exception calling ".ctor" with "1" argument(s): "UserProfileApplicationNotAvailableException_Logging ::

    UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have fc8ff6ba-326f-48a0-8f4e-7340c0359d9f"

    At D:scriptsUserProfileServiceGet-SPUserProfileProperty.ps1:8 char:12

    + $upManager=new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigMana …

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException

       + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

    Cannot index into a null array.

    At D:scriptsUserProfileServiceGet-SPUserProfileProperty.ps1:9 char:1

    + $syncConnection=$upManager.ConnectionManager[$connectionName];

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidOperation: (:) [], RuntimeException

       + FullyQualifiedErrorId : NullArray

    You cannot call a method on a null-valued expression.

    At D:scriptsUserProfileServiceGet-SPUserProfileProperty.ps1:15 char:1

    + $properties=$upManager.GetProperties();

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidOperation: (:) [], RuntimeException

       + FullyQualifiedErrorId : InvokeMethodOnNull

    *** END of error

    How are you loading the DLL ?

    Thanks,

    Ashok

Comments are closed.

Skip to main content