IBM Support

Object variable or with block variable not set error with E-mail Reader

Troubleshooting


Problem

This technote explains how to resolve the error "Object variable or with block variable not set". This occurs when using the IBM® Rational® ClearQuest® E-Mail Reader.

Cause


  1. An incorrect action name is defined in the E-mail subject. For example, the starting action in an ALM schema is generally Open. You instead send the E-mail with the action Submit.
  2. There is no action name specified in the E-mail subject. In general, if the defaults are defined in the Mail Reader setup, then action names become optional. This rule applies only to either MODIFY or CHANGE_STATE action types. For other action types, though they are defaults, you have to enter the action name in the email subject field.

Resolving The Problem

To resolve this issue, review these solutions:

Solution:
Enter the action name in the subject field. For example, if the MODIFY action is set as the default, then a Modify e-mail should look like this:

Subject: RE: defect SAMPL00000017
Body: {Today we posted a patch for this problem on the company intranet. Please download the patch to solve your customer’s problem.}

Note: It is not necessary to put MODIFY in the subject field.

... but when Submitting with an e-mail, you have to specify the action::

Subject: Defect SUBMIT
Headline: Spelling error in company logo
Severity: 1-Critical

Note: The action name is entered in the subject field.


Alternate solution:

If you are still getting the error, you need to check all the field names in your schema. Make sure that in your message syntax you are indeed using all the field names correctly and not submitting them based on field Labels.


Check these steps:

  1. Launch Rational ClearQuest Designer.
  2. Check out or view your schema.
  3. Go to your Record Type, then select Forms.
  4. Go to each field property to look up the actual field name. Make sure to use that in your E-mail message.
  5. If you find a discrepancy between the field labels and the actual field names, make sure you use the field names instead.


[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"E-Mail Reader","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2003.06.00;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16;7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.1;7.0.1.1;7.0.1.2;7.0.1.3;7.0.1.4;7.0.1.5;7.1;7.1.0.1;7.1.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

118956384

Document Information

Modified date:
04 December 2018

UID

swg21146952