I'm assuming it's the Brazilian country/region functionality related to fiscal documents. Long time since I have used it, so I am a bit rusty...
My best guess is that it's an issue with a document number sequences. Can you check the number sequences in the Fiscal document types form?
This is an example from my demo environment.
Which localization is this issue coming ? Have you checked the Number sequence setup if that is setup?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.