-
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
Empty Static Resource files can't be included in a sf package version #2973
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. |
@mekadigital Thanks for taking the time to provide a repo that replicates the issue 🏆 I'm able to successfully do a |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
Hello @mekadigital , sorry you've run into this I'm sure it was annoying to track down. Thank you for the report and the reproduction repo, I've created an internal bug and we'll get to it when we can. Seth |
I received the exact same error message and trace code while creating a package version. In my case, it was an empty CSS file in an LWC. So I believe the more appropriate header would be - "Empty files can't be included in an sf package version" |
Summary
Running sf package version create with a Static Resource that is empty will error.
Steps To Reproduce
Sample repo is available here: https://github.com/mekadigital/md-package-tests-empty-resource
Clone repo and run
% sf package version create --path force-app --wait 1000 --code-coverage -x
Warning: Record types defined in the scratch org definition file will stop being capitalized by default in a future release.
Set the
org-capitalize-record-types
config var totrue
to enforce capitalization.Version create.... Create version status: Error
Error (MultipleErrorsError): Multiple errors occurred:
(1) An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 1057494537-1609187 (-852365351)
Adding a whitespace character to the staticresource solves the issue.
Expected result
Package created
Actual result
Package can't be created.
(I've already worked around this by removing the resource, but it took so long to work out why it wasn't working I raised the issue)
System Information
zsh
Additional information
The text was updated successfully, but these errors were encountered: