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

Install failed 2.4 update - New dependency on LookupChild's Sharing mode in Apex Unit Test #344

Closed
sbaird80 opened this issue Jun 20, 2016 · 6 comments
Labels

Comments

@sbaird80
Copy link

Getting an install failure when trying to upgrade from 2.3 to 2.4

  1. Custom Object Records Missing Organization Feature: dlrs__LookupChild__c.Sharing null
@jongpie
Copy link

jongpie commented Jun 21, 2016

I'm getting this too when upgrading from 2.2 to 2.4

@afawcett
Copy link
Collaborator

Thanks both. This is the first time i've used the Salesforce Release Patch feature hence the ".1" in the "2.4.1" release version. I'm wondering if something is different in this process. Starting to investigate....

@afawcett
Copy link
Collaborator

afawcett commented Jun 21, 2016

We have been discussing this in the Chatter gorup, this is the workaround...

"Can you go into Sharing Settings under the Setup menu and check if 'Lookup Child' has Private sharing set for it. Note that this object is used only to support the Apex tests in the package and does not contain any data."

I'm raising this as a bug now, as i've seen what caused this, ironically an Apex test i wrote brought in an a dependency on one of the test objects that get included in the package as requiring a private sharing model. Which for new installs is the case, but if your one of those that's been tracking the tool from the start, its not always been the case that this test object was set to private sharing and since this setting doesn't upgrade, it was never changed following upgrades. Which prior to this dependency was never really any issue... Phew that hurt my head a bit... Sorry folks.

@afawcett afawcett added the bug label Jun 21, 2016
@afawcett afawcett changed the title Install failed 2.4 update Install failed 2.4 update - New dependency on LookupChild's Sharing mode in Apex Unit Test Jun 21, 2016
@jongpie
Copy link

jongpie commented Jun 21, 2016

Ok, so I updated the sharing settings for the Lookup Child object - it was previously public read/write and I changed it to private. After the sharing settings were recalculated, I was able to update to 2.4.1!

@afawcett
Copy link
Collaborator

Excellent!

@afawcett
Copy link
Collaborator

Fixed in v2.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants