Previous Thread

8/14/2006 5:08:01 AM    Info log
Hi 
 
A client of ours has complained that the error log when trying to post an 
 
inventory transaction does not give all the error messages at one time. 
 
So, they will try and post a purchase order, for example, and some errors 
 
will be displayed. When they fix these errors and post again, more errors are 
 
displayed. They want all the errors displayed at one time. 
 
Is there a way that the text on the infolog can be increased as I think this 
 
may be the problem. 
 
Thanks 
 
Jenny



8/14/2006 9:28:20 AM    Re: Info log
This may not be the case.  It is very probable that the code will not run 
 
further checks due to the previous error.  For instance, say you have 
 
something like the following pseudocode: 
 
.... 
 
boolean ret = true; 
 
; 
 
if (!condition1) 
 
ret = error("Error 1 has occured); 
 
if (ret && !condition2) 
 
ret = error("Error 2 has occured); 
 
if (ret && !condition3) 
 
ret = error("Error 3 has occured); 
 
return ret; 
 
.... 
 
If condition1 returns false, ret will be set to false, thus conditions 2 and 
 
3 will never be checked.  In this case you'll get the message "Error 1 has 
 
occured", and when you fix condition1, condition2 (and possibly 3) are then 
 
checked the next time you execute this section of code.  Make sense? 
 
Best Regards, 
 
-Justin

8/14/2006 4:50:25 PM    Re: Info log
I don“t believe that the info log cannot hold all error messages. I 
 
think there might be some checks that cancel the whole process and if 
 
you restart it you can go on and run into an error message caused by a 
 
later check. So with the standard you cannot avaoid this behaviour as it 
 
does not collect all messages and throws them out at the end of the 
 
validation/check stage. 
 
-- 
 
Regards, 
 
Carsten Horlacher 
 
"Jennifer Guy" <JenniferGuy@discussions.microsoft.com> schrieb im 
 
Newsbeitrag news:7FFCEC02-C5C5-4803-A2EB-2A5EFD897E97@microsoft.com...