A trident with the riptide enchantment will be thrown in survival but there is no trident to recover. The trident shouldn't be able to be thrown with the riptide enchantment on it. In creative the trident works normally.
is duplicated by
MC-127917When using a Riptide trident in Survival mode, the trident disappears
MC-127935Tridents with Riptide disappear after using in survival