When you use Legacy Named Credentials to establish a Snowflake input connection in CRM Analytics, the connection fails with an HTTP 500 error. The error message states that the Named Credential must be authenticated and use the Identity Type "Named Principal".
Example error:
`Something went wrong while executing the remoteSync_TEST__C node: WCA Invalid metadata or data: 'TEST__C' [error category: USER]: WCA Error. Received http '500'. {"errorMsg":"Please make sure Named Credential [NCSnowflakeTest] is authenticated and set Identity Type as Named Principle"} (02Kxxxxxxxxxxxx_03Cxxxxxxxxxxxx_xxx)`This article explains how to resolve the HTTP 500 "Invalid metadata or data" error that occurs when a CRM Analytics Snowflake connection uses a Legacy Named Credential. Legacy Named Credentials are not supported for this connection, so replace the credential with a non-legacy Named Credential.
Ensure that the External Credential (for example, Snowflake) is assigned to the appropriate profile or permission set.
After granting the required access, retry the Snowflake connection in CRM Analytics.
If the connection still fails, validate the connection using Postman, or use a SQL client such as DBeaver to verify the Snowflake connection. DBeaver is a third-party tool, and some customer environments do not allow its installation because of internal security policies.
In that case, open the Salesforce Developer Console and execute the following anonymous Apex script. The script sends a GET request to the Snowflake endpoint using the callout syntax, and the response body indicates whether the Named Credential is correctly authenticated.
`HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Snowflake'); // Snowflake
req.setMethod('GET');
req.setHeader('Accept','application/json');
HTTPResponse res = new Http().send(req);
System.debug(res.getBody());`
The issue is not related to CRM Analytics. The endpoint in the concerned API does not belong to Salesforce. We kindly request that you reach out to the external provider (e.g., Snowflake) for further support, as the API has been developed and maintained by their team. They will be the best point of contact to explain why the request is failing.
If the issue is found to be related to CRM Analytics or the Salesforce side, we will investigate it further.
005132454

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.