Curved body path animation not rendering

Hi

I am new to blender and learning. I am trying to do a roll out carpet animation where I have modeled a carpet using plane and subdivided it and given it texture, and then used a curve modifier to give it a roll out animation on a curved path with transform action. In the render viewport I can see that both evee and cycles render engines show the proper animation roll out during 100 frame of animation.

However when I go to render image or animation I see no curves / bends in the rendered carpet body but straight flat carpet in different positions as it the carpet has lost any bends or curves on the path while sequence of animation is in progress. It just shows flat carpet without any bends in both render engines in individual frames. I tried checking if I am missing any settings in render engines to enable rendering of curved bodies, but did not understand neither did Google showed any help, so any help / pointers would be highly appreciated.

Thanks
Mg

Welcome!

Take a look at the modifiers. Are they active in the viewport but unactive at render?
modifiers

Thank you.

Yes this modifier subdivision was not active. May be I accidentally made it inactive during some checking around.

Regards
Mrunal