-
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
Unlocked package install failing with "null" error for new field. #1275
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. |
Hi, can you run the command with flags |
@maggiben Output of Note that I replaced all instances of the package install key and my org user name with placeholder values, but otherwise that is the direct output. Here's the command:
I did notice a JSON Schema validation error in the output which didn't make sense, so I ran my sfdx-project.json through a validator using the schema called out in the log; it seems to be unhappy that I'm not using package aliases, but we've never used them on this project, preferring instead to use the version IDs directly; this has certainly never caused an issue; and obviously it isn't even needed to run the above command. But for completeness, here's the file for reference:
|
@jclark-dot-org strange, the schema calls for a package to be a type
Have you seen this error before ? |
@maggiben Yes, those two errors are the same 2 errors from my original post. Error 1 is the failed field deploy, with "null" as the reason, and Error 2 is just an apex class failing to compile because the field is missing. I cannot figure out why Error 1 is occurring, as there is no error message. If I manually edit to add: This was using CLI 7.123, but we also tried it with 7.125 and 7.92, with identical results. |
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. |
Hoping to get some packaging specialist eyes on this... |
@jclark-dot-org - Sorry this has remained open for so long without a resolution. We are trying to clean up old issues like this one. I was able to get this in front of the packaging team and they think this is a problem for the owner of the metadata type (CustomMetadata in this case). Many times errors with packaging operations are actually a problem with the metadata type implementation itself and this appears to be the case with this issue. If you are still hitting this issue or would like a resolution then please open a support case. One last thing to ensure is if the package version that was created contains the expected contents. You can inspect the package contents sent in the request to create the package version by using the |
Summary
When attempting to install a new package version with
sfdx force:package:install
, the install fails with a 'null' error for a new field.Expected result
This new version adds a new field to a custom MDT, and some code the references it. It should install cleanly; everything works fine in scratch orgs.
Actual result
When installing to a sandbox which has a prior version of the package, we see the following errors:
Error 2 is a direct result of Error 1. Error 1 indicates the new field was not created, but the error message "null" gives no information as to the cause.
Further, if we manually push the new field to the sandbox with
force:source:deploy
, it succeeds, and then the package install succeeds. We need to understand why the field doesn't work during a package install.System Information
Observed on mac & linux (Bitbucket Pipelines); here's the version info from my mac:
The bitbucket pipeline is also using 7.125
Additional information
Feel free to attach a screenshot.
The text was updated successfully, but these errors were encountered: