• WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Field Service Solutions
      • Field Service for Enterprises
      • Field Service for SMBs
    • AI/ML Solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
    • Events
      • Employee Empowerment Series
      • Employee Engagement Series
      • Knowledge Sharing Sessions
  • REACH US
    • Contact Us
    • Careers
  • BLOG
    • WHO WE ARE
    • WHAT WE DO
      • Salesforce
        • Implementations
          • Sales Cloud
          • Service Cloud
          • CPQ
        • Developments
          • Salesforce Customization
          • Custom Application Development
          • AppExchange Product Development
        • Migrations
          • Classic to Lightning Migration
          • Other Systems to Salesforce Migration
        • Integrations
      • Field Service Solutions
        • Field Service for Enterprises
        • Field Service for SMBs
      • AI/ML Solutions
        • Agentic AI
    • HOW WE DO
      • Delivery Model
      • Our Works
      • Events
        • Employee Empowerment Series
        • Employee Engagement Series
        • Knowledge Sharing Sessions
    • REACH US
      • Contact Us
      • Careers
    • BLOG
  • [email protected]
  • (+91) 44-49521562
Merfantz - Salesforce Solutions for SMEs
Merfantz - Salesforce Solutions for SMEs
  • WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Field Service Solutions
      • Field Service for Enterprises
      • Field Service for SMBs
    • AI/ML Solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
    • Events
      • Employee Empowerment Series
      • Employee Engagement Series
      • Knowledge Sharing Sessions
  • REACH US
    • Contact Us
    • Careers
  • BLOG

Salesforce Errors You Should Never Ignore

  • March 30, 2026
  • Gobinath
  • Salesforce Consulting, Salesforce Consulting Services
  • 0

I once got a midnight call from a sales manager: reports stopped, leads vanished from queues, and the team could not close deals. I felt the pressure—downtime was costing the business real money and the customer experience was at risk.

I dug into the system and used Setup diagnostics, Login History, and validation logs to find the root cause quickly. That approach let me separate harmless quirks from showstoppers.

In this guide, I explain how platform limits (SOQL/DML caps, heap and CPU thresholds) and messages like FIELD_CUSTOM_VALIDATION_EXCEPTION or System.LimitException map to practical fixes. I show how to bulkify code, avoid DML in loops, and use selective queries so your org stays healthy.

common salesforce errors

Key Takeaways

  • I prioritize fixes that unblock revenue-driving business processes and protect customer outcomes.
  • Built-in diagnostics help surface actionable information fast, so you don’t guess.
  • Watch for validation failures, permission gaps, non-selective queries, and governor limit breaches.
  • Bulkify logic, use batch or queueable processing, and avoid queries or DML inside loops.
  • Document changes, preserve data integrity, and verify the system end-to-end before rollout.

What I watch for first: high-impact symptoms that signal a real problem

The first thing I look for is whether a live business process has stopped working for people right now. Quick checks save time and surface the issues that actually block value for the team.

Broken business processes and stalled user operations

I ask whether a user can’t create or update a record, or if a rep cannot complete a sale. When a critical operation is blocked, I treat it as urgent.

Login denials from wrong passwords, IP range blocks, or restricted login hours show up in Login History and are an easy example to verify fast.

Data integrity warnings vs. system exceptions

I separate save failures caused by validation rules from platform exceptions like System.QueryException or System.SObjectException.

Validation messages mean the data needs correction. Platform exceptions point to design or code problems and often require refactoring to avoid governor limit issues like Too many SOQL queries.

I run a few light checks—try another browser, clear cache, test the same action on a different record, and compare results across profiles—to decide the best way to fix the root cause.

Common salesforce errors I fix for admins and users

When a user reports they can’t complete a routine task, I start with the quick access checks. That fast triage separates locked accounts and simple UI problems from deeper system faults.

login issue

Login problems: passwords, IP ranges, and hours

I check Setup > User > Login History to see failed attempts and exact reasons. I also verify Password Policies and lockout settings so the account is not blocked.

Permission and visibility

I inspect profiles and permission sets for object and field-level access. Enabling Manage Profiles and Permission Sets lets me adjust rights and test with the target user to confirm record visibility.

Missing or hidden field

If a field seems absent, I check page layouts and FLS first. Conditional visibility or omitted fields in SOQL can make a field look invalid even when it exists.

Validation failures and transient system hiccups

I read the exact validation message to find required value or format issues, then correct the data or refine the rule. For internal server messages I ask users to refresh, clear cache, or try another browser while I review session health.

Guarding list and record access

I prevent System.ListException by checking list size before accessing index 0 and by validating query results. Finally, I document the fix in setup and ask the user to retest the full process for value confirmation.

Developer-side exceptions that break workflows and how I resolve them

A tiny omission in code can stop a business process cold — I focus on that first. I triage developer-side exceptions by reproducing the failure and isolating the transaction that caused it.

FIELD_CUSTOM_VALIDATION_EXCEPTION & REQUIRED_FIELD_MISSING

