fiskaltrust / middleware

The fiskaltrust.Middleware is an integrated set of highly configurable software components for POS systems to abstract the complexity of national fiscalization laws.
https://docs.fiskaltrust.eu
European Union Public License 1.2
9 stars 4 forks source link

DE Fiskaly: Split TAR export to avoid "E_TOO_MANY_RECORDS" exception #207

Closed saschaknapp closed 4 months ago

saschaknapp commented 1 year ago

Issue

Fiskaly has a export limit of 1000000 signatures. Exceeding this limit results in the TAR export failing with the exception E_TOO_MANY_RECORDS. We have customers who reach this limit.

Possible fix

Fiskaly shared the following information with us:

We do recommend that you split your request to avoid triggering too much data at once.

E.g. if tss.signature_counter is equal to 2500000, then a complete export of all TSS records should be done in 3 batches:

  1. First export with end_signature_counter=1000000
  2. Second export with start_signature_counter=1000001 and end_signature_counter=2000000
  3. Third export with start_signature_counter=2000001

Further information

If you need to know which customer is affected on our side, then please just send me a message on slack to keep this private.

Tasks