Today I have been struggling trying to migrate reports and dashboards from developer organization to production. Looks like we can't deploy dashboard without a folder. While for reports there exist standard 'Unfilled Public' folder, for Dashboard there is no predefined public folder. When I tried to deploy the dashboard I kept receiving error
Public_Dashboards/Jobs_Executed_and_Booked_For_This_Week Dashboard 0 0 Cannot find folder:Public_Dashboards
even when I tried to add folder to package.xml like this
<types>
<members>Public_Dashboards</members>
<name>Folder</name>
</types>
I still kept receiving the same error with additional messages like
Public_Dashboards/Jobs_Executed_and_Booked_For_This_Week Dashboard 0 0 Cannot find folder:Public_Dashboards 0 0 Unknown type name 'Folder' specified in package.xml
When I tried to specify DashboardFolder type in package.xml
<types>
<members>Public_Dashboards</members>
<name>DashboardFolder</name>
</types>
I still had the same error with a different message
0 0 Unknown type name 'DashboardFolder' specified in package.xml Public_Dashboards/Jobs_Executed_and_Booked_For_This_Week Dashboard 0 0 Cannot find folder:Public_Dashboards
How to deploy or retrieve dashboard folder?