vignaesh01 / sfdx-package-generator

Salesforce Package.xml Generator Extension for VS Code
https://marketplace.visualstudio.com/items?itemName=VignaeshRamA.sfdx-package-xml-generator
Other
63 stars 31 forks source link

I am getting the error "ERROR running force:source:retrieve: Cannot read property 'metadataName' of undefined" When i choosed select ALL option on the components for package.xml page. #13

Closed PreethiThotaMednax closed 4 years ago

PreethiThotaMednax commented 5 years ago

I ran sfdx update. This is the result what got : sfdx-cli: Updating CLI... already on latest version: 7.25.3-16d54c01ee This is the version of the VS Code I am using: 1.38.1(User Setup) Please Suggest.

vignaesh01 commented 5 years ago

Hi Preethi, Would you be able to send me the logs?

On Tue 24 Sep, 2019, 1:43 AM PreethiThota, notifications@github.com wrote:

I ran sfdx update. This is the result what got : sfdx-cli: Updating CLI... already on latest version: 7.25.3-16d54c01ee This is the version of the VS Code I am using: 1.38.1(User Setup) Please Suggest.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vignaesh01/sfdx-package-generator/issues/13?email_source=notifications&email_token=ADDYPO3OUXP7VQP4OYEL2CDQLEPNXA5CNFSM4IZRD5VKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNEILYQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDYPO7GJBEHJIO6GWIGPVTQLEPNXANCNFSM4IZRD5VA .

PreethiThotaMednax commented 5 years ago

Hi Vignaesh, Please help me understand how to get you the logs ?

Thank you

From: Vignaesh Ram A notifications@github.com Sent: Tuesday, September 24, 2019 11:16 AM To: vignaesh01/sfdx-package-generator sfdx-package-generator@noreply.github.com Cc: Preethi Thota Preethi_Thota@mednax.com; Author author@noreply.github.com Subject: Re: [vignaesh01/sfdx-package-generator] I am getting the error "ERROR running force:source:retrieve: Cannot read property 'metadataName' of undefined" When i choosed select ALL option on the components for package.xml page. (#13)

Hi Preethi, Would you be able to send me the logs?

On Tue 24 Sep, 2019, 1:43 AM PreethiThota, notifications@github.com wrote:

I ran sfdx update. This is the result what got : sfdx-cli: Updating CLI... already on latest version: 7.25.3-16d54c01ee This is the version of the VS Code I am using: 1.38.1(User Setup) Please Suggest.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vignaesh01/sfdx-package-generator/issues/13?email_source=notifications&email_token=ADDYPO3OUXP7VQP4OYEL2CDQLEPNXA5CNFSM4IZRD5VKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNEILYQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDYPO7GJBEHJIO6GWIGPVTQLEPNXANCNFSM4IZRD5VA .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_vignaesh01_sfdx-2Dpackage-2Dgenerator_issues_13-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAMUDKYLS7CQZGZLXUL7WEELQLIVL5A5CNFSM4IZRD5VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7OXISI-23issuecomment-2D534606921&d=DwMFaQ&c=Dez3ewUsi9RNFWThSvN21g&r=qNc6TWl1GKCSQKsBPvF5lQmlu-_Fr2Jqmj_fsZQQ4Kw&m=y9IO3ZVbCZcJitXhK2GsZA4wjSvQP0DCdVURiDiy798&s=yAHD3o6-ITAQcyCoB2F5xfn66-SOsEujxLdPbgwuIAQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMUDKYPL6TG7UAHF6UTREWLQLIVL5ANCNFSM4IZRD5VA&d=DwMFaQ&c=Dez3ewUsi9RNFWThSvN21g&r=qNc6TWl1GKCSQKsBPvF5lQmlu-_Fr2Jqmj_fsZQQ4Kw&m=y9IO3ZVbCZcJitXhK2GsZA4wjSvQP0DCdVURiDiy798&s=4zng7AAp6Fc1D_LbaTJ9dt7PV7-WVpNgfeffT55qPRk&e=.

PreethiThotaMednax commented 5 years ago

Hi Vignaesh, I would like to be more specific with the error details. I am authorized to my developer sandbox. I updated my package.xml using the Select All button. Then when I retrieve source in the manifest from org I am getting the below error: ERROR running force:source:retrieve: Cannot read property 'metadataName' of undefined

Please find the log attached. Log.log

Please Suggest

vignaesh01 commented 5 years ago

Hi Preethi, Since you are getting the error while running force:source:retrieve, please raise an issue under https://github.com/forcedotcom/salesforcedx-vscode . Please have faced similar issues and have raised it there.

As a quick fix, remove unnecessary metadata entries from your package.xml file.

Hope this helps.

PreethiThotaMednax commented 5 years ago

Hi, Thank you. I ran the command sfdx force:mdapi:retrieve and was able to retrieve without any issues.