Note that there are some explanatory texts on larger screens.

plurals
  1. POType mismatch in method RunStkCoerceVal in Lotusscript
    primarykey
    data
    text
    <p>First of all I want so say, that I'm a very beginner in developing a Domino Application. So please consider this fact when answering my possibly dumb question.</p> <p>I have the following problem:<br> When I execute the following code, it runs into the 1st <code>MsgBox</code> which shows up just normal. But it does not run into the 2nd <code>MsgBox</code>! Instead I get the following error message:</p> <p><code>Type mismatch in method RunStkCoerceVal in Lotusscript agent STRING found Null expected.</code></p> <p>Here is the code:</p> <pre><code> Dim session As NotesSession Dim db As NotesDatabase Dim ws As New NotesUIWorkspace Dim thisDoc As notesUIDocument Dim docSMBPrivateProfile As notesDocument Dim test As Variant Set session = New NotesSession Set db = session.CurrentDatabase Set thisDoc = ws.CurrentDocument Set docSMBPrivateProfile = db.GetDocumentByUNID(thisDoc.FieldGetText("SMB_PRIVATE_PROFILE_DOCUMENT_ID")) Msgbox("This message will appear") Set test = docSMBPrivateProfile.FieldGetText("DOCUMENT_ID_TEST") Msgbox("This message won't appear") </code></pre> <p>Please note that the call <code>thisDoc.FieldGetText("SMB_PRIVATE_PROFILE_DOCUMENT_ID")</code> works normal just as expected.</p> <p>I set the data type of <code>test</code> to <code>Variant</code> in order to avoid type mismatch problems. In fact I expect a <code>String</code>.</p> <p>The only topic I found about this problem is found here: <a href="http://www.secure-eserver.com/?p=3431" rel="nofollow">http://www.secure-eserver.com/?p=3431</a> But I'm not able to make head or tail of it.</p> <p>Can you please provide me any help?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload