Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf project generate manifest --name package-all-org-items.xml --output-dir ./manifest --include-packages managed,unlocked --from-org - Could not infer a metadata type #2858

Closed
Jbanniere opened this issue May 7, 2024 · 8 comments
Labels
more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated

Comments

@Jbanniere
Copy link

Jbanniere commented May 7, 2024

Summary

Error when calling sf project generate manifest on some orgs

IMPORTANT
sf project generate manifest --name package-all-org-items.xml --output-dir ./manifest --include-packages managed,unlocked --from-org

System Information

bash for windows
{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.39.6",
"nodeVersion": "node-v18.17.1",
"osVersion": "Windows_NT 10.0.22631",
"rootPath": "C:\Users\JBANNIER\AppData\Roaming\npm\node_modules\@salesforce\cli",
"shell": "C:\Program Files\Git\usr\bin\bash.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.0.16 (core)",
"@oclif/plugin-commands 3.3.1 (core)",
"@oclif/plugin-help 6.0.21 (core)",
"@oclif/plugin-not-found 3.1.6 (core)",
"@oclif/plugin-plugins 5.0.14 (core)",
"@oclif/plugin-search 1.0.23 (core)",
"@oclif/plugin-update 4.2.7 (core)",
"@oclif/plugin-version 2.0.17 (core)",
"@oclif/plugin-warn-if-update-available 3.0.15 (core)",
"@oclif/plugin-which 3.1.8 (core)",
"@salesforce/cli 2.39.6 (core)",
"apex 3.1.9 (core)",
"auth 3.6.3 (core)",
"data 3.3.2 (core)",
"deploy-retrieve 3.6.6 (core)",
"info 3.2.3 (core)",
"limits 3.3.4 (core)",
"marketplace 1.2.4 (core)",
"org 4.1.3 (core)",
"packaging 2.4.2 (user)",
"schema 3.3.4 (core)",
"settings 2.2.1 (core)",
"sobject 1.3.6 (core)",
"source 3.3.3 (core)",
"telemetry 3.3.4 (core)",
"templates 56.2.4 (core)",
"trust 3.6.6 (core)",
"user 3.5.2 (core)",
"sfdmu 4.33.17 (user)",
"sfdx-essentials 2.12.0 (user)",
"sfdx-git-delta 5.39.2 (user)",
"sfdx-hardis 4.33.2 (user)",
"texei-sfdx-plugin 2.5.0 (user)"
]
}

Actual result

Error (1): _Default: Could not infer a metadata type

