I'm using Apex triggers to rewrite the value of the record. An error occurs and when I try to get the log, the error stops happening. I posted this because the log is unknown and it may take some time to resolve the issue. I would like to know what you think of it.

I am sorry that my English is so bad

  • You can avoid the error by adding [system.debug] before the error point, and then add I did. – yuta Jun 10 '20 at 7:36
  • Can you please share the relevant code and error message you are getting? – tugce Jun 10 '20 at 7:49

Although I'm not sure without seeing code, this sounds a lot like this known issue which is (finally) going to be addressed in Summer '20.

List.contains() fails to detect element match when input param is an SObject Id field; it succeeds when debug logs are enabled

  • This seems to be the cause. Thank you for looking for it. Thank you. – yuta Jun 11 '20 at 8:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.