Skip to content

mdapi:pull --reporting error: LIMIT_EXCEEDED: 10000 files #109

@alexdberg

Description

@alexdberg

My CI job is failing at the following step with the following error code.

Run sfdx shane:mdapi:pull -u me@example.com --reporting
asking your org about its metadata... Going to retrieve all the metadata you asked for...this could take a while
asking your org about its metadata... done
ERROR running shane:mdapi:pull:  Command failed: sfdx force:source:retrieve -x pkgDirTemp/Report/package.xml -w 30 -u me@example.com --json

Error: Process completed with exit code 1.

The job runs for only 2 min 30 sec total, but I manually ran the step and got the following error from sfdx-cli directly:

LIMIT_EXCEEDED: Too many files in retrieve call, limit is: 10000

So, it looks like I have too reports in my org now. As a workaround I can remove reports from my daily backup job, but that's not a big problem for me.

Two topics for improvement:

  • Is it necessary to change the code to surface this error produced by the underlying sfdx-cli command?
  • Does the maintainer want this sfdx-cli plugin to handle this limitation of the Salesforce API? One way this can be done is by splitting the package.xml into multiple package.xml files and retrieving each simultaneously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions