Hello Sid,
Tax information purely comes from legacy when posted through Idocs and the tax calculation will not happen in ECC. But the system expects you to provide the existing tax code for the desired country. Could you share the message type of the Idoc.
BR,
D'nesh