November Happy Hour will be moved to Thursday December 5th.

EPiServer 10.10.4.0: Unexpected behaviour of the DDS for the StorageUpdateEntity entity

Vote:
 

Hello,

We are got next error in the logs during developing our project:

ERROR EPiServer.Packaging.Storage.StateStorage:ErrorFormat - There are more than one record in StorageUpdateEntity data store for server with id 'guid'. Extra records will be deleted.

I looked into the DB and found that the tblSystemBigTable table really contains two records with the EPiServer.Packaging.Storage.StorageUpdateEntity as the StoreName column values and equal ItemType and ServerId values but with different UpdateDate values.

I started debbuging and found this method in the EPiServer.Packaging.Storage.StateStorage:

public void SaveUpdateDate(DateTime updateDate)
{
    this._databaseHandlerAccessor().ExecuteLocked(nameof (StateStorage), (Action) (() =>
    {
        using (DynamicDataStore store = this._storeFactory.GetOrCreateStore(typeof (StorageUpdateEntity)))
        {
            StorageUpdateEntity storageUpdateEntity1 = store.Items().FirstOrDefault((Expression>) (p => p.ServerId == this._currentServerId));
            if (storageUpdateEntity1 == null)
                storageUpdateEntity1 = new StorageUpdateEntity()
                {
                    ServerId = this._currentServerId
                };
            StorageUpdateEntity storageUpdateEntity2 = storageUpdateEntity1;
            storageUpdateEntity2.UpdateDate = updateDate;
            store.Save((object) storageUpdateEntity2);
        }
    }));
}

It is called on initialization process after checking the modified date of the packages.config file and if it is not the same with the latest UpdateDate of the StorageUpdateEntity entity stored in the tblSystemBigTable table.

Then, follow by the SaveUpdateDate method logic, it should create new record to DDS in case there no one entity exists before or just update the UpdateDate of the existent DDS record.

The first case works good.

The second case does not work. It adds new DDS record instead of updation.

Could you please clarify this ocasion to me?

Thanks!

#195589
Edited, Jul 31, 2018 11:02
Vote:
 

Did you resolve this/did you get rid of the error? We're seeing the same error in our solution. 

#196368
Aug 28, 2018 13:09
Vote:
 

No, we are waiting for a some support from EPiServer team here or a migration to the next EPiServer version to test this issue there.

#196369
Aug 28, 2018 13:13
Vote:
 

Hi Sergey

Have you heard anything from Episerver regarding this?

/Andreas

#206949
Sep 04, 2019 13:21
Vote:
 

Hi Andreas

Nothing new yet

#206952
Sep 04, 2019 13:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.