Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: In the scene where Spongebob and Mr. Krabs bury the health inspector, Spongebob buries him so that way his head is above ground covered by a pile of dirt. In the next shot of the buried health inspector, he is buried horizontally.
Nasty Patty / The Idiot Box - S3-E4
Audio problem: When SpongeBob and Patrick give Squidward the T.V, Squid's mouth doesn't move when he says "Oh boy, oh boy, oh boy!"
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: In "Nasty Patty," just before Spongebob goes around the back of the Krusty Krab, the sign is on the right and it is electric. In every other episode, it is painted and on the left.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: When Mr. Krabs tells Spongebob to make sure the health inspector's head sticking isn't showing, Spongebob's shovel disappears.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: When SpongeBob and Mr.Krabs are dragging the health inspector up the hill he doesn't have his hat on, but when he gets hit by the rock his hat is on.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: In "The Idiot Box", Spongebob and Patrick are standing on the curb of the street and there is a building in the distance. Several shots later, they are standing in the same spot, but the building has disappeared.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: Nasty Patty: After the police officer cancels his Krabby Patty order, when he tells his partner they got a call about "two ghouls burying a stiff," Krabs' office door is missing.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: Nasty Patty: When Krabs pushes SpongeBob out of the kitchen telling him to pour on the charm for the health inspector, the door swings opens at the left side, but when SpongeBob goes back to the kitchen to order one of everything, that door opens the opposite way, then the switch happens again.
Nasty Patty / The Idiot Box - S3-E4
Continuity mistake: When SpongeBob is showing Squidward the inside of the box, SpongeBob is seen closing the top of the box. But inside of the box, there is a close-up of SpongeBob and Patrick. You can see daylight so the box is obviously open.
Answer: I believe this is the Season 6 episode "Spongicus".