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

4 Answers

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer
Re: Nikon D40 Error Message

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
Re: Nikon D40 Error Message

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

Re: Nikon D40 Error Message

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
Re: Nikon D40 Error Message

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

Add Your Answer

0 characters

Uploading: 0%


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


3 Points

Related Questions:

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

Using a Nikon D40 digital slr with a AF-S DX Nikkor 18-200 1:3.5-5.6 G ED lens I was previously able to autofocus bun now am not. Can you suggest reasons why this may be?

Please check if the Autofocus-switch on your lens is set to M/A. Also check if the Autofocus on your camera is switched on. For detailed information about your cameras autofocus, please check this site:

Jul 18, 2010 | Nikon D40x Digital Camera

1 Answer

After inserting lens it keeps saying lens not attached

I would help to know the error message, but here is what I can tell you.

Having a "Lens error " message display on the camera's LCD display indicates a problem with the camera lens mechanism. This situation generally requires that the camera be sent to a Nikon Service Department for repair. Before doing this however, be sure to check these situations below:
  1. One possible reason for this error is if the camera is switched on and the lens unit is prevented from extending. The camera will struggle for a second to extend the lens, then report the problem. Inspect the lens for any obvious obstruction, then turn the camera off, then on again. Usually, simply switching the camera Off then On again is enough to correct this problem.
  2. Remove and recharge and/or replace the battery. If the error does not clear up right away, leave the battery out of the camera overnight, and try again the next day.

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

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...

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

445 people viewed this question

Ask a Question

Usually answered in minutes!

Top Nikon Digital Cameras Experts


Level 3 Expert

93802 Answers


Level 3 Expert

3283 Answers

Donald DCruz
Donald DCruz

Level 3 Expert

17129 Answers

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

Answer questions

Manuals & User Guides