Tax Calculation in Docstar

Hi
We are currenlty working on Docstar implementation internally, We have managed to route the document from IDC to docstar workflow, everything is working fine in the workflow but the tax is giving an issue. through workflow its able to calculate the tax but it always gives below exception
Error: APInvTaxChange of Tax Percent is allowed only for Manual Tax Lines.

Tax is auto calculate from the Tax code. but still the same error.

if we remove the tax line then it creates the invoice without tax in epicor, which is not correct.

Any suggestion would be greate