I'm experiencing an unusual bug on getting an instance of a variant model (ProductCodeVariant) that inherits from VariationContent using ContentRepository/ContentLoader.
The content exists in Commerce and can be viewed on the front end, but returns a System.IO.FileNotFoundException on ContentLoader.Get()/ContentRepository.Get().
e.g:
var product = _contentLoader.Get<ProductCodeVariant>(productRef);
In the above instance productRef is a valid ContentReference.
Iterestingly, TryGet() returns true, but the out object throws the same error.
At first I assumed it was potentially a Media issue on the content, but newly created instances of ProductCodeVariant throw the same error.
Hi All,
I'm experiencing an unusual bug on getting an instance of a variant model (ProductCodeVariant) that inherits from VariationContent using ContentRepository/ContentLoader.