C-Class (W204) 2008 - 2014: C180K, C200K, C230, C280, C300, C350, C200CDI, C220CDI, C320CDI

Code P0040

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old Mar 2, 2022 | 08:22 PM
  #1  
Chadblontz's Avatar
Thread Starter
Newbie
 
Joined: Mar 2022
Posts: 4
Likes: 0
2014 c350 sport
Code P0040

I own a 2014 Mercedes’ Benz c350 sport I recently changed 5 of the spark plugs 1 I couldn’t get and the intake plenum gaskets were also changed about a week maybe two the check engine light came on and this error code P0040 showed up is it possible what I changed caused it? And if so how would I go about fixing it.
Reply
Old Mar 3, 2022 | 12:40 AM
  #2  
JettaRed's Avatar
Banned
Veteran: Army
5 Year Member
Community Influencer
Loved
iTrader: (1)
 
Joined: Nov 2016
Posts: 7,847
Likes: 3,498
From: Maryland
2015 SL400 (M276 Turbo), 2014 C350 Sport (M276 NA), 2004 SL500 (M113), 2004 Audi TT225 (BEA)
What did your research tell you causes P0040?
Reply
Old Mar 3, 2022 | 09:12 AM
  #3  
Chadblontz's Avatar
Thread Starter
Newbie
 
Joined: Mar 2022
Posts: 4
Likes: 0
2014 c350 sport
The P0040 code is set when the powertrain control module or PCM perceives that the wiring harnesses from the sensors have been crossed. It determines this through a logic-based strategy. Code P0040 refers to a condition wherein the first oxygen (O2) sensors downstream from the engine have swapped wiring.
This is what I found about the code so since it’s down stream it could be what I changed? Thanks for the help.
Reply
Old Mar 3, 2022 | 10:06 AM
  #4  
JettaRed's Avatar
Banned
Veteran: Army
5 Year Member
Community Influencer
Loved
iTrader: (1)
 
Joined: Nov 2016
Posts: 7,847
Likes: 3,498
From: Maryland
2015 SL400 (M276 Turbo), 2014 C350 Sport (M276 NA), 2004 SL500 (M113), 2004 Audi TT225 (BEA)
Originally Posted by Chadblontz
The P0040 code is set when the powertrain control module or PCM perceives that the wiring harnesses from the sensors have been crossed. It determines this through a logic-based strategy. Code P0040 refers to a condition wherein the first oxygen (O2) sensors downstream from the engine have swapped wiring.
This is what I found about the code so since it’s down stream it could be what I changed? Thanks for the help.
And if you search on this website you will find more info about how to try to resolve this. The consensus was what you found and to try swapping connections and/or use new ORIGINAL O2 sensors.
Reply
Old Mar 3, 2022 | 10:34 AM
  #5  
Chadblontz's Avatar
Thread Starter
Newbie
 
Joined: Mar 2022
Posts: 4
Likes: 0
2014 c350 sport
Yes I was just asking if what I changed the spark plugs and plenum gaskets could cause the P0040 error code to appear from a bad spark plug or the gaskets not sealing properly.


I think what you meant was what I changed could of caused it and if so thanks for all your help

Last edited by Chadblontz; Mar 3, 2022 at 10:40 AM. Reason: I think I misunderstood the answer
Reply
Old Mar 4, 2022 | 09:46 PM
  #6  
JettaRed's Avatar
Banned
Veteran: Army
5 Year Member
Community Influencer
Loved
iTrader: (1)
 
Joined: Nov 2016
Posts: 7,847
Likes: 3,498
From: Maryland
2015 SL400 (M276 Turbo), 2014 C350 Sport (M276 NA), 2004 SL500 (M113), 2004 Audi TT225 (BEA)
Changing the plugs is a pain in the *** since you have to remove the intake manifold and disconnect several wires. It is possible that you either missed a connection when you put things back together. Plugs or the seals should not cause this code, but I could be wrong. However, all of the fixes mention connecting the O2 sensors correctly or replacing them with new OE sensors.
Reply
Old Mar 5, 2022 | 12:19 AM
  #7  
Chadblontz's Avatar
Thread Starter
Newbie
 
Joined: Mar 2022
Posts: 4
Likes: 0
2014 c350 sport
I was worried that I messed something up when I changed them and it was what caused the issues.
Thanks so much for all your help.

Last edited by Chadblontz; Mar 5, 2022 at 12:22 AM.
Reply
Old Mar 5, 2022 | 02:05 AM
  #8  
JettaRed's Avatar
Banned
Veteran: Army
5 Year Member
Community Influencer
Loved
iTrader: (1)
 
