Travel from Schengen Area back to home country

I am traveling from Italy to my home country of India and my residence permit might expire by the time of my travel.

If I am not wrong, I have to surrender my residence permit before I leave Italy.

Currently there are no direct flights from Italy and I have to transit at Amsterdam.

Will there be any issue at Amsterdam airport if all I have is my Indian Passport?