Model Number of the Battery Cannot be Determined

I had bought a Lenovo ThinkPad X1 laptop almost one year ago. Recently, I noticed most of the time when I started my laptop, the error message describing that the battery it uses is not a recognizable battery.
I removed the battery, cleaned it and attached it again. When I started the laptop for the second time, another error had occurred saying “The model number for the primary battery cannot be determined. This will prevent any battery present from charging. Please insert a Lenovo battery for best system operation.” Actually, when I am in home, I am not using the battery.
I am directly connecting my laptop to AC cord. Most of the time, I am using the battery only when I travel. Does this situation affect the lifespan of the battery?
Please enlighten me.
Thanks for your comments and recommendations.
