My Products
Help

Error message when posting Journal Transaction

by Eirik Morken - Proplan AS

Hi 🙂
Using endpoint: 

Out of 450 posts in a row with some degree of parallel posting to journal transactions 1 failed with the following error message.

"body": {
        "message": "VismaId: 0942ef6b-a2d7-4094-92a1-7cb6eb38111a. Error creating journal transaction. Error: Another process has added 'Batch'. Try again."
    }

 Does this mean that there is a risk of journal transaction posting failing if we don't queue them one by one?

2 REPLIES 2
adrianm
PARTNER

by adrianm

Don't know if this is the case here but in the past the error message "Another process has added X" actually meant: "The backend failed for some unknown reason".

 

Unless Visma says "Our API is not capable of handling simultaneous requests" I'd see this as a problem on their side and treat it as any other failed request (i.e. retry).

 

Yıldırım
VISMA

by Yıldırım (Updated ‎09-03-2022 15:16 by Yıldırım VISMA )

Hello, 

Even though parallel request failure margin is low (450:1) in your case, we recommend adding some short delay in between those requests to avoid this kind of problems.