SFDO-Community / declarative-lookup-rollup-summaries

Declarative Lookup Rollup Summaries (DLRS) is a community built and maintained Salesforce application that allows you to create cross object roll-ups declaratively - no code! For install instructions and documentation, visit our website https://sfdo-community-sprints.github.io/DLRS-Documentation/
https://sfdo-community-sprints.github.io/DLRS-Documentation/
BSD 3-Clause "New" or "Revised" License
696 stars 238 forks source link

Unable to connect to the Salesforce Metadata API. #939

Open FabLavielle opened 4 years ago

FabLavielle commented 4 years ago

I have installed the DLRS package and keep having this error: "Unable to connect to the Salesforce Metadata API. This could be because it is the first time installing this tool or your Salesforce domain has changed. A Remote Site Setting must be created or updated in your org before you can use this tool. Press the Create Remote Site Setting button to perform this step or refer to the post install step below to perform this manually."

I have deleted the remote site and tried to recreate one - nothing I have uninstalled and re-installed the package - nothing I have modified the remote site URL - nothing

I have granted you access to the org: 00D0b000000R7RJ

Can you please help me out here? It's quite urgent. Thank you!

SaschaLoeffler commented 4 years ago

Hi, we are facing exactly the same issue in one of our clients orgs. This is a Professional Edition Org and the app worked 2 weeks before in that org. We also tried same things like FabLavielle and nothing helped. Was there a change from Salesforce regarding API?!

LawranceT commented 4 years ago

I've hit the same problem. To confirm:

I have installed v 2.12, which should have resolved the problem. I have followed the instructions given as the solution to this issue in an earlier thread: https://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_forcecom_development_custom_metadata_require_cruc.htm

I've checked that I have the permission Customize Application and, as system administrator, I have access to modify all data. Can anyone shed light on this?

KPuzzanghera commented 4 years ago

I'm having the same issue.
I'm on v.2.12 in the sandbox. I've reinstalled. I tried manually creating the remote site (deleted when it didn't work to not confuse things). I enabled the DLRS custom metadata types for the system admin profile and I have all the above permissions people have listed.

Anyone have any ideas?

epohlabel commented 4 years ago

Same issue - tried all the same solutions. It looks like the remote site is created - but when reverting to the Manage tab or attempting to manage the child trigger I get the metadata error. Maddening!

gpscott81 commented 4 years ago

Hi, I had the issue and found there was a url in very light writing at the bottom of the welcome tab. This was different to the bolded url that I was being asked to manually add, if the button did not work. I copied this in and it worked for me. Sorry I'm not a develoiper or anything but I was having same issues and now working great.

LawranceT commented 4 years ago

Hi I've just followed the directions provided by @gpscott81 and this has resolved the issue. Definitely one to add to the 'how to' manual.

KPuzzanghera commented 4 years ago

Worked for me as well. Thank you so, so much!

johndturn commented 4 years ago

I believe that I'm running into the same error under the same circumstances (though I can't resolve it according to @gpscott81's advice):

Unfortunately, I'm not seeing any other URL on the Welcome tab to use for updating my Remote Site Setting. Here's a screenshot of what I'm seeing (Note that I've blanked out my Orgs domain).

Screen Shot 2020-06-24 at 12 01 26 PM

Specifically, the Debug log at the bottom of the screen (which I'm assuming is what @gpscott81 is referring to when saying "light writing") says this:

DEBUG USE ONLY: Web service callout failed: WebService returned a SOAP Fault: API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner faultcode=sf:API_DISABLED_FOR_ORG faultactor=

Some other notes that I mentioned in a comment I made in a similar issue:

Am I missing something? Or is this a different issue altogether?

selfuntitled commented 4 years ago

@johndturn - it looks like the problem you're having has the same symptom but a different underlying cause - you cannot deploy using the Tooling API in PE so the remote site that is used to deploy trigger based real-time calc is not available. See this note on using DLRS in professional edition. https://salesforce.stackexchange.com/questions/196113/drls-in-salesforce-professional-edition

afawcett commented 4 years ago

At one point it was possible to use DLRS with PE when configuring it did not require Metadata API usage - since the tool switched to Custom Metadata Types to hold its configuration - this is no longer true. So sorry - @johndturn you are not missing anything.

afawcett commented 4 years ago

Moving this to a wiki update per https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/939#issuecomment-633659861. I also flagged some workarounds here - https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/962 - and here https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/947 - but none are great.

johndturn commented 4 years ago

@afawcett Not a problem, thanks for your help in diagnosing the issue. I appreciate it! Looks like it was just my misunderstanding of documentation (or lack thereof in certain circumstances).

Love the tool, and thanks for the continued help!

h4xl3x commented 4 years ago

@afawcett We're running the PE edition as well. Can you clarify if we can use DLRS at all? I'm confused since @afawcett said it's not working but you're saying that you love the tool :-)

Cheers