422: The given data was invalid. • The exchange rate must be greater than 0

Cannot save any edits today. We are using the Hosted Enterprise Version v5.6.20-C123
We have cleared the cache using this Invoice Ninja
We have tried desktop app and also android app.
No edits allowed

Error message: 422: The given data was invalid.

• The exchange rate must be greater than 0.

Hi,

@david is it possible to default the value to 1 instead of throwing an error?

You may want to try the new web app: https://app.invoicing.co

Sorry forgot to mention that we also tried it there, same results.

Thanks for the info, we’ll look into it.

Great thanks. Trying to get some quotes out the door!

Which currency are you using?

As a temporary workaround it may help to manually set the exchange rate for the invoice to 1 in the settings tab on the edit invoice/quote screen.

USD
I confirm that the setting for Exchange Rate is already and has been set to 1.00.
No changes have been made to that setting.

Okay I found a solution. I edited the Exchange rate from it’s default 1.0 to 1 and that seemed to work.

Thanks, that’s helpful to know!

cc @david

@hillel

I cannot recreate this issue at all in production?

Having the same problem…
As soon as i try to edit an invoice i get following error.
422: The given data was invalid.

** • The exchange rate must be greater than 0.**

v.5.6.27-C123 Self hosting

Koen

What value is set for the exchange rate on the settings tab on the edit invoice page?

@david what do you think about automatically changing 0 to 1 in the backend?

Hi Hillel,

I can’t find the page you mention.

Koen

The settings tab is on the invoice create/edit page.

Ok Hillel, that did the job… Thanks

I never changed this by myself…

Koen

The value should default to 1, what did you need to change it from/to?

On a credit i changed the amount of electricity consumption from 200 to 396.

The value for exchange was 1.0.

Koen

Thanks for the details!

What did you change it to in order to make it work?

Also, are you on the hosted or selfhosted platform?

Hi Hillel,

I’m on selfhosting platform.
I set the exchange rate to 1.
But now i see that it is 1.0 again, but it still saves…

Koen