You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2025. It is now read-only.
Hello,
processing project folders on CMS 16.0 throws exception, when folders contain folder type "Asset" (introduced in the version 16). Looks like "Asset" folder type is not yet supported by SmartApi.
Are you planning to add this functionality?
Here is the exception:
erminas.SmartAPI.Exceptions.SmartAPIException: Could not convert value '2' of attribute 'catalog' to a boolean value
at erminas.SmartAPI.Utils.XmlUtil.GetBoolAttributeValue(XmlElement xmlElement, String attributeName)
at erminas.SmartAPI.CMS.Project.Folder.InternalFolderFactory.CreateFolder(IProject project, XmlElement element)
at erminas.SmartAPI.CMS.Project.Folders.b__13_1(XmlElement curNode)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at erminas.SmartAPI.CMS.Project.Folders.GetFolders()
at erminas.SmartAPI.Utils.CachedCollections.CachedList1.EnsureListIsLoaded() at erminas.SmartAPI.Utils.CachedCollections.CachedList1.GetEnumerator()
.....
The exception can be replicated by simly iterating over the projects folders for a project, that contains folder of type "Asset".