Hi Tiago,
Just had the same issue.
Check your quantities and totals - hope you are not still facing the same issue 2 yrs later
If the quantity in your base doc is positive and quantity in your target doc is negative you will get this error.
If you try this manually in SAP B1 you will get the same error.
Thanks,
John