See image below. These two objects should be the same, but they have different IDs.
Im running a function that checks an object of “historikk (RT)” (Runtime only) against “historikk enhet” (DB Connected). Since I want to avoid referencing the same object twice I’ve added an IF historikk(RT).ID not equals historikkEnhet.ID
This works as indented most of the time, but occasionally I read an object to runtime and the ID no longer matches the same object in the DB-connected class.

Hi Ole,
It should not be possible for the same object to have different IDs.
Can you provide som images and context on how Historikk (RT)
is being populated?
Could there be any Create Object
or Auto-Create
that is running at the same time as the action?
// Erik
Firstly a filtered selection of historikk-objects are imported to runtime like this. I think this is where the problem occurs
It is also possible to create new objects, but this is not relevant to my problem, since the two objects I posted above are not new objects. Anyways:
I have not been able to replicate this bug, but I will post here if it happens again
Please reach out if this happens again 
// Erik