Joined: Nov 2016
Posts: 7,847
Likes: 3,498
From: Maryland
2015 SL400 (M276 Turbo), 2014 C350 Sport (M276 NA), 2004 SL500 (M113), 2004 Audi TT225 (BEA)
The other possibility is the crank position sensor may be bad. But I think if that was the case, both banks of cylinders would throw codes.
Reply
MB World Stories

The Best of Mercedes & AMG

story-0

New Electric Mercedes-AMG GT 4-Door Coupe Unveiled: 10 Things You Need to Know

 Verdad Gallardo
story-1

6 Mercedes Models That Did NOT Age Well (But Are Somehow Still Cool)

 Verdad Gallardo
story-2

Manual Mercedes? 6 Times Sindelfingen Let Drivers Have All The Fun

 Verdad Gallardo
story-3

Mercedes SLR McLaren 722 S Is Extremely Rare Example Modified by McLaren

 Verdad Gallardo
story-4

8 Classic Boxy Mercedes Designs That Have Aged Like Fine Wine

 Verdad Gallardo
story-5

Flawlessly Restored Mercedes 190E Evo II Heads to Auction

 Verdad Gallardo
story-6

Electric Mercedes C-Class Unveiled: 11 Things You Need to Know

 Verdad Gallardo
story-7

Mercedes EQS Gets A Major Update: Everything You Need to Know

 Verdad Gallardo
story-8

5 Underrated Mercedes-Benz Models That Don't Get the Love They Deserve

 Verdad Gallardo
story-9

Mercedes 300D Has Pushed Well Past 1 Million Miles and It Ain't Stopping

 Verdad Gallardo

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 


You have already rated this thread Rating: Thread Rating: 0 votes,  average.


All times are GMT -4. The time now is 12:32 PM.

story-0
New Electric Mercedes-AMG GT 4-Door Coupe Unveiled: 10 Things You Need to Know

Slideshow: Mercedes-AMG's new electric GT 4-Door Coupe trades combustion for software, synthetic noise, and more than 1,100 horsepower.

By Verdad Gallardo | 2026-05-20 20:08:15


VIEW MORE
story-1
6 Mercedes Models That Did NOT Age Well (But Are Somehow Still Cool)

Slideshow: Not every Mercedes design becomes timeless, some feel stuck in the era they came from.

By Verdad Gallardo | 2026-05-12 18:09:07


VIEW MORE
story-2
Manual Mercedes? 6 Times Sindelfingen Let Drivers Have All The Fun

Slideshow: Yes, Mercedes built manual cars, and some of them are far more interesting than you'd expect.

By Verdad Gallardo | 2026-05-02 12:36:58


VIEW MORE
story-3
Mercedes SLR McLaren 722 S Is Extremely Rare Example Modified by McLaren

Slideshow: A one-of-one U.S.-spec Mercedes-Benz SLR McLaren Roadster became even rarer after a factory-backed transformation at McLaren's headquarters.

By Verdad Gallardo | 2026-04-29 11:19:28


VIEW MORE
story-4
8 Classic Boxy Mercedes Designs That Have Aged Like Fine Wine

Slideshow: Before curves took over, Mercedes mastered the art of the straight line, and some of those shapes still look right today.

By Verdad Gallardo | 2026-04-25 12:05:49


VIEW MORE
story-5
Flawlessly Restored Mercedes 190E Evo II Heads to Auction

Slideshow: The 190E Evolution II shows how a homologation necessity became a six-figure collector icon.

By Verdad Gallardo | 2026-04-22 17:53:47


VIEW MORE
story-6
Electric Mercedes C-Class Unveiled: 11 Things You Need to Know

Slideshow: Mercedes is turning one of its core nameplates electric, and the details show just how serious this shift is.

By Verdad Gallardo | 2026-04-21 13:58:06


VIEW MORE
story-7
Mercedes EQS Gets A Major Update: Everything You Need to Know

Slideshow: Faster charging, longer range, and a controversial steer-by-wire system define the latest evolution of Mercedes-Benz EQS.

By Verdad Gallardo | 2026-04-15 10:35:34


VIEW MORE
story-8
5 Underrated Mercedes-Benz Models That Don't Get the Love They Deserve

Slideshow: These overlooked Mercedes-Benz models never got the spotlight, but they quietly delivered more than most remember.

By Verdad Gallardo | 2026-04-13 19:35:45


VIEW MORE
story-9
Mercedes 300D Has Pushed Well Past 1 Million Miles and It Ain't Stopping

Slideshow: A well-used 1991 Mercedes-Benz 300D with more than one million miles is now looking for a new owner, and it still appears ready for more.

By Verdad Gallardo | 2026-04-10 10:05:15


VIEW MORE