Skip to content
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

Exported object files are empty .. except for one #3

Open
daveespo opened this issue Oct 18, 2018 · 5 comments
Open

Exported object files are empty .. except for one #3

daveespo opened this issue Oct 18, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@daveespo
Copy link

daveespo commented Oct 18, 2018

I have a hierarchy of objects in my Developer Edition org (I'm not using a scratch org right now)

Starting simply, the schema is:

TicketableEvent__c
  EventInstance__c
    TicketAllocation__c
      TicketPriceLevel__c

I ran the following command

sfdx djc:data:export -o "EventInstance__c,TicketableEvent__c,TicketAllocation__c,TicketPriceLevel__c" -u sfptdev.wolverine.dave -t export2

I'm attaching the content of the export2 directory -- don't worry, this is all bogus test data

Note that only TicketableEvent__c is populated with records. The other 3 child/grandchild/great-grandchildren are empty

Also note that TicketableEvent__c.json only has about 10 fields for each record -- the SOBject has dozens of fields.

I'm running the live copy of this plugin (sfdx plugins:link) right off master

How can I help further debug this?

empty.exports.zip

@dcarroll dcarroll added the bug Something isn't working label Oct 22, 2018
@dcarroll
Copy link
Owner

Sorry for the delay, just returned from holiday. Thanks for reporting this. Can you share the metadata for the Sobjects? This wold be helpful for me to debug the issue.

@dcarroll
Copy link
Owner

I've tried to duplicate the issue and could not. I used the metadata and data at https://github.com/dcarroll/dreamhouse-with-tickets to test.

@daveespo
Copy link
Author

objects.zip

Attached is the MDAPI format metadata for those 4 objects.

They contain Lookup references to other custom SObjects in the same (and in some cases) other namespaces so if you need those, I can provide a more complete schema -- I'd prefer to send those over via email vs. posting them on GH

Also, I can grant login access to this org if you care to poke and prod it directly

Thanks!

@dcarroll
Copy link
Owner

dcarroll commented Oct 26, 2018

Hey @daveespo . I've just done a major update that should take care of this. Although, I will caveat that I am not sure what namespacing will do to the process. My email address is easily discoverable, almost every preso I've ever done for salesforce has my email on the title slide, as is my twitter handle if you want a more private forum to work through this.

I'll see if I can install the objects in the test org that I mentioned above. I think one difference between my test org and the metadata that you provided is Master-Detail vs. Lookup. Your metadata should be a good test case for me to handle Master-Detail.

Cheers.

@daveespo
Copy link
Author

Yes, great progress forward here. I now have all of the files populated but I am indeed running afoul of problems including locally defined custom fields on managed package custom objects. (i.e. if pkg1 defines PaymentTransaction__c and my local project adds a custom fields to that object, it's not included in the export files)

Similarly, Lookups to Standard objects (Account/Contact) are not included in the dumped fields.

I'll send you email with the whole MDAPI project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants