Hi all!
I added a new segment to existing account structure. Now I'm trying to set new segment value into the existing GeneralJournalAccountEntry table records using code, but it fails with error:
"Function DimensionStorage.getSegment has been incorrectly called.".I looked through DimensionStorage and ran into some code in DimensionStorage::findById(), here is it:
packedDimensionStorage = DimensionCache::getValue(DimensionCacheScope::DimensionStorageInstance, [_dimensionCombinationId, _validateStructureChanges]);
packedDimensionStorage - container that contains the parameters of DimensionStorage, including quantity of segments. This quantity of segment is wrong - new segment is not considered.
I've tried to call DimensionCache::clearAllScopes(), but the problem still there. How can I solve my problem?
*This post is locked for comments