When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
normally its just because is wasn't seated properly. Before you buy a new cap, remove/replace and turn it until it "clicks" a few times. Then its probably going to take about 10-cranks of the motor (maybe a couple more) before it typically clears the code. You should be able to drive it and just about the time you've got yourself trained to ignore the dic code...the problem has gone away. If this fails, you may have to replace your cap.
This may sound strange but it worked for me....try screwing your gas cap on 'loosely.' I mean the gas cap is on but just don't try to screw it down tight as you might do normally. Someone suggested this when I had a check gas cap warning and I've never had another problem.
Prior to trying this 'fix' I talked to my service advisor about the check gas cap warning. They would not just give me or install another gas cap without performing a complete check of the fuel system...looking specifically for some sort of venting problem.