SFDX Pull fails because of AppMenu/AppSwitcher

I created a scratch org with the new Winter release.
After pushing my code without trouble, and updated it, I wanted to pull it to local files using :

sfdx force:source:pull --forceoverwrite -u myScratch

Now this error showed up :
ERROR: Metadata API received improper input. Please ensure file name and capitalization is correct. Load of metadata from db failed for metadata of type:AppMenu and file name:AppSwitcher.

Thing is, push works and I haven’t modified an App.
Also note that it worked on a older scratch with Summer release.

I’ll take any idea or advice.
Thank you for helping.

Answer

Here is a workaround for this SFDC Platform Winter19 bug

Create/update .forceignore file at the root of your SFDX Project, with the following content :

# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#


AppSwitcher.appMenu

This doesn’t solve the bug, but at least the sfdx force:source:pull doesn’t crash

Attribution
Source : Link , Question Author : user43606 , Answer Author : Nicolas Vuillamy

Leave a Comment