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

unable to build 2gp package with the latest cli due to big object index file #2847

Closed
bill-meyestro opened this issue Apr 26, 2024 · 11 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue more information required Issue requires more information or a response from the customer validated Version information for this issue has been validated

Comments

@bill-meyestro
Copy link

bill-meyestro commented Apr 26, 2024

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

I upgraded my cli from 2.35.6 to 2.38.7 this morning and tried to build my project (2gp). Getting the following error -

Audit__b.AuditIndex.indexe: An object 'Audit__b.AuditIndex.indexe' of type Index was named in package.xml, but was not found in zipped directory

This is not a new object.

I believe it was a couple of years ago we had to rename the big object index file to ".indexe-meta.xml" as a workaround in the build or deploy process.

Does the file need to be renamed to "index-meta.xml" again?

System Information

{
"architecture": "win32-x64",
"cliVersion": "@salesforce/cli/2.38.7",
"nodeVersion": "node-v20.12.2",
"osVersion": "Windows_NT 10.0.22631",
"rootPath": "C:\Users\BillDunn\AppData\Local\sf\client\2.38.7-023d2b4",
"shell": "cmd.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.0.15 (core)",
"@oclif/plugin-commands 3.3.1 (core)",
"@oclif/plugin-help 6.0.21 (core)",
"@oclif/plugin-not-found 3.1.4 (core)",
"@oclif/plugin-plugins 5.0.10 (core)",
"@oclif/plugin-search 1.0.22 (core)",
"@oclif/plugin-update 4.2.6 (core)",
"@oclif/plugin-version 2.0.17 (core)",
"@oclif/plugin-warn-if-update-available 3.0.15 (core)",
"@oclif/plugin-which 3.1.7 (core)",
"@salesforce/cli 2.38.7 (core)",
"apex 3.1.5 (core)",
"auth 3.6.1 (core)",
"data 3.3.1 (core)",
"deploy-retrieve 3.6.3 (core)",
"info 3.2.1 (core)",
"limits 3.3.3 (core)",
"marketplace 1.2.1 (core)",
"org 4.1.1 (core)",
"packaging 2.4.0 (core)",
"schema 3.3.3 (core)",
"settings 2.2.1 (core)",
"sobject 1.3.3 (core)",
"source 3.3.1 (core)",
"telemetry 3.3.2 (core)",
"templates 56.2.2 (core)",
"trust 3.6.3 (core)",
"user 3.5.2 (core)",
"@salesforce/sfdx-scanner 4.0.0 (user)"
]
}

@bill-meyestro bill-meyestro added the investigating We're actively investigating this issue label Apr 26, 2024
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.

@bill-meyestro bill-meyestro changed the title unable to build 2gp package with the lastest cli due to big object index file unable to build 2gp package with the latest cli due to big object index file Apr 26, 2024
Copy link

Hello @bill-meyestro 👋 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 validated Version information for this issue has been validated investigating We're actively investigating this issue and removed investigating We're actively investigating this issue more information required Issue requires more information or a response from the customer labels Apr 26, 2024
@mshanemc
Copy link
Contributor

indexe is definitely deprecated and you shouldn't use it. But that hasn't changed recently.

what command are you running when you get the error? sf package version create ?

@bill-meyestro
Copy link
Author

sf package version create --package "xxxxx" --installation-key zzzzzzzzz --definition-file config/project-scratch-def.json --code-coverage

@bill-meyestro
Copy link
Author

i am rebuilding with "index-meta.xml" and will deploy to a scratch org and upgrade a customer sandbox.

@mshanemc mshanemc added the more information required Issue requires more information or a response from the customer label Apr 26, 2024
@bill-meyestro
Copy link
Author

No trouble building, deploying to scratch org, or upgrading the package in a sandbox. Thank you very much for such a quick response. I really appreciate it.

@jongpie
Copy link

jongpie commented Apr 26, 2024

@mshanemc I've also just upgraded to sf cli v2.38.7, and I'm now seeing this same error:

I haven't tried to create a package version yet (I can test that later), but it seems to be happening every time I deploy/push to scratch orgs.

Let me know what you think - happy to provide any other info that might be helpful.

@mshanemc
Copy link
Contributor

mshanemc commented Apr 26, 2024

@jongpie short answer and workaround: you should use index-meta.xml instead of indexe. Does it work if you take your CLI back to whatever you were on before? If so, what version was that?

I'm going to look into whether something changed recently related to that.


background: indexe was a typo from the old toolbelt days, and we put in a shim to support the use of it for backward compatibility reasons.
https://github.com/forcedotcom/source-deploy-retrieve/blob/1e93fd9991c28acd5db41d451b866edc29e660ca/src/registry/metadataRegistry.json#L1495

That's used here https://github.com/forcedotcom/source-deploy-retrieve/blob/1e93fd9991c28acd5db41d451b866edc29e660ca/src/convert/transformers/defaultMetadataTransformer.ts#L78

[still trying to figure out why it's not working like it used to!]

@jongpie
Copy link

jongpie commented Apr 27, 2024

@mshanemc I reverted to the previous version I was using - v2.24.4 - and was able to deploy successfully using the legacy indexe-meta.xml extension. So it seems like something has changed between v2.24.4 and v2.38.7.

I've also switched to using the new/correct index-meta.xml extension, and that works for me with v2.38.7, so I'm not blocked by this anymore - but if there's anything else I can do to help troubleshoot why indexe stopped working between versions, let me know.

@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Apr 29, 2024
Copy link

git2gus bot commented Apr 29, 2024

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

@jshackell-sfdc
Copy link
Collaborator

This issue is fixed in version 2.40.7 (May 8, 2024) of the CLI. Enjoy!

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 investigating We're actively investigating this issue 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