-
Notifications
You must be signed in to change notification settings - Fork 78
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 package version create erroneous missing metadata #2455
sf package version create erroneous missing metadata #2455
Comments
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. |
Hello @ClayChipps 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
We are experiencing the same issue. |
We experience the same unexpected behaviour, except that package creation works but the created package won't install while no changes to the code since the previous package created earlier. |
Just as an update, we were able to get around this issue by using a much older version (1.17.1) of the packaging plugin.
|
Is there any chance you have |
A quick search of my codebase doesn't return any |
Hello, I have reported before we are having similar problems. I have found the cause in our situation, unsure if this is really related to this Issue or maybe to #2448. In our metadata we have a Custom Object named Finance_Account__c that has a RecordType named Profit_Loss. In this RecordType we have an & in the label:
when trying to build a package with this label we get amongst all other errors:
When I change the label to something like
everything works fine. Now we have this label (with the Hopefully this helps. |
@ClayChipps, did you/can you provide the actual errors you are receiving and examples of metadata, to compare. More detail the better. :) Maybe provide some examples that are non descript, and do not impact your customer. I am sure they want you operating efficiently. |
@mshanemc @qwikag In our case, it is also about unlocked packages, some of which really have customIndex packaged, but some of them not - all are still failing. Are there any workaround, i.e. how can we use specific version of packaging plugin (e.g. older one) in CI/CD? As I understand due to lazy loading approach, packaging plugin is actually installed implicitly when we first issue 'package version create' command. Even if we provided specific version of cli itself, it would still install latest version of packaging plugin implicitly on first call. Any advice/suggestion here? |
@avesolovksyy You can install a specific plugin version like so |
@ClayChipps |
Hey, all. We've got this updated, I think. Would love to hear confirmation that it's solved this problem. |
@mshanemc |
Summary
When using the
sf package version create
command with the following configurations:The package version creation fails with a litany of errors indicating missing metadata, which in fact is not missing from the project.
Around 1PM EDT on 9/8/2023, we had successfully built this exact project using the following configuration, which succeeded:
Around 5PM EDT on 9/8/2023, we attempted to build this exact same project using the same configuration, which failed:
We were using the exact same Git ref for both of these builds, so absolutely nothing changed in the project structure.
We then attempted with the following configurations, all of which failed:
Steps To Reproduce
sf package version create
commandWe cannot provide the repo as this is a client implementation that we cannot share.
Expected result
The package should have been built
Actual result
Multiple metadata elements are reported as missing, when they are in fact not
System Information
1694228554943-diagnosis.txt
1694228554943-command-debug.log
1694228554943-command-stdout.log
1694224776340-diagnosis.txt
1694224776340-command-debug.log.log
1694224776340-command-stdout.log.log
1694222844488-diagnosis.txt
1694222844488-command-debug.log.log
1694222844488-command-stdout.log.log
The text was updated successfully, but these errors were encountered: