What is the Powershell warning and How to get rid of this Warning??

  • WARNING: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. --> Failed to retrieve data for this request. --> Invalid class

    Thanks.

  • SQL-DBA-01 (10/5/2014)


    WARNING: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. --> Failed to retrieve data for this request. --> Invalid class

    This is a PS provider for Analysis Services. To get rid of this error try the following:

    😎

    Open SP as Administrator

    /* Unrestricted Execution policy */

    SET ExecutionPolicy UnRestreicted

    /* Import the SQLPS module */

    Import-Module SQLPS –DisableNameChecking

    /* Import the SQLAS Commandlet*/

    Import-module sqlascmdlets

    /* List SQLAS commands*/

    Get-command -module SQLASCmdlets

  • I'm getting the same error as the OP, and the above reply does not help.

    I have Sql Analysis Services installed and running. When I enter the following into PowerShell:

    import-module SqlPS -DisableNameChecking

    I get the same warning message shown in the OP.

    Any clues on what is going on here?

  • PS C:\> powershell

    Windows PowerShell

    Copyright (C) 2012 Microsoft Corporation. All rights reserved.

    PS C:\> ipmo sqlps -DisableNameChecking

    WARNING: Failed to load the 'SQLAS' extension: An exception occurred in SMO

    while trying to manage a service. --> Failed to retrieve data for this request.

    --> Invalid class

    PS SQLSERVER:\> exit

    PS C:\> powershell

    Windows PowerShell

    Copyright (C) 2012 Microsoft Corporation. All rights reserved.

    PS C:\> ipmo sqlps -WarningAction SilentlyContinue -DisableNameChecking

    PS SQLSERVER:\>

  • Note the

    "This is a PS provider for Analysis Services. To get rid of this error try the following:"

    comment

    If Analysis Services in not installed, the error will persist:-D

    Make sure it's running too or you'll get the warning below

    WARNING: The local computer does not have an active instance of Analysis Services.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply