How to say i got lost when i visited you for the first time. in French

1)je me suis perdu lorsque je t'ai rendu visite pour la première fois.    
Translation by trangConnect Error: Too many connections