When I try to pull from a scratch org to my local I got the below error

enter image description here

But when I checked the status as > sfdx force:source:status -u , Then I can see there are some remote changes like below in the image and also some unknown files like ProfileSessionSetting, ProfilePasswordPolicy. Anyone has any idea to remove it from the remote?

enter image description here

  • 2
    Have you tried adding these metadata types to your force.ignore file? Oct 9, 2018 at 11:06
  • @John Towers where can I find this file? I couldn't find this file in the Intellij. Oct 9, 2018 at 11:17
  • 2
    You'll need to create it in your project's top-level directory. The format is documented here: developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/… Oct 9, 2018 at 11:19
  • @Joh Towers.. I will try your solution. But when I create a new DX project with new configuration I can able to work with. But do you have any idea about how those files are generated in remote? Oct 9, 2018 at 11:24
  • 2
    They're related to changes to the session and password settings for profiles. So some change to a profile is causing them to be created. Oct 9, 2018 at 11:35

1 Answer 1


Adding following lines to .forceignore file solved the issue:


Read to know more about .forceignore

Credits: John Towers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .