Issue with Bookmarks switching between filesystem and database
Initially, I was storing bookmarks as a file system. But I decided to move the bookmark to the database. I Configured the FileToDatabaseMapping element and migrated bookmarks to db storage.
But now, the application sometimes pulls the bookmarks from the filesystem instead of pulling them from the database. And all of a sudden next day it pulls from the database.
Does anyone know what is causing this issue?
-
Does your Bookmark Folder Location include any tokens other than @Function.AppPhysicalPath~. mappings such as @Function.UserId~ or @Function.Username~ are not allowed in the mapping path.
Its Folder attribute is set to a file folder that has been previously configured to store bookmark files. For example, to store bookmarks in the database, this attribute and the General element's Bookmark Folder Location attribute would be the same, as long as you do not have any dynamic subfolders in the BookMark Folder location.. The @Function.AppPhysicalPath~ token can be used in this attribute but other tokens are not allowed.
If you DO have dynamic subfolders(such as in SSRM), then you need to specify it in this way (for example) if:
BookmarkLocation="@Function.AppPhysicalPath~\goBookmarks\UserName@Function.UserName~"
Then your mapping would look like this:
<FileToDatabaseMapping Folder="@Function.AppPhysicalPath~\goBookmarks"
0
Please sign in to leave a comment.
Comments
1 comment