Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:59:00+00:00 2026-06-17T15:59:00+00:00

First of all I want so say, that I’m a very beginner in developing

  • 0

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.

I have the following problem:
When I execute the following code, it runs into the 1st MsgBox which shows up just normal.
But it does not run into the 2nd MsgBox! Instead I get the following error message:

Type mismatch in method RunStkCoerceVal in Lotusscript agent STRING found Null expected.

Here is the 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")

Please note that the call thisDoc.FieldGetText("SMB_PRIVATE_PROFILE_DOCUMENT_ID") works normal just as expected.

I set the data type of test to Variant in order to avoid type mismatch problems. In fact I expect a String.

The only topic I found about this problem is found here: http://www.secure-eserver.com/?p=3431
But I’m not able to make head or tail of it.

Can you please provide me any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:59:01+00:00Added an answer on June 17, 2026 at 3:59 pm

    docSMBPrivateProfile is based on NotesDocument class which does not have FieldGetText method. Use test = docSMBPrivateProfile.GetItemValue("DOCUMENT_ID_TEST")(0) instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all i want to say that I'm still a beginner in ASP.NET
First of all i want to say that i have searched each and every
I would first want to say that I am very new to javascript and
First of all, want to say, that I'm not a front-end engineer and my
First of all. I want to say that i've acctualy read the other posts
First of all I want to say that I know its bad to serve
first i want to say that this site has been a really big help
First of all I just want to say that I never understood so well
First of all, I just want to say that I begin at Objective-C. Here
First of all, I want to say that I know there are a bunch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.