• LathaLakshminarayan
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I'm getting error while testing JWT Auth Flow

NARENDER@NARENDER-PC MINGW64 ~/desktop/SalesforceDX
$ sfdx force:auth:jwt:grant --clientid ${CLIENT_ID}     --jwtkeyfile ${JWT_KEY_FILE} --username ${HUB_USERNAME}     --setdefaultdevhubusername
 !    Unexpected argument C:Users/NARENDER/Documents/certificates/server.key


Not sure what I'm missing
I continue to see this Conflict error with DX force:source:push/pull command, do not know how to solve this problem.
Doing Trailhead module to learn more DX skills: Get Started with Salesforce DX  App Development with Salesforce DX get stuck on pushing code to scratch org. Any step requiring a command to push/pull code sfdx force:source:push/pull end with conflict errors and code is NOT added to scratch org.
I have these layouts and objects in my ScratchOrg and local source code, following steps in a module ends with this error. I do not see any way to solve this other than restart project from 0. I did several steps
1. Try to delete Conflicting metadata from local - DID NOT HELP
2. Try to PULL source from ORG to refresh - DID NOT HELP (get same conflict error)
4. Checked my file paths in .sfdx/orgs/test-xxxxxxx/sourcePathInfos.json - all file paths are correct
5. Try to delete conflicted metadata refs inside .sfdx/orgs/test-xxxxxxx/sourcePathInfos.json - THIS STOPS CONFLICT BUT NO METADATA IS UPDATED
Anyone knows how to fix this DX error?
fdx force:source:push
STATE     FULL NAME               TYPE           PROJECT PATH
────────  ──────────────────────  ─────────────  ────────────────────────────────────────────────────────────────────────
Conflict  Account-Account Layout  Layout         force-app/main/default/layouts/Account-Account Layout.layout-meta.xml
Conflict  Geolocation             PermissionSet  force-app/main/default/permissionsets/Geolocation.permissionset-meta.xml
Conflict  Account                 CustomObject   force-app/main/default/objects/Account.object-meta.xml