-
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
source:convert issue with CLI V7.112.0 #1115
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. |
I made some edits for clarity--this is an issue with the new version of source:convert. What we've seen so far is that most errors are related to unusual folder structures and file locations. for example, having empty Aura/LWC bundles, or bundles without the normal file types: #1099 or putting non-object-related files inside an object folder. Is there anything unusual about our project's structure or that aura component specifically? If you're able to replicate with a simplified example, please share that (zip file, git repo, etc). |
Thanks for quick response, I think you have identified the issue. The folder structure has two SelectTicketPlan folders instead of just one. The second one is a subfolder of the 1st one. src-path I'm happy to remove the extraneous one and see if the issue is resolved. Will update case with outcome. |
I removed the extraneous folder. This solved the Aura Definition issue. However the deploy still fails with 584 errors. This represents missing types in the package.xml file namely Custom Field, List View, Record Type, Compact Layout and Button or Link, The v7.112.1 package.xml is 32K whereas the v7.110 is 64k. Here is the sfdx-project-json file. We do not have force-app in the path. ], "sfdcLoginUrl": "https://login.salesforce.com", Here is the version info I did not provide previously { |
I'm seeing what I assume is the same issue. Upon sfdx force:source:convert I also get these differences with my current CLI (7.113.0-1159219):
A comment above mentions unusual folder locations; however I always use the suggested default folder locations. This was originally happening with CLI version 7.112.1 so I upgraded to the latest hoping it would be fixed but no. The outcome of Package.xml having stuff missing is deployment failure. Is the workaround to reinstall an older CLI? I had uninstalled and reinstalled sfdx due to another recent issue. |
This issue: "the PackageName being used as the foldername underneath the outputdir" is being fixed and will be included in the CLI release candidate that will be published later today. This issue: "the Package.xml has a lot of stuff missing" we need more details. Can you diff the files and let us know what's missing? There is a different library being used for the convert and deploy so there will be differences. Some of those differences (even file size) can be ok and some are not. We need to know what the differences are though before we can address them. As a workaround, the most reliable and easiest method is to install an older version of the CLI until the issue is fixed. |
@avrilzen - The types you listed (Custom Field, List View, Record Type, Compact Layout and Button or Link) are children of CustomObjects. What does that folder structure look like? They should all be directly under |
Thanks for your comment @shetzel . Issue 1: PackageName... Understood. Issue 2: Package.xml stuff missing... Missing components identified during the failed metadata deploy are: Installing older CLI edralph@Eds-MacBook-Pro-2 SuperRoundRobin % sfdx version |
I am confirming that this is the folder structure for objects. On examining the converted content of a specific object the types are present (listviews, fields, recordtypes, validation rules...). They just don't get added to the package.xml file. This then becomes a deployment issue. |
Ditto @shetzel - folder structure for my objects is the same. objects/Custom_Object__c/fields These don't get added to the package.xml file and then get a metadata deploy failure because these listviews and fields are not in package.xml. |
@avrilzen @edralph - Are the When you say it causes deploy failures, what is the command you used (and all flags) and what are the errors? We have lots of tests that ensure this works and I just tried using the ebikes-lwc repo and it worked. The package.xml contents were as you described for CustomObjects but the deploy was successful and I see those fields and list views in the org. |
@shetzel - yes the CustomObject entries are in package.xml. The only reason I mention that they are not there is the deploy error message says they are not in there. I use this to deploy:
Another 90 or so lines of that... then
And when I look at the Deployment Status in my packaging org, I see the same output: |
@shetzel do your tests cover the case of deploying to a package org? This seems to be common to both of us on this thread experiencing the same issue. |
@avrilzen, how did you install a previous version of the CLI? When I run |
@edralph Ditto re the sfdx plugins:install not being effective. I had to uninstall cli and then install a specific version using npm. npm install sfdx-cli@ –global. In VS Code I also had to set terminal.integrated.defaultProfile.windows. This may not be necessary in your case. |
@edralph - npm on windows |
@avrilzen I installed npm, uninstalled sfdx-cli and then installed the cli using npm. Worked a treat and now I'm back on 7.110.0 and my convert / deploy process works as it used to. Thanks! |
I have |
@avrilzen - No the tests do not deploy to a packaging org. I'll mark this as a bug and get those fields back in. |
This issue has been linked to a new work item: W-9762933 |
Hi everyone, 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 |
@WillieRuemmele I tested with the latest RC (7.115.1-a6551a9) and I am still seeing this problem where child components of CustomObject like CustomField are not included in package.xml when the force:source:convert command is run with the -n option. |
This issue has at least 3 sub-issues and not all of them are fixed. Fixed:
Not Fixed:
This last one is something I hope to get into the next CLI release candidate. |
@mshanemc @shetzel I updated cli to v7.115.1 to test the fix for deploying to a packaging org. A sfdx force:source:convert -d .mdapioutput -n “packageName” was run. While the missing types reported previously have now been included in the package.xml file, the deploy is still failing on missing types in the package.xml. In my case the missing types are Workflow Rule and Workflow Field Update. I added these types manually to the generated package.xml file. On doing this, the deploy to the packaging org is successful. I think this ticket is in closed status. Can it be reopened or does a new ticket need to be created? Thanks |
@avrilzen - Sorry the fix is incomplete. That should have fixed it for all child types but Workflow looks like it's categorized incorrectly so the child types are not added. I'll reopen this and work on another fix. |
Summary
Failure deploying to a Generation 1 package org using CLI v7.112.0.
sfdx force:mdapi:deploy fails on Fatal Error UNKNOWN_EXCEPTION:
Before running the deploy sfdx force:source:convert - n 'packagename' was run.
Under v7.110 there is no problem with deployment. Had to uninstall cli and install a previous version for deployment to be successful.
Steps To Reproduce:
1 Make sure you have an aura component and are deploying a generation 1 package.
2 Run sfdx force:source:convert -d outputdir - n 'packagename'
3 sfdx force:mdapi:deploy -d outputdir/packagename -u packageorg
Not sure if this is significant but in sfdx-project.json our default path is not force-app.
Running convert on v7.112 the following differs from v7.110.
Expected result
Deployment to a patch org or package org should have been successful. It is successful when using cli v7.110.
Actual result
Deployment FATAL ERROR: UNKNOWN_EXCEPTION: Unable to handle Aura Definition 'auracomponentname/auracomponentname/auracomponentname.design'. filepath not expected
System Information
Run
sfdx version --verbose --json
and paste the output here.Information no longer available. I had to uninstall cli and install a previous version.
Additional information
Feel free to attach a screenshot.
The text was updated successfully, but these errors were encountered: