199 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Strange decision within IBM Verse update for June of 2017 on Android devices
Mon, Jun 12th 2017 8
The application requires com.ibm.xsp.extlibx.library. This library cannot be found.
Wed, May 24th 2017 4
Great news about BM Notes/Domino 9.0.1 Feature Pack 8
Fri, Jan 27th 2017 8
How to set Workspace as default homepage in IBM Notes client
Wed, Oct 26th 2016 9
Avoid processing items as both NotesItem and NotesMIMEEntity objects concurrently.
Thu, Jul 21st 2016 5
Third level in "Application links" section of Xpages Application Layout, WTF?
Sat, Jul 16th 2016 4
How to get a list of components for not open Xpage ?
Thu, Mar 24th 2016 4
Top 10
Corrupted unread list in Mail database caused "This database cannot be read due to an invalid on disk structure"
Thu, Jul 17th 2014 12
IBM Lotus Notes and Ctrl+Break on new laptops without button "Pause/Break" on keyboard. Is it familiar to you? :-)
Thu, May 29th 2014 10
If you can't remove lotus notes database icon from workspace
Wed, Sep 10th 2014 9
How to set Workspace as default homepage in IBM Notes client
Wed, Oct 26th 2016 9
No such session or session has been closed
Sun, Nov 2nd 2014 8
Great news about BM Notes/Domino 9.0.1 Feature Pack 8
Fri, Jan 27th 2017 8
Strange decision within IBM Verse update for June of 2017 on Android devices
Mon, Jun 12th 2017 8
NotesItem.Type = 256 causes "Variant does not contain a container"
Sat, Jul 26th 2014 7
Wrong name of attached file in inbound email: "=?UTF8?Q?=....
Tue, Apr 15th 2014 7
How to focus Lotus Notes window (standard version)
Wed, Dec 17th 2014 6


NotesItem.Type = 256 causes "Variant does not contain a container"
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

Hi

Today I had to convert a collection of NotesDocuments for some external system.
For one particular document I received an error "Variant does not contain a container".
When I checked it in Domino Debugger I saw that error happened at the line contained following code:

......
if cstr(doc.getitemvalue("itemname")(0)) <> "" then '<---error here
       .....
end if
.....

Code looked pretty simple and completely correct and though this error message was familiar for me I couldn't get why it happened there. I understood what was wrong only after I found that particular document and checked what was in that item.


The item had 'Error' type.


The item was created based on computed form field with formula like @GetDocField("_empty_universalid_"; "itemname"), however it does not matter what formulas was because there could be hundreds of cases which may produce similar result. So, this is another one example, why it is so important to use @IfError() or @if(@isError()).

For my conversion task I just used comparison, like

......
set item = doc.getfirstitem("itemname")
if not item is nothing then
       if item.type <> 256 then <--workaround
              if item.text <> "" then
                     .....
              end if
       end if
end if
.....

to skip such items.

---------------------
http://ypastov.blogspot.com/2014/07/notesitemtype-256-causes-variant-does.html
Jul 26, 2014
8 hits



Recent Blog Posts
8
Strange decision within IBM Verse update for June of 2017 on Android devices
Mon, Jun 12th 2017 3:41p   Yuriy Pastovenskyy
Hi IBM released a new update for IBM Verse in June 2017 - here is a link to "what's new". There is a new feature for Android about: Verse for Android: Certificate-based authentication However I don't think the way it works is correct. See my story below... Accordingly to documentation there are three authentication options supported by IBM Verse on Android devices: Traditional username/passwordCertificate-only authenticationCertificate and username/passwordOne of my customers had a foll
4
The application requires com.ibm.xsp.extlibx.library. This library cannot be found.
Wed, May 24th 2017 5:26p   Yuriy Pastovenskyy
Hi I want to share one strange thing that happened to me today. I have reinstalled IBM Notes 9.01 but did it a bit unusually: 1) I uninstalled IBM Notes and cleaned up all files and folders which usually stay after uninstallation. 2) Then I installed IBM Notes 9.01 and FP7 but when I wanted to install Extension Library from openntf.org I realized that I forgot to enable Domino Designer and Domino Administrator options during setup. So I run installer again, chose option "Modify", enabled Do
8
Great news about BM Notes/Domino 9.0.1 Feature Pack 8
Fri, Jan 27th 2017 3:22p   Yuriy Pastovenskyy
Notes/Domino Fix List (Copied from here) IBM Notes/Domino 9.0.1 Feature Pack 8 Preliminary Release Notice January 27, 2017 Beginning with 9.0.1 FP8, fix packs have been renamed to feature packs. To ensure quality, these feature packs still have a high focus on addressing high impacting defects. Where possible, these features are optional enabled to minimize risk. The same packaging, architecture and install kits used in previous fix packs remain in use for feature packs. IBM has identified im
9
How to set Workspace as default homepage in IBM Notes client
Wed, Oct 26th 2016 11:22a   Yuriy Pastovenskyy
Hi Recently I've got the task to set up Workspace as default homepage in IBM Notes client for about 400 users. Googling didn't really help - suggestion from IBM I found looked crazy and I didn't want to mess with it. My hope on Domino policies didn't work either - not sure, may be I missed something. However I found another interesting thing that can be very helpful for resolving this task. Database Bookmark.nsf (where Workspace is actually located) contains form "WPDiscoverChange" wi
5
Avoid processing items as both NotesItem and NotesMIMEEntity objects concurrently.
Thu, Jul 21st 2016 4:46a   Yuriy Pastovenskyy
Hi guys May be this will save a day to someone. Let's imagine you need to send email with HTML inside. In most of cases you would need to use NotesMIMEEntity class and probably some other MIME-related classes to build mail Body. Though it is possible to use the same classes to define Subject, SendTo, CopyTo and other mail headers people often use usual NotesItem-based syntax for the rest simple mail parameters. However very important point is that as soon as you used NotesMIME-class you can




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition