Edit

Share via


Uninstall Finance insights

Note

Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.

This article explains how to uninstall Finance insights from your Dynamics 365 Finance environment.

Overview

You may need to uninstall Finance insights if you:

  • Want to opt out of the Finance insights 1.0.0.x -> 1.2.x update before your scheduled update date
  • No longer need Finance insights capabilities
  • Are troubleshooting issues and need to perform a clean reinstall

Uninstalling Finance insights permanently deletes:

  • All customer payment prediction models
  • All cash flow forecast models
  • Historical prediction data
  • All Finance insights configurations

This action can't be undone. Make sure to back up any data you need before uninstalling.

Prerequisites

Before uninstalling Finance insights, ensure you have:

  • System administrator access to your Dynamics 365 finance and operations environment
  • Access to Power Platform admin center

Uninstall Finance insights 1.0.0.x

Two options are available for uninstalling Finance insights 1.0.0.x: code-based uninstallation and manual uninstallation.

Step 1: Disable Finance insights features

Before uninstalling, disable Finance insights features in your environment:

  1. Start by navigating to the Finance insights set up page within the Dynamics 365 finance and operations portal. Do this by:
    • Opening Finance and Operations
    • Searching for "Finance insights" and selecting one of the setup payments such as customer payment predictions or cash flow forecast
  2. In each setup page, disable the Enable feature switch for any active model. Doing so helps to clean up any legacy metadata from the current version.

Step 2: Uninstall Finance insights solutions

Choose one of the following uninstallation methods:

Option 1: Code-based uninstallation

  1. Sign in to the Microsoft Power Platform admin center by using Dataverse admin credentials.

  2. Select the environment where you want to uninstall Finance insights.

  3. Select the Environment URL that is provided in the details. You're redirected to the sign-in page for the Dataverse environment.

  4. Open your browser's developer tools by selecting Ctrl+Shift+I or going to More tools > Developer tools. Then select the Console tab to open the developer console.

  5. Copy the following JavaScript code, and paste it into the developer console to start the uninstallation process. The process takes 30 minutes approximately.

    // Get the current org URL
    const ORG = window.location.hostname;
    const WEB_API = `https://${ORG}/api/data/v9.2`;
    const SOLUTIONS = [
       "msdyn_FinanceInsightsServiceAnchor",
       "msdyn_FinanceInsightsSolutionAnchor",
       "msdyn_FinanceInsightsIdentities_PROD",
       "msdyn_FinanceInsightsAISolution",
       "msdyn_D365FNOIntegrationAnchor",
       "msdyn_D365FNOIntegration",
       "msdyn_FinanceInsightsServicePermissions_PROD",
       "msdyn_FinanceInsightsService",
       "msdyn_FnoMDLFolderProd"
    ];
    
    // Get all solutions
    let _getSolutions = () => {
        var requestOptions = {
            method: "GET",
        };
        return fetch(
            `${WEB_API}/solutions?$filter=(isvisible%20eq%20true)&$select=solutionid,friendlyname,uniquename`,
            requestOptions
        ).then((response) => response.json());
    };
    
    // Delete the solution by solution ID
    let _deleteSolution = (solutionid) => {
        var requestOptions = {
            method: "DELETE",
        };
        return fetch(`${WEB_API}/solutions(${solutionid})`, requestOptions);
    };
    let start = async () => {
        console.info("Uninstalling Finance Insights solutions");
        let installedSolutions = (await _getSolutions()).value;
    
        // Sort the installed Finance Insights solutions 
         let installedFinanceInsightsSolutions = installedSolutions
            .filter((i) => SOLUTIONS.indexOf(i.uniquename) > -1)
            .sort(
                (i, j) =>
                    SOLUTIONS.indexOf(i.uniquename) - SOLUTIONS.indexOf(j.uniquename)
            );
        for (let solution of installedFinanceInsightsSolutions) {
            console.info(`Removing solution ${solution.friendlyname}`);
            await _deleteSolution(solution.solutionid);
        }
        console.info("Finance Insights Solutions removed successfully");
    };
    
    start();
    
  6. If the operation is successful, you receive the following message: "Finance insights solutions removed successfully."

Option 2: Manual uninstallation

You can manually uninstall Finance insights through the Power Platform admin center. The solutions must be manually deleted in the following order:

  1. Finance insights service anchor
  2. Finance insights solution anchor
  3. Finance insights identities PROD
  4. Finance insights AI solution
  5. Dynamics 365 finance and operations insights anchor
  6. Dynamics 365 finance and operations insights
  7. Finance insights service permissions PROD
  8. Finance insights service
  9. Dynamics 365 finance and operations MDL folder prod

To delete each of the solutions, follow these steps:

  1. In Power Apps, on the left navigation pane, select Solutions.
  2. Select the solution to delete, and then select Delete.
  3. Select Delete again to confirm the operation.
  4. Wait for the Deleting message box to disappear.

Deleting all of the solutions requires approximately 30 minutes. If the operation is successful, you receive the following message: "Successfully deleted solution."

Step 3: Uninstall Business performance analytics (optional, Finance insights 1.2.x only)

Important

Only uninstall Business performance analytics if you're not using it otherwise. If you're unsure, keep Business performance analytics installed.

If you're using Finance insights 1.2.x and you're not using Business performance analytics for other purposes, you can optionally uninstall Business performance analytics to free up Dataverse storage.

For more information about uninstalling Business performance analytics, see Uninstall Business performance analytics.

Verification

After uninstalling, verify that Finance insights have been removed:

  1. In Dynamics 365 Finance, navigate to Credit and collections workspace.
  2. Verify that payment prediction tiles are no longer visible.
  3. Navigate to Cash and bank management workspace.
  4. Verify that cash flow forecast tiles are no longer visible.
  5. In LCS, verify that Finance insights add-in is no longer listed under environment add-ins.

Reenabling Finance insights

If you need to reinstall Finance insights after uninstalling:

For Finance insights 1.2.x:

  • Follow the installation instructions in Configuration for Finance insights.
  • You'll need to retrain all prediction models.
  • Historical prediction data will not be recoverable.

For Finance insights 1.0.0.x:

  • Finance insights 1.0.0.x is deprecated and won't be available after the Export to Data Lake service is discontinued.

Impact of uninstalling

Data loss - uninstalling Finance insights results in permanent deletion of:

  • All trained prediction models (customer payment predictions, cash flow forecasts).
  • Historical prediction results.
  • Model training history.
  • AI Builder credit usage history specific to Finance insights.
  • Finance insights configuration settings.

After uninstalling, you'll lose access to:

  • Customer payment prediction capabilities

  • Cash flow forecasting with AI predictions

  • Finance insights workspaces and tiles

  • Integration with Business performance analytics for Finance insights scenarios

  • AI Builder credits allocated to Finance insights remain available for other AI Builder scenarios

  • Dynamics 365 Finance license is unaffected

Troubleshooting

If the uninstallation fails:

  • Check that you have necessary permissions
  • Verify no active jobs or processes are using Finance insights
  • Try the uninstallation again
  • Contact Microsoft support if issues persist

If Finance insights features remain visible after uninstalling:

  • Wait up to 1 hour for cleanup to complete
  • Clear browser cache and restart browser
  • Verify all steps were completed
  • Contact Microsoft support if issues persist

For assistance with uninstalling Finance insights, contact Microsoft support and provide:

  • Environment ID and name
  • Finance insights version (1.0.0.x or 1.2.x)
  • Steps completed before encountering issues
  • Error messages or screenshots
  • Reason for uninstalling (optional)

Additional resources