5

When I try to install the appexchange app "Salesforce Community Management Package for Communities with Chatter" into a scratch org, I receive the error "We've encountered an intermittent problem. Please click back on your browser and try again. If you continue to encounter the problem, please log a case in your Salesforce org to help us solve the issue."

Is this supported functionality? Or maybe I'm doing something wrong? Here are my specific steps:

  1. Navigate to the appexchange app at https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B5XHsEAN
  2. Click the "Get It Now" button.
  3. Choose "Log in to the AppExchange - Use your Salesforce credentials".
  4. Click the "Log In with a Different Username" link.
  5. Click the "Use Custom Domain" link.
  6. Enter the domain of my scratch org (without the leading https://) and click the "Continue" button.
  7. Receive error.

If it matters, I am using a Dev Hub trial org. I tried this with another (randomly-chosen) appexchange app (https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B5P9CEAV) and received the same error.

Possibly helpful - the URL of the error page contains the following: ...salesforce.com/genericerror?ErrorCode=No_Oauth_Token&ErrorDescription=invalid_grant+authentication+failure&ProviderId=0SO30000000TN4O...

I guess there's an auth issue at play?

Thanks.

  • 1
    You could try the initial steps of installing the package in another org and stop when you get to the URL that looks like /packaging/installPackage.apexp?p0=04t400000000001. Then login to your scratch org and use that URL to install the package. – Daniel Ballinger Sep 5 '17 at 19:04
  • 1
    Thanks, Daniel. Similar to what I figured out. Taking this one step further to using the sfdx force:package:install command is nice because it can be scripted. – Michael Scepaniak Sep 5 '17 at 19:54
6

Figured it out. You cannot use the sfdx force:package:install command using the ID of the appexchange app. The ID that is needed is eventually displayed in the URL during an interactive install of the app into a non-scratch org (at the step where you are asked to select which users should be granted access to the app). For example, the URL for the "Salesforce Community Management Package for Communities with Chatter":

The package ID needed is the value of the apvId parameter (04to00000007jkAAAQ). Feed this into the sfdx command like so:

  • sfdx force:package:install --id 04to00000007jkAAAQ -w 1000

More details about obtaining the package ID:

  • Very similar to this: salesforce.stackexchange.com/questions/185840/… – pchittum Sep 6 '17 at 6:14
  • I tried to install the exact same package and I am met with this error. Encountered errors installing the package!,Installation errors: 1) Missing Organization Feature: Networks 2) Missing Organization Feature: NetworksEnabledOnce – abhi Sep 8 '17 at 21:09
  • My bad, I suspect I have to enable communities in the scratchorg. – abhi Sep 8 '17 at 21:13
0

This article was helpful: https://success.salesforce.com/answers?id=9063A000000kpuqQAA Login with your production salesforce login

From your sandbox, click on AppExchange -> Get It Now -> Login with your production credentials (counter-intuitive, but this is what you need to do) Select Sandbox Environment Login with your sandbox credentials.

  • Note for other people seeing this in the review queues: This does appear to contain the important bits from the link. I'm not entirely sure if the same procedure applies to scratch orgs, but yeah, don't blindly click recommend delete because of non-spam link. – Derek F Mar 22 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.