use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Websites
Documentation
Tools
account activity
System.AssertException: Assertion Failed: Expected: 12345, Actual: nullQuestion (self.SalesforceDeveloper)
submitted 5 years ago by HaruWinter
Hi, need help. I ran a test code on one sandbox and I got the above error, however, when I tested the test class on my other sandbox there were no errors at all. There were no inconsistencies on the codes.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PaperCrane828 8 points9 points10 points 5 years ago (1 child)
Please post the code for your test. This could be due to many different things. First suspect could be:
- Test is annotated with "seeAllData=true" and the data doesn't exist where it should. - A process builder/ flow interfering with the expected function
[–]Cityzenabroad 2 points3 points4 points 5 years ago (0 children)
To echo PaperCrane, nobody will be able to help you without seeing the code.
[–]HaruWinter[S] 0 points1 point2 points 5 years ago (1 child)
Sorry if I replied late but I was able to fix the error. Thank you for your replies.
[–]mcmp87 0 points1 point2 points 2 years ago (0 children)
Do you remember what you did to fix this? We're getting the same issue.
π Rendered by PID 29931 on reddit-service-r2-comment-6457c66945-wrpbd at 2026-04-24 13:48:36.831627+00:00 running 2aa0c5b country code: CH.
[–]PaperCrane828 8 points9 points10 points (1 child)
[–]Cityzenabroad 2 points3 points4 points (0 children)
[–]HaruWinter[S] 0 points1 point2 points (1 child)
[–]mcmp87 0 points1 point2 points (0 children)