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

Remote site setting creation #8

Open
alachmann opened this issue Feb 10, 2017 · 7 comments
Open

Remote site setting creation #8

alachmann opened this issue Feb 10, 2017 · 7 comments

Comments

@alachmann
Copy link

alachmann commented Feb 10, 2017

if my domain name (sbx) is like aa-bbb-cc--testfull.cs87.my.salesforce.com, remote site setting creation failed because label with 2 "_" is forbidden "aa_bbb_cc__testfull_mdapi"

classe : CustomMetadataLoaderController
prefixOrLocal = host.substringBefore('.').replaceAll('-', '');
=> prefixOrLocal = host.substringBefore('.').replaceAll('-', '
').replaceAll('__', '_'); /for instance/

@sricharananand
Copy link
Contributor

Thanks - will take a look and fix.

@abhidotnet
Copy link

I am facing the exact same issue. I Have a custom domain and it is not letting me create a remote site. How do I go about doing this manually?

@alachmann
Copy link
Author

alachmann commented Mar 7, 2017 via email

@britishboyindc
Copy link

britishboyindc commented Aug 29, 2017

I found I needed to add the domain of the VF page as a Remote Site to allow the Remote Site creation piece to work e.g.
https://[CustomDomain].na59.visual.force.com
To find that, I added {!host} to the VF page and then just copied to Remote Site

@benderguy
Copy link

For anyone else who had this problem, you can easily solve it by manually creating a remote site setting for the domain of the page you are seeing when you get the error. In other words, if the page is:
https://YourDomainName--c.ap7.visual.force.com/apex/CustomMetadataLoader

Then create a remote site setting for:
https://YourDomainName--c.ap7.visual.force.com

Then try the page again and it should work.
(At least this is what worked for me.)

@catalandres
Copy link

After adding the remote site setting, I get the following error:

System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=
Error is in expression '{!checkMdApi}' in component apex:page in page custommetadataloader: Class.MetadataService.MetadataPort.listMetadata: line 9218, column 1
Class.MetadataUtil.checkMetadataAPIConnection: line 30, column 1
Class.CustomMetadataLoaderController.checkMdApi: line 16, column 1

Class.MetadataService.MetadataPort.listMetadata: line 9218, column 1
Class.MetadataUtil.checkMetadataAPIConnection: line 30, column 1
Class.CustomMetadataLoaderController.checkMdApi: line 16, column 1

Is this a proper continuation of this issue or should I open a new one?

@aishonline4u
Copy link

I was having trouble with creating Remote site settings too, so I manually created the same. By that way, I was able to successfully open page for Custom Metadata Migrator. But while clicking Custom Metadata Loader, I am getting below error, please suggest if anyone has faced the same have any solution, will be very helpful.

IO Exception: Exceeded max size limit of 6000000
Error is in expression '{!checkMdApi}' in component apex:page in page custommetadataloader: Class.MetadataService.MetadataPort.listMetadata: line 9218, column 1
Class.MetadataUtil.checkMetadataAPIConnection: line 30, column 1
Class.CustomMetadataLoaderController.checkMdApi: line 16, column 1

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

No branches or pull requests

7 participants