hi you have to get a exit visa from saudi then only qatar government will issue a resident permit to your passport. GCC countries are having some understanding that you cannot hold two resident permit at a same time (unless otherwise for special case). My friend had a same type of problem in getting resident permit in qatar. If saudi visa expired then i feel, getting a Resident permit in qatar will not be any problem.