Computed attribute for analog fuel

Ronald 3 days ago

Greetings.

I used to use the sample computed attribute below for computing analog adc2 value to fuel:

adc2 ? adc2 / 0.0125‬ : null

However, after updating, it seems to be rejecting that computed attribute with error:

org.traccar.storage.StorageException: java.sql.SQLException: Incorrect string value: '\xE2\x80\xAC : ...' for column 'expression' at row 1

This is happening on new computed attributes (saving stage). Old computed attributes in the same format are working well
Would anyone know what i need to change please?

Anton Tananaev 3 days ago

The error tells us that the expression is different from what you provided.

Ronald 3 days ago

Hi Anton. Thanks for the response. This was the expression used as shown in the screenshot.

I have however realized that it works if i manually enter the same expression and not copy and paste it. I suspect copying and pasting may have inserted special formatting or something else. This is for someone who might experience the same in future.
Screenshot_20260411-221543_1.jpg

Anton Tananaev 3 days ago

Copy paste likely includes some special invisible characters.

Ronald 2 days ago

Thank you Anton