Need help with "An error has occurred" while saving parameters in Connect

Hi, must be something stupid but I can pin point it. When I have the following in properties.xml

<property id="AddColon" type="boolean">false</property>

and the following in settings.xml

    <setting propertyKey="@Properties.AddColon" title="@Strings.AddColon">
        <settingConfig type="boolean"/>
    </setting>

with this in strings.xml

    <string id="AddColon">Add colon between hours and minutes</string>

It does appear in the app parameters and can be toggled on or off but when 'Done' is selected, following shows up at the bottom of the phone screen

An error has occurred

And the parameters are not updated.

Do anyone sees anything wrong there?

Thanks.

  • Yes, for that user it worked, here's what he said

    "Now, finally after 5 times of turning off and on again (reminds me of the TV series IT Growd ;)) it works. I got the settings saved and happy about the work you did. "

    But others have mentioned having that same problem. I haven't heard back from them though.

  • Ok, there was two roots for this problem. Main one is the app was still using setProperty and getProperty, which from what I read, have been removed in CIQ 4.0.0 and above watches,

    setProperty
    This has been deprecated

    This method is not available for devices with Connect IQ 4.0.0 support

    So switched all the calls to the their getValue and setValue equivalent, trying to make sure I send them to their respective storage area (Storage/Properties) and of course, I misdirected one lol.

    So that was one problem. The other is a Double variable was being saved into the Properties storage by the code but when clicking on Save, if it was outside of float's decimal limit, it wouldn't work. Fixed that but dropping the number of decimal points before saving.

    Hopefully, that will be the end of it.