[08:56:14.445] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: WebStoreBundle in this organization
[08:56:14.552] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AssistantVersion in this organization
[08:56:14.553] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: Territory2Rule in this organization
[08:56:14.555] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: OmniIntegrationProcedure in this organization
[08:56:14.558] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AppointmentSchedulingPolicy in this organization
[08:56:14.659] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: Territory2Type in this organization
[08:56:14.661] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: PermissionSetLicenseDefinition in this organization
[08:56:14.661] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: OmniInteractionAccessConfig in this organization
[08:56:14.662] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Unknown type:ProductSpecificationTypeDefinition
[08:56:14.662] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AccountingFieldMapping in this organization
[08:56:14.663] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AccountRelationshipShareRule in this organization
[08:56:14.664] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AccountingModelConfig in this organization
[08:56:14.664] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AcctMgrTargetSettings in this organization
[08:56:14.665] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: LiveChatButton in this organization
[08:56:14.665] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActionableEventOrchDef in this organization
[08:56:14.723] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActionableEventTypeDef in this organization
[08:56:14.792] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActionPlanTemplate in this organization
[08:56:14.793] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActionableListDefinition in this organization
[08:56:14.795] DEBUG (sf:ConnectionResolver):
0: "Expected error:"
1: "Unable to retrieve file for id 1169 (ACSizeTypeCreativeType). This Standard Value Set is either inaccessible or not supported in Metadata API."
[08:56:14.882] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AdvAccountForecastSet in this organization
[08:56:14.949] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Unknown type:AIAssistantTemplate
[08:56:14.995] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AIUsecaseDefinition in this organization
[08:56:15.004] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActivationPlatform in this organization
[08:56:15.037] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ActnblListKeyPrfmIndDef in this organization
[08:56:15.139] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ApplicationRecordTypeConfig in this organization
[08:56:15.141] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ApplicationSubtypeDefinition in this organization
[08:56:15.211] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AssessmentQuestionSet in this organization
[08:56:15.667] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: BatchCalcJobDefinition in this organization
[08:56:15.668] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: BenefitAction in this organization
[08:56:15.668] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ObjectHierarchyRelationship in this organization
[08:56:15.670] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: OmniDataTransform in this organization
[08:56:15.671] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: OcrSampleDocument in this organization
[08:56:15.671] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Unknown type:SvcCatalogItemDefFiltrCrit
[08:56:15.672] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: SvcCatalogFulfillmentFlow in this organization
[08:56:15.672] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AssistantSkillQuickAction in this organization
[08:56:15.673] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: SvcCatalogFilterCriteria in this organization
[08:56:15.674] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: LiveChatDeployment in this organization
[08:56:15.674] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: TimeSheetTemplate in this organization
[08:56:15.676] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: Territory2 in this organization
[08:56:15.676] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: PricingActionParameters in this organization
[08:56:15.677] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: Territory2Model in this organization
[08:56:15.678] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: RelationshipGraphDefinition in this organization
[08:56:15.678] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: PricingRecipe in this organization
[08:56:15.680] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: AssistantSkillSobjectAction in this organization
[08:56:15.680] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: OmniExtTrackingDef in this organization
[08:56:15.681] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: TransactionSecurityPolicy in this organization
[08:56:15.681] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: PaymentGatewayProvider in this organization
[08:56:15.682] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: SustnUomConversion in this organization
[08:56:15.682] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ExternalClientApplication in this organization
[08:56:15.685] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Unknown type:EnablementMeasureDefinition
[08:56:15.686] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: FieldSrcTrgtRelationship in this organization
[08:56:15.686] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CareBenefitVerifySettings in this organization
[08:56:15.687] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ExternalAIModel in this organization
[08:56:15.687] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ExternalDataConnector in this organization
[08:56:15.688] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: TimelineObjectDefinition in this organization
[08:56:15.690] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DataPipeline in this organization
[08:56:15.690] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CustomDataType in this organization
[08:56:15.690] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DataSourceBundleDefinition in this organization
[08:56:15.692] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CallCtrAgentFavTrfrDest in this organization
[08:56:15.694] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Unknown type:ConversationVendorFieldDef
[08:56:15.695] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CareRequestConfiguration in this organization
[08:56:15.695] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: FieldServiceMobileExtension in this organization
[08:56:15.696] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: UIObjectRelationConfig in this organization
[08:56:15.697] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: RegisteredExternalService in this organization
[08:56:15.697] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DisclosureDefinitionVersion in this organization
[08:56:15.698] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: EntitlementTemplate in this organization
[08:56:15.699] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DataPackageKitObject in this organization
[08:56:15.699] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CareLimitType in this organization
[08:56:15.700] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CareSystemFieldMapping in this organization
[08:56:15.701] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: SvcCatalogCategory in this organization
[08:56:15.701] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ESignatureConfig in this organization
[08:56:15.702] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DataSourceObject in this organization
[08:56:15.725] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ESignatureEnvelopeConfig in this organization
[08:56:15.726] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: EventSubscription in this version
[08:56:15.726] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: LiveChatAgentConfig in this organization
[08:56:15.727] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: ConversationVendorInfo in this organization
[08:56:15.728] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: DataSource in this organization
[08:56:15.743] DEBUG (sf:ConnectionResolver): INVALID_TYPE: Cannot use: CareProviderSearchConfig in this organization
Error (1): _Default: Could not infer a metadata type

cc @nvuillam

@Jbanniere Jbanniere added the investigating We're actively investigating this issue label May 7, 2024
Copy link

github-actions bot commented May 7, 2024

Hello @Jbanniere 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels May 7, 2024
Copy link

github-actions bot commented May 7, 2024

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.

@github-actions github-actions bot added validated Version information for this issue has been validated investigating We're actively investigating this issue and removed more information required Issue requires more information or a response from the customer labels May 7, 2024
@mdonnalley
Copy link
Contributor

Error (1): _Default: Could not infer a metadata type

That error message is formatted using: %s: Could not infer a metadata type where the %s is a file path in your project. Based on that, I'd say that there's a file called _Default in your project that shouldn't be there?

If that doesn't help, it'd be helpful to have the entire logs from the failed command and, if possible, a repro that minimally replicates the issue. Thanks!

@mdonnalley mdonnalley added the more information required Issue requires more information or a response from the customer label May 7, 2024
@nvuillam
Copy link

nvuillam commented May 7, 2024

@mdonnalley does it help ? :)

Note: the same command is called in all our Monitoring repositories (daily run) so it's really dependent to the org content, not to the way we call the command (it works for 95% of identical jobs based on the same Docker image)

Error (1): _Default: Could not infer a metadata type
Try this:
Additional suggestions:
Confirm the file name, extension, and directory names are correct. Validate against the registry at:
<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>
If the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:
<https://developer.salesforce.com/docs/metadata-coverage>
If the type is available via Metadata API but not in the registry
- Open an issue <https://github.com/forcedotcom/cli/issues>
- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>

@mdonnalley
Copy link
Contributor

so it's really dependent to the org content

If that's the case, are you able to isolate the org content that leads to this error? Also, it'd still be helpful to have the full debug output

@nvuillam
Copy link

nvuillam commented May 7, 2024

@Jbanniere please can you send the full log with --dev-debug after removing the client data ? :)

@sgupta3SFDC
Copy link

@Jbanniere Check the metadata type Synonyms in the org as Default gets created for the same and gives error while retrieving the complete manifest. I believe the issue is fixed in the SF CLI version 2.39.6

@nvuillam
Copy link

@sgupta3SFDC I confirm it seems solved with latest SF Cli version, thanks :)

@mdonnalley mdonnalley removed the investigating We're actively investigating this issue label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

4 participants