Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force:source:deploy failing in 7.116 - "Report was named in package.xml, but was not found in zipped directory" #1165

Closed
daveespo opened this issue Sep 3, 2021 · 5 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@daveespo
Copy link

daveespo commented Sep 3, 2021

Summary

Starting with 7.116 (this morning), my CI pipeline is failing with "Deploy failed" (which is a terribly unhelpful message, BTW)

Without getting too long-winded here, I want to express my disappointment in the massive number of regressions that have crept into the CLI from week-to-week. Thursday is our new doomsday where we hold our breath to find out if our build pipeline is still working when the new CLI hits.

Back to the issue at hand:

When I log into the org and look at the Deployment Status screen, I see the following errors (abridged for making this easier to read)

An  object  'PatronDonate_Email_Templates/RecurringDonationScheduledDonation' of  type EmailTemplate was named in package.xml, but was not found in zipped  directory
An object 'Contact_Account_Reports/All_Accounts' of type Report was named in package.xml, but was not found in zipped directory
An object 'DonationDashboards/Donation_Types_Current_Fiscal_Year' of type Dashboard was named in package.xml, but was not found in zipped directory

I have confirmed that the deployment is indeed missing these metadata files.

In 7.114, the deployment was 778 metadata items. In 7.116, it's 726 metadata items.

This issue has similarity to #1112 but the error being reported on that issue is not the one I'm seeing.

Possibly noteworthy: I have multiple package directories specified in my sfdx-project.json:

{
  "namespace": "PatronDonate",
  "packageDirectories": [
    {"path": "sfdx-common/force-app-common"},
    {
      "default": true,
      "path": "force-app"
    },
    {"path": "sfdx-common/force-app-patrondonate"}
  ],
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "49.0"
}

I ran the deploy with the SFDX_MDAPI_TEMP_DIR set and inspected the MDAPI deploy directory. It appears as though any Reports, Dashboards or EmailTemplates that are in Folders (i.e. Folders within Salesforce, not just reorganized source folders) are being omitted.

This is the contents of the mdapi ZIP file (abridged again, just to show the email, dashboards and reports directories)

./dashboards
./dashboards/DonationDashboards-meta.xml
...
./email
./email/PatronDonate_Email_Templates-meta.xml
...
./reports
./reports/Contact_Account_Reports-meta.xml
./reports/DonationReports-meta.xml
./reports/Reports_for_Dashboards-meta.xml

