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

[ERROR] - Flow Definition Metadata Type Error #2509

Closed
o-olaosebikan opened this issue Oct 4, 2023 · 8 comments
Closed

[ERROR] - Flow Definition Metadata Type Error #2509

o-olaosebikan opened this issue Oct 4, 2023 · 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

@o-olaosebikan
Copy link

o-olaosebikan commented Oct 4, 2023

Summary

Version:
o.olaosebikan@oolaose-ltmgjbv ~ % sf --version @salesforce/cli/2.11.8 darwin-arm64 node-v18.15.0

I was trying to create a package version but received an error while trying sf package version create --package "*********" --installation-key "******" --wait 10

And I am receiving this error:
`Error (1): /var/folders/qx/c80y96js615bp6bws45grfmr0000gp/T/0HoQT00000000060AA-c5f451c63ac6efc461e283ff09298baf/md-files/flowDefinitions/AbandonedCartFlow.flowDefinitio: Could not infer a metadata type

Try this:

A metadata type lookup for "AbandonedCartFlow.flowDefinitio" found the following close matches:
-- Did you mean ".flowDefinition" instead for the "FlowDefinition" metadata type?
`

I was hoping I could get some assistance with this as I do have the right suffix for the metadata type in my project structure.

Thanks in advance!

@o-olaosebikan o-olaosebikan added the investigating We're actively investigating this issue label Oct 4, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

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
Copy link

github-actions bot commented Oct 4, 2023

Hello @o-olaosebikan 👋 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 Oct 4, 2023
@o-olaosebikan
Copy link
Author

o-olaosebikan commented Oct 4, 2023

version:
{
"cliVersion": "@salesforce/cli/2.11.8",
"architecture": "darwin-arm64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Darwin 22.6.0",
"shell": "zsh",
"rootPath": "/Users/o.olaosebikan/.local/share/sf/client/2.11.8-c9872b8",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.3.8 (core)",
"@oclif/plugin-commands 2.2.26 (core)",
"@oclif/plugin-help 5.2.19 (core)",
"@oclif/plugin-not-found 2.4.1 (core)",
"@oclif/plugin-plugins 3.8.2 (core)",
"@oclif/plugin-search 0.0.22 (core)",
"@oclif/plugin-update 3.2.3 (core)",
"@oclif/plugin-version 1.3.10 (core)",
"@oclif/plugin-warn-if-update-available 2.1.0 (core)",
"@oclif/plugin-which 2.2.32 (core)",
"@salesforce/cli 2.11.8 (core)",
"apex 2.3.15 (core)",
"auth 2.8.17 (core)",
"data 2.5.12 (core)",
"deploy-retrieve 1.18.3 (core)",
"info 2.6.45 (core)",
"limits 2.3.35 (core)",
"login 1.2.31 (core)",
"marketplace 0.2.2 (core)",
"org 2.10.8 (core)",
"packaging 1.26.1 (user)",
"schema 2.3.28 (core)",
"settings 1.4.30 (core)",
"sobject 0.2.7 (core)",
"source 2.10.36 (core)",
"telemetry 2.3.4 (core)",
"templates 55.5.13 (core)",
"trust 2.6.15 (core)",
"user 2.3.32 (core)"
]
}

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

Hello @o-olaosebikan, it looks like you might have a typo in your metadata suffix. flowDefinitio is missing a n. I believe the full correct suffix would be .flowDefinition-meta.xml. The full filename would then be AbandonedCartFlow.flowDefinition-meta.xml

Could you give that a try and let me know if it solves your issue?

@iowillhoit iowillhoit added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Oct 5, 2023
@shetzel
Copy link
Contributor

shetzel commented Oct 5, 2023

You are packaging metadata in mdapi format. Solution is to convert the source in your project to source format and package that source.

@shetzel shetzel closed this as completed Oct 5, 2023
@yehielz
Copy link

yehielz commented Oct 29, 2023

I have the same issue. Trying to create a new version on an existing package will generate this error: Could not infer a metadata type.
looking behind the scenes: sf plugin generates md-files in tempapp data, and the metadata type is truncated at the last letter.
flexipag instead of flexipage
ap instead of app
....

below ouput of sf version --verbose --json

{
"cliVersion": "@salesforce/cli/1.86.7-legacy.0",
"architecture": "win32-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Windows_NT 10.0.22621",
"shell": "cmd.exe",
"rootPath": "C:\Users\Yehiel\AppData\Local\sfdx\client\7.209.6-8ba3197\sf",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.3.1 (core)",
"@oclif/plugin-commands 2.2.17 (core)",
"@oclif/plugin-help 5.2.11 (core)",
"@oclif/plugin-not-found 2.3.26 (core)",
"@oclif/plugin-plugins 3.1.6 (core)",
"@oclif/plugin-search 0.0.18 (core)",
"@oclif/plugin-update 3.1.22 (core)",
"@oclif/plugin-version 1.3.6 (core)",
"@oclif/plugin-warn-if-update-available 2.0.41 (core)",
"@oclif/plugin-which 2.2.22 (core)",
"@salesforce/cli 1.86.7-legacy.0 (core)",
"apex 2.3.4 (core)",
"auth 2.8.4 (core)",
"data 2.4.5 (core)",
"deploy-retrieve 1.13.5 (core)",
"env 2.1.15 (user)",
"info 2.6.30 (core)",
"limits 2.3.23 (core)",
"login 1.2.15 (core)",
"org 2.9.19 (core)",
"packaging 1.20.1 (user)",
"schema 2.3.17 (core)",
"settings 1.4.17 (core)",
"sobject 0.1.32 (core)",
"source 2.10.22 (core)",
"telemetry 2.2.1 (core)",
"templates 55.5.2 (core)",
"trust 2.4.27 (core)",
"user 2.3.20 (core)"
]
}

@cristiand391
Copy link
Member

@yehielz can you try using latest sf v2?

you are using sf v1.86.7-legacy.0

@yehielz
Copy link

yehielz commented Oct 31, 2023

Thanks for your reply. My issue was related to the fact that I had metadata in md format within the project.
#2541

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

5 participants