Skip to main content
12-Amethyst
January 28, 2015
Solved

Persistence of Thing Properties

  • January 28, 2015
  • 9 replies
  • 5110 views

Hi.

I have an issue with my understanding of persistence of properties. I have defined properties for several different things as being persistent. Nevertheless, after a reboot of the OS running the TWX platform, the values of those properties get vanished. My understanding is, that this shouldn't be - otherwise why should I mark something to be persistent? Or do I understand the implementation of the persistence not correct?
This happened with 5.1 and 5.3.

Edit

: I have the "feeling" that if a property was defined on shape or template level, the value on for individual thing persists. But if the property was defined on the thing level, that the value gets lost. Could it be a bug?

Thanks.

Rayed

    Best answer by rhawa

    Update:

    The problem has vanished by itself (more or less). When the problem existed I had the repository on the same partition like the installation (Linux).
    Now I have created own partitions for the repositories and mounted/linked them to the primary one. Also I have moved the repository to the new partitions.
    After restarting ThingWorx the "lost" data was there again! So the data was still in repository but for whatever reason hidden to be accessed..... Strange.
    But now it works without problems.



    9 replies

    20-Turquoise
    January 29, 2015

    Hi Rayed,
    I tried OS reboot, stopping and starting via tomcat; restarting tomcat itself. Values stayed untouched on both levels. Tested on 5.1 and 5.3. Was it a fresh first-time set up for every property, or did you delete-recreate them with the same name at some point prior to seeing the "defect" ? 
    If you are entitled to support, I would recommend to open a ticket for further investigation.

    rhawa12-AmethystAuthor
    12-Amethyst
    January 29, 2015

    Hi Polina.

    This is strange. So I had definitely create the properties fresh every time. And in my 5.3 instance it is reproducible:
    Any values on properties which where defined on thing level gets deleted after a restart.
    Any values on properties which where defined on template or shape level are persistent.
    I will follow your recommendation and will open a ticket.

    Thanks for your effort.

    Rayed



    1-Visitor
    January 29, 2015

    Hi Rayed what are the Base Types of your properties?