This is the content of the force-app folder (the sfdx-common/force-app-common and sfdx-common/force-app-patrondonate do not contain any email templates, reports or dashboards.

...
./dashboards
./dashboards/DonationDashboards
./dashboards/DonationDashboards/Complete_Donation_Overview.dashboard-meta.xml
./dashboards/DonationDashboards/Donations_by_Month.dashboard-meta.xml
./dashboards/DonationDashboards/Donation_Campaign_Overview.dashboard-meta.xml
./dashboards/DonationDashboards/Donation_Fund_Overview.dashboard-meta.xml
./dashboards/DonationDashboards/Donation_History_Overview.dashboard-meta.xml
./dashboards/DonationDashboards/Donation_Types_Current_Fiscal_Year.dashboard-meta.xml
./dashboards/DonationDashboards/Donation_Types_Overview.dashboard-meta.xml
./dashboards/DonationDashboards.dashboardFolder-meta.xml
...
./email
./email/PatronDonate_Email_Templates
./email/PatronDonate_Email_Templates/DonationThankYou.email
./email/PatronDonate_Email_Templates/DonationThankYou.email-meta.xml
./email/PatronDonate_Email_Templates/RecurringDonationCreation.email
./email/PatronDonate_Email_Templates/RecurringDonationCreation.email-meta.xml
./email/PatronDonate_Email_Templates/RecurringDonationFirstDonation.email
./email/PatronDonate_Email_Templates/RecurringDonationFirstDonation.email-meta.xml
./email/PatronDonate_Email_Templates/RecurringDonationPayment.email
./email/PatronDonate_Email_Templates/RecurringDonationPayment.email-meta.xml
./email/PatronDonate_Email_Templates/RecurringDonationScheduledDonation.email
./email/PatronDonate_Email_Templates/RecurringDonationScheduledDonation.email-meta.xml
./email/PatronDonate_Email_Templates.emailFolder-meta.xml
...
./reports
./reports/Contact_Account_Reports
./reports/Contact_Account_Reports/All_Accounts.report-meta.xml
./reports/Contact_Account_Reports/All_Businesses.report-meta.xml
./reports/Contact_Account_Reports/All_Contacts.report-meta.xml
./reports/Contact_Account_Reports/All_Foundations.report-meta.xml
./reports/Contact_Account_Reports/All_Government.report-meta.xml
./reports/Contact_Account_Reports/All_Households.report-meta.xml
./reports/Contact_Account_Reports/All_Individuals.report-meta.xml
./reports/Contact_Account_Reports/All_Nonprofits.report-meta.xml
./reports/Contact_Account_Reports/Birthday_This_Week.report-meta.xml
./reports/Contact_Account_Reports/Campaign_Members.report-meta.xml
./reports/Contact_Account_Reports.reportFolder-meta.xml
./reports/DonationReports
./reports/DonationReports/All_Donations.report-meta.xml
./reports/DonationReports/All_Donations_by_Account.report-meta.xml
./reports/DonationReports/All_Donations_by_Fund.report-meta.xml
./reports/DonationReports/All_Donations_by_Type.report-meta.xml
./reports/DonationReports/Average_Donation_Amount_by_Donation_Type.report-meta.xml
./reports/DonationReports/Average_Donation_Amount_by_Fund.report-meta.xml
./reports/DonationReports/Avg_Donation_Amount_All_Time.report-meta.xml
./reports/DonationReports/Avg_Donation_Amount_by_Campaign_Source.report-meta.xml
./reports/DonationReports/Avg_Donation_Amount_by_Type_Current_FY.report-meta.xml
./reports/DonationReports/Donations_by_Type_Current_FY.report-meta.xml
./reports/DonationReports/Donations_in_Last_90_Days.report-meta.xml
./reports/DonationReports/Donation_Amounts_by_Calendar_Month.report-meta.xml
./reports/DonationReports/Donation_Amount_Distribution.report-meta.xml
./reports/DonationReports/Donation_History_by_Campaign_Source.report-meta.xml
./reports/DonationReports/Donation_History_by_Contact.report-meta.xml
./reports/DonationReports/Donation_History_by_Donor_Account.report-meta.xml
./reports/DonationReports/Donation_History_by_Household.report-meta.xml
./reports/DonationReports/Donation_History_by_Individuals.report-meta.xml
./reports/DonationReports/Donation_History_by_Organization.report-meta.xml
./reports/DonationReports/Donation_History_Record_Count.report-meta.xml
./reports/DonationReports/Donation_Totals_by_Calendar_Month.report-meta.xml
./reports/DonationReports/Donation_Totals_by_Fiscal_Year.report-meta.xml
./reports/DonationReports/Most_Generous_Accounts.report-meta.xml
./reports/DonationReports.reportFolder-meta.xml
./reports/Reports_for_Dashboards
./reports/Reports_for_Dashboards/Dashboard_Donation_History_by_Contact.report-meta.xml
./reports/Reports_for_Dashboards/Donation_Count_by_Campaign_Source.report-meta.xml
./reports/Reports_for_Dashboards/Donation_Count_by_Fund.report-meta.xml
./reports/Reports_for_Dashboards/Donation_Count_by_Type.report-meta.xml
./reports/Reports_for_Dashboards/Donation_Count_by_Type_Current_FY.report-meta.xml
./reports/Reports_for_Dashboards/Number_of_Donations_Monthly.report-meta.xml
./reports/Reports_for_Dashboards.reportFolder-meta.xml

This is my package.xml:

<types>
        <members>DonationDashboards</members>
        <members>DonationDashboards/Complete_Donation_Overview</members>
        <members>DonationDashboards/Donation_Campaign_Overview</members>
        <members>DonationDashboards/Donation_Fund_Overview</members>
        <members>DonationDashboards/Donation_History_Overview</members>
        <members>DonationDashboards/Donation_Types_Current_Fiscal_Year</members>
        <members>DonationDashboards/Donation_Types_Overview</members>
        <members>DonationDashboards/Donations_by_Month</members>
        <name>Dashboard</name>
    </types>
...
    <types>
        <members>PatronDonate_Email_Templates</members>
        <members>PatronDonate_Email_Templates/DonationThankYou</members>
        <members>PatronDonate_Email_Templates/RecurringDonationCreation</members>
        <members>PatronDonate_Email_Templates/RecurringDonationFirstDonation</members>
        <members>PatronDonate_Email_Templates/RecurringDonationPayment</members>
        <members>PatronDonate_Email_Templates/RecurringDonationScheduledDonation</members>
        <name>EmailTemplate</name>
    </types>
...
    <types>
        <members>Contact_Account_Reports</members>
        <members>Contact_Account_Reports/All_Accounts</members>
        <members>Contact_Account_Reports/All_Businesses</members>
        <members>Contact_Account_Reports/All_Contacts</members>
        <members>Contact_Account_Reports/All_Foundations</members>
        <members>Contact_Account_Reports/All_Government</members>
        <members>Contact_Account_Reports/All_Households</members>
        <members>Contact_Account_Reports/All_Individuals</members>
        <members>Contact_Account_Reports/All_Nonprofits</members>
        <members>Contact_Account_Reports/Birthday_This_Week</members>
        <members>Contact_Account_Reports/Campaign_Members</members>
        <members>DonationReports</members>
        <members>DonationReports/All_Donations</members>
        <members>DonationReports/All_Donations_by_Account</members>
        <members>DonationReports/All_Donations_by_Fund</members>
        <members>DonationReports/All_Donations_by_Type</members>
        <members>DonationReports/Average_Donation_Amount_by_Donation_Type</members>
        <members>DonationReports/Average_Donation_Amount_by_Fund</members>
        <members>DonationReports/Avg_Donation_Amount_All_Time</members>
        <members>DonationReports/Avg_Donation_Amount_by_Campaign_Source</members>
        <members>DonationReports/Avg_Donation_Amount_by_Type_Current_FY</members>
        <members>DonationReports/Donation_Amount_Distribution</members>
        <members>DonationReports/Donation_Amounts_by_Calendar_Month</members>
        <members>DonationReports/Donation_History_Record_Count</members>
        <members>DonationReports/Donation_History_by_Campaign_Source</members>
        <members>DonationReports/Donation_History_by_Contact</members>
        <members>DonationReports/Donation_History_by_Donor_Account</members>
        <members>DonationReports/Donation_History_by_Household</members>
        <members>DonationReports/Donation_History_by_Individuals</members>
        <members>DonationReports/Donation_History_by_Organization</members>
        <members>DonationReports/Donation_Totals_by_Calendar_Month</members>
        <members>DonationReports/Donation_Totals_by_Fiscal_Year</members>
        <members>DonationReports/Donations_by_Type_Current_FY</members>
        <members>DonationReports/Donations_in_Last_90_Days</members>
        <members>DonationReports/Most_Generous_Accounts</members>
        <members>Reports_for_Dashboards</members>
        <members>Reports_for_Dashboards/Dashboard_Donation_History_by_Contact</members>
        <members>Reports_for_Dashboards/Donation_Count_by_Campaign_Source</members>
        <members>Reports_for_Dashboards/Donation_Count_by_Fund</members>
        <members>Reports_for_Dashboards/Donation_Count_by_Type</members>
        <members>Reports_for_Dashboards/Donation_Count_by_Type_Current_FY</members>
        <members>Reports_for_Dashboards/Number_of_Donations_Monthly</members>
        <name>Report</name>
    </types>

System Information

Even though the version info below is from Windows, this same problem happens on Linux using the latest tarball install.

{
        "cliVersion": "sfdx-cli/7.116.2",
        "architecture": "win32-x64",
        "nodeVersion": "node-v14.17.5",
        "pluginVersions": [
                "@oclif/plugin-autocomplete 0.3.0 (core)",
                "@oclif/plugin-commands 1.3.0 (core)",
                "@oclif/plugin-help 3.2.2 (core)",
                "@oclif/plugin-not-found 1.2.4 (core)",
                "@oclif/plugin-plugins 1.10.1 (core)",
                "@oclif/plugin-update 1.4.0-3 (core)",
                "@oclif/plugin-warn-if-update-available 1.7.0 (core)",
                "@oclif/plugin-which 1.0.3 (core)",
                "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
                "@salesforce/sfdx-trust 3.6.0 (core)",
                "alias 1.1.10 (core)",
                "apex 0.2.8 (core)",
                "auth 1.7.1 (core)",
                "config 1.2.24 (core)",
                "custom-metadata 1.0.12 (core)",
                "data 0.6.1 (core)",
                "etcopydata 0.6.4-Beta (beta)",
                "generator 1.1.7 (core)",
                "limits 1.2.1 (core)",
                "org 1.7.0 (core)",
                "salesforce-alm 52.3.1 (core)",
                "schema 1.0.8 (core)",
                "sfdx-cli 7.116.2 (core)",
                "shane-sfdx-plugins 4.43.0",
                "├─ @mshanemc/plugin-streaming 1.1.7",
                "└─ @mshanemc/sfdx-sosl 1.1.0",
                "source 1.0.12 (core)",
                "telemetry 1.2.3 (core)",
                "templates 52.1.0 (core)",
                "user 1.4.0 (core)"
        ],
        "osVersion": "Windows_NT 10.0.19042"
}
@daveespo daveespo added the investigating We're actively investigating this issue label Sep 3, 2021
@github-actions
Copy link

github-actions bot commented Sep 3, 2021

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9882522

@nvuillam
Copy link

nvuillam commented Sep 14, 2021

Problem also described here -> https://salesforce.stackexchange.com/questions/357509/unable-to-convert-reports-from-sfdx-sources-to-metadatas-forcesourceconvert
All CI jobs are broken, please help !

@daveespo
Copy link
Author

We forced our CI back to 7.114 and that has resolved the issue for now

@zerkz
Copy link

zerkz commented Sep 20, 2021

You can fix by updating to the release candidate ahead of time from the stable release (which looks to be released on Sept 24th).

https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md#sept-24-2021

run sfdx update stable-rc

@mshanemc mshanemc closed this as completed Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

5 participants