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

Not able to deploy GENAIFunction metadata #3164

Open
NarendReddy opened this issue Jan 3, 2025 · 4 comments
Open

Not able to deploy GENAIFunction metadata #3164

NarendReddy opened this issue Jan 3, 2025 · 4 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@NarendReddy
Copy link

NarendReddy commented Jan 3, 2025

When I try to deploy GENAIFunction metadata using gitlab , I am getting the below error . I dont see any issues with extensions and directory names looks correct.

skip invalid line with medataname
Error (1): /builds/it/salesforce/salesforce-core/force-app/main/default/genAiFunctions/Get_Records_by_Name/Get_Records_by_Name.genAiFunction-meta.xml: Could not infer a metadata type
Try this:
A metadata type lookup for "Get_Records_by_Name.genAiFunction-meta.xml" found the following close matches:
-- Did you mean ".function-meta.xml" instead for the "FunctionReference" metadata type?
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

@NarendReddy NarendReddy added the investigating We're actively investigating this issue label Jan 3, 2025
Copy link

github-actions bot commented Jan 3, 2025

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.

Copy link

github-actions bot commented Jan 3, 2025

Hello @NarendReddy 👋 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 Jan 3, 2025
@shetzel
Copy link
Contributor

shetzel commented Jan 4, 2025

I don't know what CLI version and plugins you're using since you didn't provide that and it's essential when troubleshooting issues like these. However, assuming you're using the latest version and plugins, I would delete the source files in your /builds/it/salesforce/salesforce-core/force-app/main/default/genAiFunctions/ directory and retrieve them fresh from your org. This is because the owning team for that metadata type recently changed how that metadata is defined on the file system. I believe that retrieving just the GenAiFunction metadata and using the latest CLI will fix the problem you're seeing. To retrieve, do sf project retrieve start -m GenAiFunction.

@shetzel
Copy link
Contributor

shetzel commented Jan 8, 2025

@NarendReddy - if my instructions solve your issue please close. If not, let us know any updates. Deploying and retrieving GenAiFunction should definitely work in the latest CLI versions.

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
Projects
None yet
Development

No branches or pull requests

2 participants