Closed DieBauer closed 7 years ago
You reminded me that I had similiar (maybe the same?) problem. I probably fixed it by using dot instead of comma as decimal separator.
Try:
1234567 EUR 20160909 10.00 11.00 20160909 -1.00 Description
Edit: Yes, I had the same problem. Try using dot.
Wow, life-saver! That was indeed the issue. Locale english and number formatting in Dutch (, separated).. When switching to Dutch locale it works. (or replacing the comma-separator by dots)
What a terrible error message though!
It's a terrible error message indeed, it's a bug. Firefly III should be able to handle the comma just fine. I will reopen this and look into it.
Alright I think I fixed this, although technically I did not very much. There is now a lot of debug logging concerning the conversion of the amount, with comma's or without, to a readable number. In your example, this results in:
[2017-09-08 18:21:13] local.DEBUG: Now in getAmount()
[2017-09-08 18:21:13] local.DEBUG: convertedAmount is NULL
[2017-09-08 18:21:13] local.DEBUG: Start with amount "-1,00"
[2017-09-08 18:21:13] local.DEBUG: Decimal character in "-1,00" seems to be a comma.
[2017-09-08 18:21:13] local.DEBUG: Converted amount from "-1,00" to "-1.00".
[2017-09-08 18:21:13] local.DEBUG: First attempt to convert gives "-1"
[2017-09-08 18:21:13] local.DEBUG: After modifiers the result is: "-1"
[2017-09-08 18:21:13] local.DEBUG: convertedAmount is: "-1"
This works no matter the locale.
New release is live.
I'm trying to import a CSV file. I'm using the latest Develop commit (a50945ad53ab)
However, on import it fails with
Trying to get property of non-object
. The stack trace looks a lot like the one in #760, but apparently the fix doesn't apply to me.This is the debug output:
formatted stack trace for readability:
I use the following configuration:
and input:
Could you tell me what is going wrong? I can't figure it out.