I catch REQUIRED_FIELD_MISSING by ensuring every required field is set before DML. If FIELD_CUSTOM_VALIDATION_EXCEPTION appears, I either adjust the data or refine the validation so the process can save valid records.

Null pointer and safe access

A NullPointer shows up when code dereferences an uninitialized object. I add null checks, initialize references, and use safe access patterns so the application never assumes data that might be missing.

List and query safeguards

To avoid System.ListException I check list size before reading index positions. For QueryException, I query into lists, verify size, and use selective, indexed filters so single-row assignments never throw no-rows errors.

Mixed DML and field selection

I separate setup and non-setup DML into different transactions or use Queueable/@future. And when a SObject is missing a field, I add that field to the SELECT so System.SObjectException is resolved.

My rules: validate required fields, guard nulls, verify lists, make queries selective, and back changes with unit tests.

Governor limits and performance errors I never ignore

I pay attention the moment a transaction takes too long or returns a limit message. These cap messages point to design or data problems that can stop critical processes and frustrate users.

governor limits

Too many SOQL queries: 101 — bulkify and consolidate

A “Too many SOQL queries: 101” error usually means a query ran inside a loop. I move queries outside loops, build maps keyed by Id, and let one query serve many records.

Too many DML statements: 151 — stage and commit in bulk

A “Too many DML statements: 151” error means DML ran repeatedly. I collect sObjects in a list, then perform a single update. That one change prevents iterative updates and reduces heap use.

Apex CPU time limit exceeded — trim logic and go async

CPU limits (roughly 10s sync, 60s async) show when code spends too much processing time. I simplify complex logic, add selective filters, and move heavy work to Queueable or Batch jobs so user actions stay responsive.

Too many query rows and heap size issues — filter, page, and batch

When queries return over 50,000 rows or heap size spikes, I add WHERE clauses, LIMIT/OFFSET, or switch to Batch Apex. I also query only needed fields to keep memory small and speed the system.

My rule: design for scale — balance synchronous steps for immediate needs and asynchronous work for large data sets. That way I avoid repeat error types and keep account and record operations reliable.

My step-by-step troubleshooting workflow to keep records and processes healthy

My first move is to recreate the failing action so I can see the problem play out in real time. Reproducing the issue gives me concrete information I can use instead of guessing.

Reproduce and capture logs. I run the action with debug logging enabled to record SOQL and DML counts, stack traces, and any validation messages. That information tells me whether the error is data, code, or platform related.

Check access in setup. I inspect the user’s profile, permission sets, sharing, and field-level security so the tool grants necessary access without exposing sensitive data.

Review validation, layouts, and queries. I scan rules that demand certain fields or formats and verify queries are selective and include required fields so no SObject row-not-queried issues appear.

Refactor to respect limits. I remove SOQL or DML from loops, bulkify triggers, and move heavy work to Queueable or Batch jobs. That keeps operations fast and avoids repeat error types.

Test as a real user and verify data. I use a least-privileged user for an example run, confirm records save correctly, and check data integrity across target objects. Finally, I coordinate with my team, document findings, and share with the community so fixes hold in daily operations.

Conclusion

Conclusion

Quick action keeps the platform reliable and protects customer outcomes. I act fast on validation failures, permission gaps, and governor limit messages like 101 SOQL or 151 DML so the business can keep moving.

I use Setup diagnostics (Login History, Password Policies), bulkify code, apply selective queries, and move heavy work async. I also add defensive checks to guard against QueryException, SObjectException, ListException, and NullPointer.

Clear the cache for transient internal messages, test with a least-privileged user, and document the fix. Small guardrails—validate a field before save or limit query size—stop repeating issues and keep the user experience steady.

FAQ

What should I look for first when I suspect a serious platform issue?

I start by watching for high-impact symptoms: stalled user tasks, failing business processes, and sudden spikes in failed operations. Those signs often point to workflow interruptions, data integrity problems, or system exceptions that need immediate attention.

How do I distinguish data integrity warnings from system exceptions?

I compare the symptoms: data integrity issues usually show bad or missing values, duplicate records, or validation failures. System exceptions present as stack traces, timeouts, or internal server messages. Capturing logs and reproducing the issue helps me tell them apart quickly.

What are the most frequent access problems I fix for admins and users?

I often resolve login failures due to wrong passwords, restrictive IP ranges, or login hour policies. I also correct permission and visibility gaps by updating profiles, permission sets, field-level security, and record sharing so users can access needed information.

Why does a required field seem present but still block a save?

That usually happens when the field is hidden on the layout or blocked by field-level security. I check page layouts and FLS settings, and then run a save test with the affected profile to confirm and fix the visibility issue.

What causes validation rule failures and how do I approach them?

Validation rules fail when required values are missing or formats are incorrect, or when automation changes data in ways that trigger rules. I inspect the rule logic, test sample records, and update processes or exceptions so the rule enforces business needs without breaking integrations.

How do I fix intermittent internal server errors or cache-related problems?

