salesforce-common-errors

Featured

Diagnose and fix Salesforce common errors, SOQL issues, and API exceptions. Use when encountering Salesforce errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "salesforce error", "fix salesforce", "salesforce not working", "debug salesforce", "SOQL error", "salesforce exception".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Salesforce Common Errors ## Overview Quick reference for the most common Salesforce API errors with real error codes, messages, and solutions. ## Prerequisites - Salesforce connection established (jsforce or simple-salesforce) - Access to Setup in your Salesforce org - Familiarity with sObject field API names ## Instructions ### Step 1: Identify the Error Check the `errorCode` field in the API response or the exception from jsforce. ### Step 2: Match to Error Below --- ### INVALID_LOGIN — Authentication Failed ``` [{"message":"INVALID_LOGIN: Invalid username, password, security token; or user locked out.","errorCode":"INVALID_LOGIN"}] ``` **Cause:** Wrong credentials or security token. **Solution:** ```bash # Reset security token: Setup > My Personal Information > Reset My Security Token # Append token to password: password + securityToken # Verify IP is whitelisted or token is appended echo "Password format: ${SF_PASSWORD}${SF_SECURITY_TOKEN}" ``` --- ### INVALID_FIELD — Wrong Field Name in SOQL ``` [{"message":"SELECT Id, FullName FROM Account\n ^\nERROR: No such column 'FullName' on entity 'Account'","errorCode":"INVALID_FIELD"}] ``` **Cause:** Field API name does not exist on the sObject. **Solution:** ```typescript // Check available fields via describe const meta = await conn.sobject('Account').describe(); const fieldNames = meta.fields.map(f => f.name); console.log('Available fields:', fieldNames.join(', ')); // Common mistake: "FullName" vs "...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category