function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael AgresMichael Agres 

Field update doesn't go through without running a Debug Log

(Note: I've also posted this in the Trailblazer Community (https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Fxir6SAB).)

This is highly unusual behavior.
 
I have an Apex trigger that is supposed to update a field in a custom object with a value found in another custom object.
 
The update only goes through when I turn on the Debug Log for my login.
 
Why would this ever be the case?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Michael,

This is very unusual behaviour. If possible can you share the code snippet if not entire code.

Thanks,