Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Debugging in Maintain

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Debugging in Maintain
 Login/Join
 
Gold member
posted
Hey everyone,

This seems like a simple question, but here goes. When you receive an error message like (FOC03601) ERROR AT OR NEAR LINE 1510 IN PROCEDURE fow/Start.MAINTAIN
how do you find line 1510? My start.mnt file only has 220 lines in it. And there seems to be no way of telling what the line number is for things that may cause errors like event handlers. I keep getting this error and I have no idea what in my project is causing it. Furthermore, I have no way of knowing where line 1510 is at. It is hard to debug when you don't know where to look.

Any ideas?

This message has been edited. Last edited by: brjohnson,


Bryan Johnson
WebFOCUS 7.7.03
Maintain
Win 7
Excel, PDF, HTML
 
Posts: 54 | Registered: January 16, 2008Report This Post
Platinum Member
posted Hide Post
It sounds like you are getting in error in the form part of your .mnt file, which doesn't show in the MDE text editor.

You could use an external text editor (I like Notepad++) to see what code is at the failing line number and probably see a reference to a particular form object as a clue to fixing the error. But be careful not to save changes to the form XML, as it could corrupt your form code. In fact it would be a good idea to export your forms before doing this, just to be safe.

I use an external editor all the time, but I am familiar with the form XML, and even edit it from time to time.

There have been discussions here about changing the way that form data is stored in the Maintain system, searching the Forum would be fruitful.


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
 
Posts: 165 | Location: Detroit Metro | Registered: September 17, 2003Report This Post
Virtuoso
posted Hide Post
Bryan,

What Dave suggests is almost right. It is indeed related to the xml part of the mnt file. But in this case the error refers to the .wfm file that is being generated when the maintain is deployed. This wfm file is basicly a detailed translation of what is in xml-part of the .mnt file. And like Dave suggests, use some text-editor to open the file (it's just plain text) and navigate to the line that is indicated in the error. Most probably you'll find some error situation in the near vicinity of the indicated line.

Hope this helps...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
When I get an error that points to a line number higher than the number of lines in my MNT file, I open up the WFM and go to the line in there. An error in the WFM file usually means an error in an Event Handler or with the stack / text populating an object. I find the form that contains the error and open the file in the MDE.

Check the syntax of the events on the form. Many times the errors are here. Also, make sure there are no empty triggers. This is a trigger that has a case name and and endcase, but nothing in the middle. That can cause lots of problems.

Sometimes we create an object with a stack or a database field, and then change the name of the stack or edit the MFD. That can cause an error that has to be fixed by either editing the object or deleting it and re-adding it.

If you are really stuck and the repro is small, send it to me and I will be happy to debug.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Gold member
posted Hide Post
Thanks everyone for your help. I did not realize you could edit the WFM file manually, but that does make it much easier to find errors. You were right Mark it was an empty event handler.

Thanks again


Bryan Johnson
WebFOCUS 7.7.03
Maintain
Win 7
Excel, PDF, HTML
 
Posts: 54 | Registered: January 16, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Debugging in Maintain

Copyright © 1996-2020 Information Builders