[SalesForce] Deploy Dashboards and Reports using Migration Tool

I can't find a way to deploy Reports and Dashboards to a new organization. It's complaining it can't find the reports folder. And there's a very unhelpful error with the folder:

reports/Public_Reports-meta.xml -- Error: An unexpected error occurred. Please include this ErrorId if you contact support: 376420038-11797 (1290830229)
reports/Public_Reports/New_Total_Revenue_per_Client2.report -- Error: Cannot find folder:Public_Reports

Is there a particular configuration I need to set the folder so that the migration tool can deploy it?
Here's my Public_Reports-meta.xml:

<?xml version="1.0" encoding="UTF-8"?>
<ReportFolder xmlns="http://soap.sforce.com/2006/04/metadata">
    <folderShares>
        <accessLevel>View</accessLevel>
        <sharedTo>AllInternalUsers</sharedTo>
        <sharedToType>Organization</sharedToType>
    </folderShares>
    <name>Public Reports</name>
</ReportFolder>

Best Answer

enter image description here

What i have previously observed is that usually if source org has folder sharing enabled and destination does not have ,we get this unexpected error .Certainly something sfdc needs to take care

Quick fix for the same is to check the folder sharing in destination if source has this and then try deploying the same .

Related Topic