How do I get only the most current values for fields that change frequently?
Best Answer
-
Chris_Chekaluk Member
I have a theory.. Even though you removed one Location & added a second, the SCSM database still retains the fact that you used to have the original relationship. It just marks a removed relationship differently than an active one. I'd suggest that you try adding the HardwareAssetRelatesToLocation IsDeleted to your filter and use IsDeleted=0 to display only the active related Location.
5
Answers
Would love to see a screen shot.
Here are a few screenshots to show you what I am seeing. One shows what I have in Excel, the second is the first item in the excel list shown in the console and the third shows the history tab for when the values were changed.
The report you are seeing looks very odd to me and why it would report two locations for a single item is a mystery.
This could be a bug, or it could be a coincidence of when the Cubes ran.
I would expect to see the location relationship add the new relationship and remove the old relationship in the same history (ECL) record. However, it is doing it in two different logs indicating that this is happening on two separate transactions. This is not an issue, per se, as the result is the same but it might be introducing issues with the ETL jobs and therefore the cubes when they are calculated.
If you force another run of the Cubes does this clean up these double entries?
I have a theory.. Even though you removed one Location & added a second, the SCSM database still retains the fact that you used to have the original relationship. It just marks a removed relationship differently than an active one. I'd suggest that you try adding the HardwareAssetRelatesToLocation IsDeleted to your filter and use IsDeleted=0 to display only the active related Location.