3

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? – John Towers Oct 9 '18 at 11:06
  • @John Towers where can I find this file? I couldn't find this file in the Intellij. – Hariprasath Oct 9 '18 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/… – John Towers Oct 9 '18 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? – Hariprasath Oct 9 '18 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. – John Towers Oct 9 '18 at 11:35
9

Adding following lines to .forceignore file solved the issue:

**/*SessionSetting*
**/*PasswordPolicy*
*SessionSetting*
*PasswordPolicy*

Read to know more about .forceignore


Credits: John Towers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.