---
schema_version: "1"
id: b1d30aa3aa06003d4b9d2546aba46c64ed2e0c0d3d0c00fdb6b9bd40394fff92
title: Deploy Metadata for Program Management Console
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/energy_pmc_deploy_salesforce_datapacks.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.energy_pmc_deploy_salesforce_datapacks.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2b8d8246123cafa725c8e45ca39dd1466891aa138b2553ed2adf8642565a3f39
description: Download the Program Management Console SFDX datapacks and deploy them to your Salesforce org.
products:
  - Energy and Utilities
release: "264"
---
# Deploy Metadata for Program Management Console

Download the Program Management Console SFDX datapacks and deploy them to your Salesforce org.

In order to deploy the metadata, you must configure Lightning Web Components, and download Visual Code Studio (VS Code), a free, open-source code editor.

1. Add the necessary URLs for Lightning Web Components (LWCs).
    1. From the App Launcher, find and select **OmniStudio FlexCards**.
    2. Click the **Warnings** icon, and then copy the two URLs from the Warnings window.
        
        If no warnings appear, skip updating the remote site settings and move to the next step.
    3. From Setup, in the Quick Find box, enter Remote Site Settings, and then select **Remote Site Settings**.
    4. Click **New Remote Site** and individually create these LWC remote sites with the URLs that you copied:
        
        <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
                  <colgroup>
                    <col style="width:50%">
                    <col style="width:50%">
                  </colgroup>
                  <thead class="slds-text-title_caps ">
                    <tr class="">
                      <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d75858e98">Remote Site Name</th>
                      <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d75858e101">Remote Site URL</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr class="">
                      <td data-label="Remote Site Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d75858e98 ">LWC 1</td>

                      <td data-label="Remote Site URL" class="slds-cell-wrap" style="vertical-align:top;" headers="d75858e101 ">
                        <p>
                          <code>https://my-domain-name--vlocity-cmt.visualforce.com</code>
                        </p>
                        <p style="margin-bottom:0;">Example: https://core-web-82002--vlocity-cmt.visualforce.com</p>
                      </td>

                    </tr>
                    <tr class="">
                      <td data-label="Remote Site Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d75858e98 ">LWC 2</td>

                      <td data-label="Remote Site URL" class="slds-cell-wrap" style="vertical-align:top;" headers="d75858e101 ">
                        <p>
                          <code>https://my-domain-name.lightning.force.com</code>
                        </p>
                        <p style="margin-bottom:0;">Example: https://core-web-82002.lightning.force.com</p>
                      </td>

                    </tr>
                  </tbody>
                </table>
    5. Save your changes.
2. Download and install Visual Studio Code. See [Visual Studio Code](https://code.visualstudio.com/).
3. Install Salesforce Extension Pack in Visual Studio Code:
    1. Launch Visual Studio Code.
    2. Click the **Extensions** icon.
    3. Search for Salesforce Extension Pack and click **Install**.
4. Create a project in Visual Studio Code:
    1. Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS) to make the command palette appear.
    2. Type and select **SFDX: Create Project with Manifest**.
    3. Select **Standard**.
    4. Enter any project name, press enter.
    5. Select a location on your computer for the project files to go.
    6. Click **Create Project**.
5. Authenticate your target org:
    1. Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).
        
        The command palette opens.
    2. Enter SFDX: Authorize an Org, and then select **SFDX: Authorize an Org**.
    3. To accept the default login URL, press **Enter**.
    4. Enter an alias.
        
        For example, enter Astro.
        
        A new Salesforce login window opens in a browser.
    5. Log in to your target org.
    6. When you are asked to grant access to the connected app, click **Allow**, and then close the browser window.
        
        The command-line terminal window shows a message when the authentication is successful.
6. Download and extract the metadata file.
    1. Download this datapack to your local desktop: [EUC\_ProgramBnftAsgntAggregation\_Sfdx\_Datapacks](https://resources.docs.salesforce.com/rel1/doc/en-us/static/misc/EUC_ProgramBnftAsgntAggregation_Sfdx_Datapacks.zip).
    2. Create a ProgramBnftAsgntAggregation\_Sfdx folder in your local desktop.
    3. Extract EUC\_ProgramBnftAsgntAggregation\_Sfdx\_Datapacks to the ProgramBnftAsgntAggregation\_Sfdx folder
7. In the folder, create the file **sfdx-project.json** which contains the following code:
    
    ```
    {
        "packageDirectories": [
            {
                "path": "salesforce_sfdx",
                "default": true
            }
        ],
        "namespace": "",
        "sfdcLoginUrl": "https://login.salesforce.com",
        "sourceApiVersion": "59.0"
    }
    ```
8. Move the **package.xml** file from salesforce\_sfdx/main/default to the ProgramBnftAsgntAggregation\_Sfdx folder.
    
    ![ProgramBnftAsgntAggregation\_Sfdx folder](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-energy_utilities-264-0-0-production-enus/520849e5-9b41-4bae-b97b-d269cc2fce83/energy_utilities/images/static_resources/pmc_sfdx_folder.png)
9. Open ProgramBnftAsgntAggregation\_Sfdx in Visual Studio Code.
10. Deploy components from to your target org.
    1. In VSCode, in the left panel, right-click the salesforce-sfdx folder.
        
        For Mac devices, CMD + click the salesforce-sfdx folder.
    2. Click **SFDX: Deploy Source to Org**.
        
        If deployment fails for any component, select the components that failed and deploy them individually.

## Troubleshoot Metadata Deployment for Program Management Console

Troubleshoot issues that can occur when you deploy Program Management Console metadata.

### Error deploying batchCalcJobDefinitions and flows metadata

Visual Studio Code shows an error that reads:

```
salesforce_sfdx/main/default/batchCalcJobDefinitions/Clean_Energy_Program_Benefit_Assignment_Aggregator.batchCalcJobDefinition-meta.xml   								You don't have the required Data Pipelines permission to open Data Processing Engine Builder. Ask your Salesforce admin for help.      
salesforce_sfdx/main/default/flows/Clean_Energy_Program_Benefit_Assignment_Aggregation_Scheduler.flow-meta.xml                           			Clean_Energy_Program_Benefit_Assignment_Aggregator (Action) - We can't find an action with the name and action type that you specified.
```

The error may be caused if Data Pipeline is not enabled in your org.

To solve this problem, from Setup, in the Quick Find box, enter Data Pipelines, and then select **Get Started**. To find Data Pipelines in Setup, the Data Pipelines Base User permission set must be assigned to you. Enable **Data Pipelines**.

### Error Deploying batchCalcJobDefinitions and Flows metadata

Visual Studio Code shows an error when flexipages deploy that reads

```
salesforce_sfdx/main/default/batchCalcJobDefinitions/Clean_Energy_Program_Benefit_Assignment_Aggregator.batchCalcJobDefinition-meta.xml  The name field in the IndicatorDefinition.Status BatchCalcJobDatasourceField type node has an issue: We couldn't save this definition because the related object IndicatorDefinition either doesn't exist in the source object or the 'Integration User' user doesn't have access to it. Specify another object and try again.
salesforce_sfdx/main/default/flows/Clean_Energy_Program_Benefit_Assignment_Aggregation_Scheduler.flow-meta.xml                           Clean_Energy_Program_Benefit_Assignment_Aggregator (Action) - We can't find an action with the name and action type that you specified.  
```

The error may be caused because because the Analytics Integration user doesn't have the required access to the objects used in the Data Processing Engine (DPE) definition.

To solve this problem,

- Deploy Clean Energy Program Analytics Integration User permission set present in the zip.
- Assign these permission set licenses to the Analytics Integration user:
    - Energy & Utilities Cloud Program
    - Outcome Management
    - Program and Benefit Management
- Assign the Clean Energy Program Analytics Integration User permission set deployed in the first step to the Analytics Integration user.