I clear browser cache, try a different browser or incognito mode, and check session timeouts. If the issue persists, I capture the error ID, review platform status and logs, and escalate to platform support when the trace shows backend faults.

What are FIELD_CUSTOM_VALIDATION_EXCEPTION and REQUIRED_FIELD_MISSING during DML, and how do I handle them?

These exceptions occur when code or integrations insert or update records that violate validation rules or omit required fields. I examine debug logs, validate input sources, add null checks, ensure required fields are populated, and adjust automation order where possible.

How do I prevent null pointer issues like Attempt to de-reference a null object?

I add defensive programming: null checks, safe navigation, and guard clauses before accessing object fields. I also create unit tests that simulate empty responses so the code handles real-world data safely.

What causes list index out of bounds and how can I guard against it?

This happens when code assumes a list has elements without verifying. I add checks for list size, use safe iteration patterns, and protect against empty query results to avoid System.ListException crashes.

How do I handle System.QueryException like no rows for SObject or non-selective queries?

I write queries that handle zero-row results gracefully and enforce selective filters with indexed fields. For large datasets, I use pagination, reduce returned fields, and rely on SOSL or batch processing when appropriate.

What is the mixed DML operation error and how do I resolve it?

Mixed DML occurs when setup and non-setup objects are modified in a single transaction. I separate operations into asynchronous steps—Queueable or future—or rework the process so setup object changes happen outside the same transaction.

How do I avoid hitting the 101 SOQL queries limit?

I bulkify code, consolidate queries outside loops, and move repeated lookups into maps. When necessary I use relationships in select statements and cache query results during the transaction to minimize calls.

What steps prevent reaching the 151 DML statements cap?

I perform DML on collections rather than one record at a time, combine updates where possible, and eliminate DML inside loops. Using batch Apex or change sets for bulk updates also keeps me under limits.

How do I reduce Apex CPU time limit errors?

I optimize algorithms, add selective filters, offload heavy work to asynchronous processes, and simplify nested loops. Profiling logs helps me find hotspots and refactor them for efficiency.

What causes too many query rows or heap size issues and how do I control them?

These stem from returning excessive data or holding large collections in memory. I enforce pagination, query only required fields, and process large datasets in batches to keep heap and row counts within safe thresholds.

What is my step-by-step workflow when troubleshooting record or process issues?

I reproduce the issue, capture debug logs, and isolate whether it’s a permission, validation, layout, or code problem. I then inspect profiles, permission sets, sharing, and FLS; review validation rules and layouts; analyze queries for selectivity; and refactor code or flows to respect limits. Finally, I test with a least-privileged user and validate data integrity in the target objects.

How do I test fixes safely without impacting production users?

I use a sandbox environment that mirrors production, deploy changes through change sets or CI pipelines, and run automated tests. When ready, I schedule production updates during low-traffic windows and notify stakeholders to minimize disruption.

Author Bio

Gobinath
My Profile | + Recent Posts

Co-Founder & CMO at Merfantz Technologies Pvt Ltd | Marketing Manager for FieldAx Field Service Software | Salesforce All-Star Ranger and Community Contributor | Salesforce Content Creation for Knowledge Sharing

  • March 24, 2026
    Salesforce Integration With Payment Gateways (Stripe, Razorpay, PayPal)
  • March 17, 2026
    When Should You Hire a Salesforce Consultant?
  • March 10, 2026
    7 Salesforce Customizations That Save Time for SMEs
  • March 3, 2026
    The Ultimate Salesforce Maintenance Checklist
Tags: Common Salesforce ErrorsCRM Error ManagementData Migration ErrorsSalesforce Bug FixesSalesforce Data IntegritySalesforce Deployment IssuesSalesforce Error CodesSalesforce Platform MaintenanceSalesforce System Integration BugsSalesforce Troubleshooting

Gobinath

Co-Founder & CMO at Merfantz Technologies Pvt Ltd | Marketing Manager for FieldAx Field Service Software | Salesforce All-Star Ranger and Community Contributor | Salesforce Content Creation for Knowledge Sharing

https://www.salesforce.com/trailblazer/gobinath
  • Next Salesforce Integration With Payment Gateways (Stripe, Razorpay, PayPal)
Merfantz Technologies is a leading Salesforce consulting firm dedicated to helping small and medium enterprises transform their operations and achieve their goals through the use of the Salesforce platform. Contact us today to learn more about our services and how we can help your business thrive.

Discover More

Terms and Conditions
Privacy Policy
Cancellation & Refund Policy
Information Security Policy

Contact Info

  • No 96, 2nd Floor, Greeta Tech Park, VSI Industrial Estate, Perungudi, Chennai 600 096, Tamil Nadu, INDIA
  • (+91) 44-49521562
  • [email protected]
  • 9:30 IST - 18:30 IST

Latest Posts

Salesforce Errors You Should Never Ignore March 30, 2026
Salesforce Integration With Payment Gateways (Stripe, Razorpay, PayPal) March 24, 2026
When Should You Hire a Salesforce Consultant? March 17, 2026

Copyright @2023 Merfantz Technologies, All rights reserved