Problem solve Get help with specific problems with your technologies, process and projects.

Problem code that generates Excel reports on Web from ND application

We are currently having problems with some code that generates Excel reports on the Web from a Notes Domino application. The code uses a blank Excel template that is stored in the database, makes a temporary copy of it, populates it with the required data, attaches it to a new Notes document and then deletes the temporary copy. The code has been running ok for over one and a half years, but now when it runs, it brings the whole server down. When the same code runs on the Notes client, it seems to run ok. Do you have any ideas what could be the problem?
There's a reason you can't spell "complicated" with COM… (ok -– bad joke).

In all seriousness, COM code is difficult to troubleshoot, but I'll give you a few things to check based on my own experience.

The most important thing is to determine whether anything in the environment has changed.

  1. Confirm that the server has Excel installed on it. (It cannot instantiate an Excel COM object if Excel is not installed on the server. This is possible if the Notes server was moved to a new physical machine that does not contain Excel.)

  2. If your Excel COM object was created for a specified version of Excel, confirm that the specified version is consistent with the version of Excel on the server.

  3. Confirm that the design of the Excel template is the same design that your code is expecting.

  4. Verify that the agent signer has rights to run restricted operations such as creating files on the server.

  5. Verify that the code does not have memory leaks (i.e., that it properly closes the COM objects so they are not hanging around in the server's memory). This includes error handling to make sure these objects are cleaned up properly.

If all else fails, adapt the code to run in the Notes client and try to test it locally to ensure that the code is still doing what it's supposed to do.

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Domino Designer

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...