If you are flying in on Qatar Airways then contact them as they can help you out.
If not, your best option is to book a hotel room for the day and have them apply for the visa on your behalf.
Finally, do contact the Qatar Embassy in Madrid again and explain that you have a residency in Spain, I am assuming that's the case, right? Here are the details of the embassy in Spain
Qatar Embassy in Spain:
Address Paseo de la Castellana, n15, 5a planta, Madrid 28046-Spain
Int. Code +34
Telephone 913106926
Hi,
If you are flying in on Qatar Airways then contact them as they can help you out.
If not, your best option is to book a hotel room for the day and have them apply for the visa on your behalf.
Finally, do contact the Qatar Embassy in Madrid again and explain that you have a residency in Spain, I am assuming that's the case, right? Here are the details of the embassy in Spain
Qatar Embassy in Spain:
Address Paseo de la Castellana, n15, 5a planta, Madrid 28046-Spain
Int. Code +34
Telephone 913106926