sf project generate manifest returns inconsistent results #3152
Labels
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
I'm building automation to run scheduled snapshots of all metadata in my orgs, using
sf project generate manifest --from-org
command as a base for generating batches of retrieve calls.I noticed some unexpected changes listed between runs, and found that that initial package manifest generated is inconsistent: it will randomly return a different count of members for a type, or skip a type entirely.
I've tested it by running the generate manifest command in a loop against the same environment and then comparing the generated packages, and found individual runs completely missing some types, including:
ApexClass,MatchingRule,CustomObject,ValidationRule,WebLink,AppMenu,CustomField,CompactLayout,CustomPermission,ListView,CustomMetadata
Tested on different instances, both in prod and sandbox orgs, and in different sf projects, all using the latest cli (
2.69.14
)Steps To Reproduce
authenticate with a salesforce org and run the command a few times to generate multiple manifests (date used to autogenerate a different filename each time)
sf project generate manifest --from-org <alias> --name package_$( date +%s ).xml
compare the contents of the generated package manifests - some of them will have whole metadata types missing, or some members within a metadata type missing
note: the issue is intermittent, so it might take 5-10 runs to see significant differences
Tip
use
sf doctor --create-issue
to automatically fill the required informationlogs generated by doctor:
logs.zip
Expected result
while testing in an org without active users (i.e. no changes to metadata), I expect each package manifest to have strictly equal contents
Actual result
components listed differ between generated manifests
Additional information
System Information
Windows 10, Git for Windows bash
The text was updated successfully, but these errors were encountered: