forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
488 stars 78 forks source link

ERROR running force:source:retrieve: WARNING: Infinite loop detected. #749

Closed jvolkov closed 2 years ago

jvolkov commented 3 years ago

Summary

ERROR running force:source:retrieve: WARNING: Infinite loop detected.

Unable to retrieve anything from source org. Tried several different orgs and metadata types. Received this error for all of them.

Steps To Reproduce:

Without connecting to remote GitHub repo

  1. Create a brand new sfdx project from VS Code
  2. Auth a sandbox org
  3. Before connecting to any remote repo, retrieve source in manifest
  4. All metadata is successfully retrieved as expected

Now with a connection to a remote GitHub repo

  1. Create a brand new sfdx project from VS Code
  2. Auth a sandbox org
  3. Before connecting to any remote repo, retrieve source in manifest
  4. All metadata is successfully retrieved as expected
  5. git remote add origin to get remote repo
  6. 'git pull' to get repo branch
  7. Retrieve source in manifest now errors out with ERROR running force:source:retrieve: WARNING: Infinite loop detected.

image

Now from Command Prompt (after doing the above)

  1. >sfdx force:auth:web:login for the same sandbox org as above
  2. sfdx force:source:retrieve --json -m SomeMetadataType:SomeName
  3. Returned more WARNINGS than can count image
    WARNING: Flows must be used with a minimum API version of 44.0. Make sure that the sfdx-project.json file is set to use "sourceApiVersion": "44.0" or later, and that you’ve upgraded the flow files per the instructions in the Metadata API Developer Guide: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm#md_flow_upgrade.

    FYI sfdx-project.json api version is set to 48.0

Expected result

When connected to a remote repo and sandbox org, expect the retrieve source in manifest to work as it used to.

Actual result

Receive error: ERROR running force:source:retrieve: WARNING: Infinite loop detected.

Additional information

VS Code Version: 1.51.1

SFDX CLI Version: 7.81.0-7b953c80d1 win32-x64 node-v12.18.3

OS and version: Windows_NT x64 10.0.17763

salesforcedx: 50.6.0 (core)

github-actions[bot] commented 3 years ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

jvolkov commented 3 years ago

On a related note this command when manually typed is working:

sfdx force:source:retrieve -m CustomObject:customstuff__c

But the Org Browser's Retrieve (Beta) is failing for the exact same object.

mshanemc commented 2 years ago

@jvolkov we changed the library for deploy/retrieve (and in beta, [push/pull] (https://github.com/forcedotcom/cli/issues/1258)).

That should fix the problem. If it doesn't, please respond.

no-response[bot] commented 2 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.