Error on Repeated question

you may need to use the undexed-repeat() function to specify which value you want.

I cant add a record simply due to that error

Welcome to the community, @nankundapatience! Have you validated your XLSForm through this online validator? The online valditor should help you identify syntax issues if any present.