Loading

Error 500: Invalid Metadata or Data When Using Legacy Named Credentials for Snowflake Connection in CRM Analytics

Udgivelsesdato: Oct 8, 2026
Beskrivelse

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)`
Løsning

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.

Step 1: Use a Non-Legacy Named Credential

  • As outlined in the Salesforce documentation, legacy Named Credentials are no longer updated or enhanced.
  • Configure a non-legacy Named Credential for Snowflake connections.

Step 2: Configure the Snowflake Settings

  • Follow the steps in the Snowflake connector setup guide to create and configure the new Named Credential.
  • Verify that the Named Credential shows the status Authenticated.

Step 3: Assign Access to Profiles or Permission Sets

Ensure that the External Credential (for example, Snowflake) is assigned to the appropriate profile or permission set.

Step 4: Re-Test the Connection

After granting the required access, retry the Snowflake connection in CRM Analytics.

Step 5: Validate the Named Credential Callout

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());`


Developer Console Apex script   
     Postman validation  
     

Yderligere ressourcer

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.

 

Vidensartikelnummer

005132454

 
Indlæser
Salesforce Help | Article