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

I am trying to create mainfest but its failing #2527

Closed
pjha06 opened this issue Oct 18, 2023 · 9 comments
Closed

I am trying to create mainfest but its failing #2527

pjha06 opened this issue Oct 18, 2023 · 9 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@pjha06
Copy link

pjha06 commented Oct 18, 2023

Command used: sfdx force source manifest create --from-org EpamOneHealthConnectdev -n=allMetadata -d manifest
Issues:

C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\source-deploy-retrieve\lib\src\resolve\connectionResolver.js:59
                    throw new core_1.SfError(messages.getMessage('error_could_not_infer_type', [component.fullName]), 'TypeInferenceError', [messages.getMessage('suggest_type_more_suggestions')]);
                          ^

SfError [TypeInferenceError]: _Default: Could not infer a metadata type
    at C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\source-deploy-retrieve\lib\src\resolve\connectionResolver.js:59:27
    at Array.map (<anonymous>)
    at ConnectionResolver.resolve (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\source-deploy-retrieve\lib\src\resolve\connectionResolver.js:36:48)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ComponentSet.fromConnection (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\source-deploy-retrieve\lib\src\collections\componentSet.js:157:26)
    at async ComponentSetBuilder.build (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\source-deploy-retrieve\lib\src\collections\componentSetBuilder.js:116:40)
    at async ManifestGenerate.run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\plugin-deploy-retrieve\lib\commands\project\generate\manifest.js:38:30)
    at async ManifestGenerate._run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\command.js:117:22)
    at async Config.runCommand (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\config\config.js:314:25)
    at async run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\main.js:89:16) {
  cause: undefined,
  actions: [
    'Additional suggestions:\n' +
      'Confirm the file name, extension, and directory names are correct. Validate against the registry at:\n' 
+
      '<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>\n' 
+
      '\n' +
      'If the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:\n' +
      '<https://developer.salesforce.com/docs/metadata-coverage>\n' +
      '\n' +
      'If the type is available via Metadata API but not in the registry\n' +
      '\n' +
      '- Open an issue <https://github.com/forcedotcom/cli/issues>\n' +
      '- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md>'
  ],
  exitCode: 1
}

Workaround :i created package using another plugin and it has below metadatatypes which is not listed in your registry so it maybe failing:
1)CareBenefitVerifySettings
2)DiscoveryStory
3)ExternalAIModel
4)IdentityVerificationProcDef
5)IdentityVerificationProcDtl
6)IdentityVerificationProcFld
7)RegisteredExternalService

Please check and let me know if you need any more info.

@pjha06 pjha06 added the investigating We're actively investigating this issue label Oct 18, 2023
@github-actions
Copy link

Hello @pjha06 👋 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 18, 2023
@github-actions
Copy link

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.

@pjha06
Copy link
Author

pjha06 commented Oct 18, 2023

Please exclude below as it is not in coverage report
5)IdentityVerificationProcDtl
6)IdentityVerificationProcFld

@pjha06
Copy link
Author

pjha06 commented Oct 18, 2023

version --verbose --json

{
"code": 1,
"context": "ManifestGenerate",
"commandName": "ManifestGenerate",
"message": "Nonexistent flag: --verbose\nSee more help with --help",
"name": "Error",
"status": 1,
"stack": "Error: Nonexistent flag: --verbose\nSee more help with --help\n at validateArgs (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\parser\validate.js:10:19)\n at validate (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\parser\validate.js:153:5)\n at Object.parse (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\parser\index.js:19:35)\n at async ManifestGenerate.parse (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\command.js:221:25)\n at async ManifestGenerate.run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@salesforce\plugin-deploy-retrieve\lib\commands\project\generate\manifest.js:32:27)\n at async ManifestGenerate._run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\command.js:117:22)\n at async Config.runCommand (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\config\config.js:314:25)\n at async run (C:\Users\Prabhatkumar_Jha\AppData\Local\sf\client\2.12.9-007e29c\node_modules\@oclif\core\lib\main.js:89:16)",
"exitCode": 1,
"warnings": []
}

@github-actions
Copy link

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

@shetzel
Copy link
Contributor

shetzel commented Nov 2, 2023

@pjha06 - just to clarify, the ask is to get the following types added to SDR's metadata registry correct?

  1. CareBenefitVerifySettings
  2. DiscoveryStory
  3. ExternalAIModel
  4. IdentityVerificationProcDef
  5. RegisteredExternalService

@shetzel shetzel added bug Issue or pull request that identifies or fixes a bug and removed more information required Issue requires more information or a response from the customer labels Nov 2, 2023
@github-actions github-actions bot added the more information required Issue requires more information or a response from the customer label Nov 2, 2023
Copy link

git2gus bot commented Nov 2, 2023

This issue has been linked to a new work item: W-14416331

@pjha06
Copy link
Author

pjha06 commented Nov 2, 2023

@pjha06 - just to clarify, the ask is to get the following types added to SDR's metadata registry correct?

  1. CareBenefitVerifySettings
  2. DiscoveryStory
  3. ExternalAIModel
  4. IdentityVerificationProcDef
  5. RegisteredExternalService

yes correct

@pjha06
Copy link
Author

pjha06 commented Nov 2, 2023

yes correct

@shetzel shetzel removed the more information required Issue requires more information or a response from the customer label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

4 participants