A new Flexera Community experience is coming on November 18th, click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Last inventory date in the future?

Hi all, 

Has anyone run into this? I have a device that is showing as last inventoried in 2025 :). 
Any idea how is that possible?
2023-09-08 10_10_51-Window.png

Regards, 
Paweł

(1) Solution

So if the date on the computer was previously set to a future date and it is then changed to be an earlier date, new inventory NDI files that are received will be treated as being older than the most recent inventory that has been received.

In other words: when an NDI file has an older date than the "Last inventory date" currently recorded, the system considers that the NDIs have been received out of order. The NDI with the older inventory date is ignored.

Overriding this is a little tricky. If you are using FlexNet Manager Suite on-premises, you could execute a query like the following against the inventory database to reset the inventory date stored in the database to an earlier date so that NDI files that are subsequently received will be processed rather than being ignored:

UPDATE ir
SET SWDate = '2000-1-1', HWDate = '2000-1-1'
FROM dbo.InventoryReport ir
   JOIN dbo.Computer c ON c.ComputerID = ir.ComputerID
WHERE c.ComputerCN = 'problematic-computer-name'

 

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

View solution in original post

(9) Replies
ChrisG
By Community Manager Community Manager
Community Manager

I expect you will find that the clock on this computer is set to a date in 2025.

It is common to find a small but non-0 number of computers in any organization having dates that are set in the future. That will result in these future dates appearing in the "Last inventory date" field on the associated inventory device records.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)
Hi Chris,
That was my first thought but I figured in this case I would find '2025' in the ndi file coming from that machine. Finding nothing,

Best,
Paweł

________________________________

NOTICE: This communication may be confidential, legally privileged, proprietary in nature, or otherwise protected from disclosure. If you are not the intended recipient, or believe that you have received it in error, please contact the sender immediately and destroy the email and its attachments. To learn what information we collect and use about you, including monitoring communications, see our Privacy Notice at www.pmiprivacy.com/en/business-partner.

The inventory dates appear near the top of NDI files:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Inventory PUBLIC "Inventory" "http://www.managesoft.com/inventory.dtd">

<Inventory [...] DateTime="20230821T154008" [...]>
[...]

 

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

This is what the most recent ndi file from that machine shows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Inventory PUBLIC "Inventory" "http://www.managesoft.com/inventory.dtd">

<Inventory Tracker="19.0" Audience="Machine" Scope="pmivnhcml01607" MachineName="pmivnhcml01607" MachineUID="" MachineType="Physical" UserName="system" UserDomain="WORKGROUP" UserUID="" Hardware="True" Software="True" TrackFilesInUserInventory="True" DateTime="20230908T080028"

So if the date on the computer was previously set to a future date and it is then changed to be an earlier date, new inventory NDI files that are received will be treated as being older than the most recent inventory that has been received.

In other words: when an NDI file has an older date than the "Last inventory date" currently recorded, the system considers that the NDIs have been received out of order. The NDI with the older inventory date is ignored.

Overriding this is a little tricky. If you are using FlexNet Manager Suite on-premises, you could execute a query like the following against the inventory database to reset the inventory date stored in the database to an earlier date so that NDI files that are subsequently received will be processed rather than being ignored:

UPDATE ir
SET SWDate = '2000-1-1', HWDate = '2000-1-1'
FROM dbo.InventoryReport ir
   JOIN dbo.Computer c ON c.ComputerID = ir.ComputerID
WHERE c.ComputerCN = 'problematic-computer-name'

 

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)
Understood, it makes total sense. Thanks for explanation and the query. No need to update the FilesDate?

Best,
Paweł

________________________________

NOTICE: This communication may be confidential, legally privileged, proprietary in nature, or otherwise protected from disclosure. If you are not the intended recipient, or believe that you have received it in error, please contact the sender immediately and destroy the email and its attachments. To learn what information we collect and use about you, including monitoring communications, see our Privacy Notice at www.pmiprivacy.com/en/business-partner.

I believe this should work without setting the InventoyReport.FilesDate column. It is the HWDate and/or SWDate columns that are important for checking whether a newly received NDI file is newer or older than the existing data.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

There may be some more complexity going on here. After further investigation, if a new inventory is received that is materially earlier than the previous inventory date, then the system is "smart" enough to consider that likely occurred due to the clock being changed on the computer and the newly receivedinventory NDI file will not be discarded as suggested in my earlier comments.

So the fact that you are still seeing the 2025 date appearing as the last inventory date but newly received inventory files have a 2023 date suggests that there is something else going on.

For example, maybe there are 2 underlying raw computer records that are being merged into one inventory device - one record with a 2023 inventory date, and one with a 2025 inventory date. You could check whether that is occurring by looking for details about the computer on the Inventory Device Matching page, which will list out all raw computer records that have been merged into the inventory device record you see.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

Next time something like this happens, I'll try that. Since I have already run the query you gave me, I can't see the 2025 date in Inventory Device Matching anymore. Thanks again.