forcedotcom / SFDX-Data-Move-Utility

SFDMU is a cutting-edge Salesforce data migration tool for seamless org population from other orgs or CSV files. It handles all CRUD operations on multiple related objects in one go.
BSD 3-Clause "New" or "Revised" License
451 stars 76 forks source link

[BUG]-Cannot read property 'child__rSFields' of undefined #158

Closed kamalsomu closed 4 years ago

kamalsomu commented 4 years ago

Describe the bug I am getting an error when trying to export csv file from source environment

This has occurred when i have tried to multi select fields using "all" keyword for the case object.

export.json export.txt

Log file 2020-08-08__10_24_13.log

kamalsomu commented 4 years ago

I have tried multi selecting fields using "all" keyword for account object. It was working fine perfectly. The issue is happening only when only when querying the Case Object.

hknokh commented 4 years ago

Hello, @kamalsomu This is kind of errors that I could not reproduce on my side, because it's depend on the specific metadata of the org. There is two option here, you can try to download the source code of the Plugin and locate the root case of the issue then tell me to fix, or if you have the playground org that I can reproduce it there you can give me the access to investigate the issue. Thanks

kamalsomu commented 4 years ago

Hello, @kamalsomu This is kind of errors that I could not reproduce on my side, because it's depend on the specific metadata of the org. There is two option here, you can try to download the source code of the Plugin and locate the root case of the issue then tell me to fix, or if you have the playground org that I can reproduce it there you can give me the access to investigate the issue. Thanks

The salesforce environment that I have tried is the brand new Einstein analytic enabled developer edition which I have signed from this link.(https://developer.salesforce.com/promotions/orgs/analytics-de). I have not created any other custom metadata in that edition.

Could you please try with this edition or if you want to provide you the access for the edition, can I know your email Id?

hknokh commented 4 years ago

@kamalsomu I created the edition instance and am able to reproduce the issue, I will fix it and let you know when done.

kamalsomu commented 4 years ago

@hknokh I was about to give the login access :) Thanks a lot for the update. :)

hknokh commented 4 years ago

@kamalsomu I've fixed the issue, please update the plugin and retry. In addition I want to point you on some consideration regarding your export.json.

Below the suggested modification of your export.json file:

{
"objects": [{ "query": "SELECT Id,Name,BillingAddress FROM Account limit 5", "operation": "Readonly" },{ "query": "SELECT all FROM Case", "operation": "Readonly", "master": false }
] }

kamalsomu commented 4 years ago

@hknokh The issue has been resolved. Thanks for fixing it faster and providing additional points for consideration.