How to fix this issue Install-Package : No match was found for the specified search criteria and package name 'Microsoft.AnalysisServices.retail.amd64'. Try Get-PackageSource to see all available registered package sources.

Mayur Banale 0 Reputation points
2023-03-25T07:39:45.58+00:00

While I was working on the PowerShell to create custom partition on my power bi services dataset I'm facing the following issue tried many ways to resolve this but couldn't able to find the solution.

Install-Package : No match was found for the specified search criteria and package name 'Microsoft.AnalysisServices.retail.amd64'. Try

Get-PackageSource to see all available registered package sources.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,697 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Syed Shiraz Shahid 275 Reputation points
    2023-03-25T10:53:15.6266667+00:00

    This error message usually indicates that the package you're trying to install cannot be found in any of the registered package sources.

    Try the following steps:

    1. Verify the package name: Double-check the spelling and casing of the package name to ensure that it is correct.
    2. Check the package source: Run the Get-PackageSource command to view all the available package sources in your system. Make sure that the package source that contains the package you're trying to install is included in the list.
    3. Add the package source: If the package source is not included in the list, you can add it using the Register-PackageSource command. For example, to add the official Microsoft package source, you can run the following command:
        Register-PackageSource -Name "NuGet.org" -Location "https://api.nuget.org/v3/index.json" -ProviderName "NuGet"
        ```
        
        
    1. Refresh the package cache: Run the **`Update-PackageSource`** command to refresh the package cache and make sure that the newly added package source is available for package installation.
    1. Install the package: Once you have verified the package name and added the package source, you can try installing the package again using the **`Install-Package`** command. For example:
        
        
    ```powershell
        Install-Package Microsoft.AnalysisServices.retail.amd64
        ```
        
        
    If these steps do not resolve the issue, you may need to search for an alternative package or contact the package maintainer for further assistance.
    
    
    0 comments No comments