Batch Importsil fails with receipts

SOLVED

Hi Sage Community!

After struggling with this problem I decided to post it here just in case someone had or is having the same situation as we do.

We have a system that manages the receipts thought import templates and is working just fine in different Sage X3 installations, but we kind of found an strange behaviour recently that we are not able to solve.

When we launch the command IMPORTSIL with our RECEIPTS using the batch server it returns an error that says the "Wrong stock transaction detail"  but when we retry to import this file thought the import system that X3 has it doesn't return any error and works properly.

This only happens with the receipts, deliveries are working properly and is more or less the same file format.

Origin error:

After we reprocess the same file not using the batch (is the same being executed the only difference is the environtment):

Thanks in advance!

Regards.