Your stocks aren’t considered fully purchased until the remittance against them is conducted. This means you need to pass a check called LRS which is mandated by the government.
Hence, your stocks will be placed under a sell-lock until your foreign remittance checks are completed (which includes LRS). This generally takes up to 1 working day from the time of order placement to get completed. Once this is done, you should be able to sell your stocks.