CustomMetadataLoader icon indicating copy to clipboard operation
CustomMetadataLoader copied to clipboard

Remote site setting creation

Open alachmann opened this issue 8 years ago • 7 comments

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/

alachmann avatar Feb 10 '17 14:02 alachmann

Thanks - will take a look and fix.

sricharananand avatar Feb 10 '17 22:02 sricharananand

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?

abhidotnet avatar Mar 07 '17 16:03 abhidotnet

Read visual force page code : it is waiting for a given name

Alexandre

Le 7 mars 2017 à 17:23, Abhijit [email protected] a écrit :

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/forcedotcom/CustomMetadataLoader/issues/8#issuecomment-284771894, or mute the thread https://github.com/notifications/unsubscribe-auth/ATzoUp70p6eaa3s6QTPBB0tjydsImO1fks5rjYSGgaJpZM4L9cDQ .

alachmann avatar Mar 07 '17 16:03 alachmann

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

britishboyindc avatar Aug 29 '17 15:08 britishboyindc

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.)

benderguy avatar Oct 27 '17 19:10 benderguy

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?

catalandres avatar Nov 14 '17 04:11 catalandres

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

aishonline4u avatar Dec 05 '18 20:12 aishonline4u