-
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
"Component conversion failed: group.push is not a function" errror when running force:source:deploy #1119
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. |
Thanks for digging past the weak error message to identify the real cause of the error. Did you manually create that field in the object-meta.xml or was it the result of a Thanks also for the comms feedback--we're hearing that "in-CLI messaging" is the best way to get more attention and preview testers. We've historically used GitHub (this announcement was pinned for about 6 weeks prior to the change #1057) and the release notes to communicate changes and early testing of new plugin changes. |
This issue has been linked to a new work item: W-9747902 |
Our developer informs me they manually modified the For the record, the
|
@gsbasso thanks for the reproduction help. I found the error in the SDR library, so the fix should be in the RC on Thursday, into the "main" for next Thursday. I'd suggest using your workaround in the meantime, but it'll work both ways once this gets released. |
Hi @gsbasso this should be fixed in the latest-rc build of the cli 1.115.0, you can get it by either sfdx update stable-rc or npm install sfdx-cli@latest-rc --global depending on your preferred install method. Please let us know if you're still seeing this in 1.115.0 of the CLI |
Summary
This is another example of an issue related to the 7.112 update. After trolling through the commentary for other, similar issues I have actually identified and resolved the issue but I thought it might be helpful to others if I reported my particular experience. Plus I wanted to rant a little. First the rant...
So this is yet another example of a surprise change with no advance warning that has broken existing functionality (literally the command worked one day with the 7.110 release and then the next day the exact same command was failing, which, after some initial trouble-shooting, we realized was a result of a CLI update). In my world something that worked one day and then begins to fail after some sort of update is considered a bug. Fine you are now trying to enforce things you have been allowing until now, but this could have been handled a lot better.
How could it have been handled better? Why not write out a notice every time an
sfdx
command is run? You've done this before for other upcoming changes. And how about some option to test out the current source structure in advance of the official change to identify any potential problems? Related to that, how about returning some helpful error messages? The error message that we were seeing is completely unhelpful. Now on to the actual issue...Basically we were attempting to deploy the source of a custom object. Within the
object-meta
source we had the following content:As you might guess we are enabling history tracking on the
Owner
system field. The solution (workaround?) was to remove the above content from theobject-meta
file and create an actualOwnerId.field-meta.xml
file under thefields
sub-folder of the custom object.It's worth pointing out that in terms of the documented schema
fields
elements are perfectly legal/allowed as part of a custom object definition. And this has been allowed/supported up until now.Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.
object-meta
source file for a custom object add the abovefields
content to enable history tracking for theOwner
system fieldsfdx force:source:deploy -u <alias> -m CustomObject:MyObject__c
-p
parameter instead of-m
Expected result
Deploy succeeds (and was succeeding with the 7.110 release).
Actual result
Command fails with the error:
Component conversion failed: group.push is not a function
As previously noted the error is entirely unhelpful.
System Information
Additional information
As noted, to resolve simply create a
field-meta
file for the system field under thefields
sub-folder.The text was updated successfully, but these errors were encountered: