DBExporter IncludeBookmarks true does not export bookmarks.

Until recently we were using the SDK from around 2017. Currently we have the dlls from 2021-06-15

you can see in included in our code. The bool gets pulled from a config XML when the task runs: https://i.imgur.com/stong9G.png

We KNOW that the value is true but the bookmarks are not getting included on the timeline with the export.

FYI: in the old SDK based application of ours we had the BM icon with the export.. Also thi is neither a smart client of management client plugin. We are running our application outside of those.

we were using 21.1.0 from nuget. just upgraded to 21.2.0 and retesting.

unfortunately for us 21.2.0 did not resolve this.

in debug mode. IncludeBookmarks = true https://i.imgur.com/gpeWQX9.png

we then check to see if we already deleted that bookmark from a sqlite db

then create destination folder. includebookmarks is still true: https://i.imgur.com/BTQaO19.png

we notice that the Bookmarks.xml file is present in our own export of the BM but it is missing information.. seems incomplete.

the bm exported from the smart client: https://i.imgur.com/ZeCerGF.png

our version exported from our software: https://i.imgur.com/vPHU8ee.png

So we took a Bookmarks.xml file that was generated from a regular SC export and placed it into the export directory that was created from our own exporting software. The result was the the bookmarks DID appear on the timeline. Screenshot here: https://i.imgur.com/C6E4fPv.png

I will make some experiments to try to reproduce your observations, but first clarifying questions.

Your Smart Client plugin has worked in previous versions of the Smart Client and built with previous versions of the MIP SDK, but stopped working when building using MIP SDK 2021R1 and R2?

I suppose you are also testing with a newer version of the Smart Client?

If you test the old plugin in a new Smart Client does it work?

My reason for asking is that my experience tells me it could be caused by a change in the Smart Client rather than the MIP SDK. If you can tell me more about which versions of Smart Client you have been using and which versions you are currently testing this would also be helpful..

Hi, we may have this solved. According to our developer there was something off with our timezone.. It’s funny that one SDK version didn’t care but latest did. I can post more information here if you/anyone is curious.

I am curious. I am imagining that bookmarks and video would follow the same time so right now you left me very curious. :slight_smile:

Hi, we had to DateTime SpecifyKind so that Milestone understood specifically what we were talking about.

Revised this line of code and it is ok now! exporter.StartExport(DateTime.SpecifyKind(utcTimeBegin, DateTimeKind.Utc), DateTime.SpecifyKind(utcTimeEnd, DateTimeKind.Utc));

Not certain how you guys would go about handling these. Fail if the datetime kind is not specified? Assume it is UTC?

Hope that this post helps you or someone else!

There is a clear recommendation to always use UTC. I believe that the MIP SDK in so many places works fine even if you do not follow the recommendation that it comes as a surprise when it does not work fine.

My understanding is that if the DateTime Kind is not given UTC will be assumed.

Thank you for sharing your observations. This might help other that see similar issues!