Question about Nikon D40x Digital Camera

4 Answers

Nikon D40 Error Message

I have a Nikon D40 with a 18-135 Nikkor lens, that was 1 day old when the following message appeared:

"Error! Turn camera off and back on"

Which I did but it did not help. After 15 minutes it came back to life. But intermittently would again show the error.

Also another message intermittently appeared: "Lens not attached"

The battery was not fully charged, and I later fully charged it after which the error messages did not appear. Possibly this is a symptom of a low battery charge, although that would still be a malfunction. I did not get any "low battery" messages.

The Nikon dealer said they would replace the entire kit but it is still disconcerting.

Any suggestions


Posted by on

  • 2 more comments 
  • Anonymous Nov 21, 2007

    Just got the same message & took it back to store. Other lenses gave the same message on my camera & my lens worked on other camereas. So, it must be the camera & is being sent back to Nikon for repair. Bummer; only 1 month old

  • smokler Dec 17, 2007

    I've got a d40 as well.  Never had any problems until i bought the 18-200 VR 3.5-5.6.  Now it will intermittently fail to take a shot as i compose in the middle of a sequence, and give me the "lens not attached" message.  Camera is around 6 months old and lens is less than 3 months old... guess i'll send the camera in...

  • Anonymous Dec 25, 2007

    Same problem - lens not attached. Swapped battery with a fully charged battery and still same error message. Camera is barely 2 months old.

  • elzametz Dec 26, 2008

    I have the same problem. I get the error message 'lens not attached' every time and the camera cannot be used. Having browsed the web I think this is a factory problem.
    I recently had a problem with my Canon camera and could not believe how easy it was to find contact information, ship it to the factory and within 10 days I had my camera back and working.
    I have emailed Nikon - no reponse.



4 Answers

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

I had the same "Lens not attached" error message with a brand new D40 and Tamron 18-200 lens. I used some electrical contact cleaner (you can get a can at Radio Shack or most any place that deals with electrical components), sprayed it on a Q-Tip until it was saturated, then cleaned the contacts on both the lens and the camera body.

After cleaning the body's contacts there was a definite darkness on the Q-Tip. I suspect these contacts are getting some residue or dirt on them right from the factory.

At any rate, I've not had the error come back since cleaning the contacts. I've shot well over 1500 photos including a 10-day trip to China where the camera was used, handled and knocked around a LOT. But that camera and lens worked flawlessly! I love them!

Posted on Nov 13, 2008

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 2 Answers

I had the d40X "lens not attached" problem as well. And twisting it a bit would help. The camera was new. I paid to have it fixed. That part now works, but the battery charger or battery has now stopped working two months later. I'm getting really disappointed in this Nikon camera (after having used Nikon for over 20 years)

Posted on Jan 04, 2008


I have heard of this error with three cameras.It will lead to total shut down.Better get changed.

Posted on Dec 20, 2007

  • Level 2:

    An expert who has achieved level 2 by getting 100 points


    An expert that got 5 achievements.


    An expert who has written 50 answers of more than 400 characters.


    An expert whose answer got voted for 20 times.

  • Expert
  • 150 Answers

Get the kit changed. That should not happen right out of the box, but make double sure the next time around, you charge the battery completely before using it the first time. Not doing this can cause problems.

Posted on Nov 23, 2007

1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Good luck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

I have a "Lens Not Attached" message when the AF-S Nikkor DX 18-55mm Lens to my Nikon D5000. Other lenses work fine and the lens appears to be attached correctly.

Apparently the lens is faulty. Or it may have dirty contacts.

Take the lens to a camera store and try it on one of their cameras. If you get the same error, the lens probably is faulty.

Oct 17, 2016 | Nikon Cameras

1 Answer

Hi, i am using nikon d40 my problem is that i was using 18-55 lens after some years there was green spots on my pics when clicked,i started using 18-105 mm nikkor lens my problem was solved but now af

The D40 is a low end camera, but before you discard it, I would contact the closest Nikon repair depot (see the Nikon website for the location) and ask them for a repair estimate. You will then be able to decide if it is better to have it repaired or replace it with a newer model.

Jan 08, 2013 | Nikon D40 Digital Camera with G-II 18-55mm...

1 Answer

What does FEE mean? The camera won't take a picture and I see that in the display of my Nikon N90S

FEE error message displayed on SLR camera LCD Description If the cameras LCD screen displays "FEE" in the area where the aperture is normally displayed, please ensure that the lens is attached to the camera correctly. This error message will appear if the lens is not attached correctly to the camera or if you are not using a CPU lens such as the Nikon AF or Nikkor P lenses. Alternatively, if the lens has an aperture ring, it may not be set to f22 (or the highest aperture number on the aperture ring - normally marked in orange). Select the aperture number marked in orange on the lens and lock it using the aperture locking switch to prevent this occurring again.


The FEE error message

Set to F22, or the highest aperture number - normally marked in orange. Note the locking switch.
If the above did not resolve the problem and you still experence the the error display FEE, please contact your local Nikon office. Before doing so please also check the following.


1157d.gif That the EE servo coupling highlighted above on the lenses has not been broken. That the F-min switch highlighted above on the camera body has not been broken. If either of the two items above are broken please contact your local Nikon service center.

Apr 19, 2011 | Nikon N90S 35mm SLR Camera

1 Answer

Camera will not take picture with nikkor 105mm lens

Check if the lens is properly mounted. If still you get the error message, clean the electrical contacts between the lens and the camera using an eraser. Take care not to let any dust fall into the body. Attach the lens and try.

Feb 10, 2009 | Nikon 105mm f/2.8G ED-IF AF-S VR...

1 Answer

The auto focus works on the 300mm lens but only works on manual

with your D40, you can old go on manual focus on the 70-300mm AF-G/D nikkor.

Feb 03, 2009 | Nikon D40 Digital Camera with G-II 18-55mm...

1 Answer

Nikon D40 will not focus when shutter pressed 1/2 down

has the lens stuck up? put it temporarily on 'M" and try to turn the focus ring. this should be freely turning;

otherwise you may want to check the camera body to lens electrical contacts (silver).. a small dab of alcohol to a q-tip.. make sure its not that wet..then try to clean the contacts.

Jan 31, 2009 | Nikon D40 Digital Camera with G-II 18-55mm...

1 Answer

My d40 gives error message "error press shutter button again"

When do you get this message? Is the Mirror Lockup on? If not, try to take the lens off and screw it in again.

Jan 24, 2009 | Nikon D40 Digital Camera with G-II 18-55mm...

2 Answers

Old Lense and new camera

Here is a link to the lens limitations of the D40, same for the D40X:

The camera will not recognize the lens but you can take pictures setting speed and aperture manually. Since you see results after you take the picture, you can make adjustments to correct your exposure

Dec 24, 2007 | Cameras

Not finding what you are looking for?
Nikon D40x Digital Camera Logo

452 people viewed this question

Ask a Question

Usually answered in minutes!

Top Nikon Cameras Experts


Level 3 Expert

3289 Answers

Donald DCruz
Donald DCruz

Level 3 Expert

17130 Answers

Jeff Marcus

Level 2 Expert

115 Answers

Are you a Nikon Camera Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides