So, I tried to use my Eos 60d and EF-s 17-85mm today but got the error 01 which is the communication between the camera and lens being faulty. I then searched online for a solution for this error which the most common advice was to gently clean the contacts on the lens and camera with a soft cloth. After doing this the issue was still present. I then tried the same lens with my other camera body (Eos Rebel t3) which it worked with. So, I thought it was an issue with the body but I tried the previous body (Eos 60D) with a different lens (EF-s 18-55mm) which worked perfectly fine. I'm not sure what the issue is. Anyone who can help will be great.
Check if the lens is properly placed on the camera. You can also use DSLR lens cleaning fluid to clean.
Dirty or damaged contacts can happen lens or camera, are you able to test the camera with a different lens. The lens working on another camera seems to lean the contact on the camera as the issue.. Contacts can have dirt & grease which light cleaning will solve, sometimes a light swipe with an eraser can fix, but that can also damage a soft metal contact so use at your own risk. As Gary mentioned, before trouble shooting its always best to make sure you have the latest firmware, canon will usually ask this if you call them.