mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 8:33 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [Good Posting!] Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 11:23 am 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
Since this morning we're getting the following bug in our dev enviroment.
When we try to open customer card from main menu.
Image
All sensitive info been blanked out
However when we go via the shipment card, which was made inhouse and lookup the client and select client card in the overview we get the card loaded.

The error states: 'The value in the filter '....' for field Customer number in table Customer Combination is to large for the field type. Type:Code10'


Last edited by Resender on Tue Apr 10, 2012 2:05 pm, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 11:27 am 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Can you translate the error?

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 11:31 am 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
mohana_cse06 wrote:
Can you translate the error?

The error states: 'The value in the filter '....' for field Customer number in table Customer Combination is to large for the field type. Type:Code10'


Top
 Profile E-mail  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 11:33 am 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Did you try to debug the error?

Is there any code in OnOpen form or OnAftergetrecord?

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 11:41 am 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
mohana_cse06 wrote:
Did you try to debug the error?

Is there any code in OnOpen form or OnAftergetrecord?

We tried that first, but the error occured even before debugger started.
There's code in those sections
OnOpen
Code: Select all
ActivateFields;
CheckBlocked;


OnAftergetrecord
Code: Select all
SETRANGE("No.");
CheckBlocked;


ActivateFields;
Code: Select all
CurrForm.Contact.EDITABLE("Primary Contact No." = '');
lrecUser.GET(USERID);
CurrForm.Exported.EDITABLE(lrecUser."Wijzigen geƫxporteerd");


CheckBlocked
Code: Select all
IF Blocked = TRUE THEN BEGIN
  CurrForm.LabelBlokkering.VISIBLE := TRUE;
  CurrForm.TextBlokkering.VISIBLE := TRUE;
END ELSE BEGIN
  CurrForm.LabelBlokkering.VISIBLE := FALSE;
  CurrForm.TextBlokkering.VISIBLE := FALSE;
END;


As myseriously as the error/bug appeared it seems to have dissapeared as well.
We have performed no actions on the database on the form between posting first post and this one.


Top
 Profile E-mail  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Wed Apr 04, 2012 6:11 pm 
Offline

Joined: Thu Apr 26, 2007 2:28 pm
Posts: 322
Location: Lawrenceburg, Kentucky
Country: United States (us)
Hi,

it looks like you are matching the customer number from the customer table to your "Klant Combinatie" table.
Check the length for Customer No. in that "Klant combinatie" table. It should be 20 as the default length of the Customer."No." field is 20.
And the error states it is only 10 characters long.

I think that you are now for the first time assigning a customer."No." that is more then 10 Characters long.

I hope this helps,

Regards,

Willy.

_________________
Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.


Top
 Profile  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Fri Apr 06, 2012 10:31 am 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
That was my first idea as well, since I was working on a dataport that involved Customer.
But none of the data I used to test preliminary code had the data the error was showing.

When we looked in the table and applied a filter with the values on the customer number nothing was returned.
Also the error occurred when we called the form directly (with or without debugger) we would get the error, if we went to a shipment and
called the customer card we didn't get the error.
About an hour or so after the error no longer occurred, we had done nothing but look if there was a filter on somewhere, since only 3-4 people have access at any given time to the developers database and I was the only 1 working on it when it first occurred.

My colleague says it might have been data corruption, but I don't accept that.
That's like in the movie 'Hunt for Red October' where the computer for the sonar system,on board the USA sub Dallas, identifies the noise of the October's silent drive as magma displacement since it has no other explanation for the sound.

There must be a logical explanation why it happened.


Top
 Profile E-mail  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Fri Apr 06, 2012 1:47 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Thu Jan 02, 2003 6:37 pm
Posts: 7931
Location: Howell, MI
Country: United States (us)
Resender wrote:
That's like in the movie 'Hunt for Red October' where the computer for the sonar system,on board the USA sub Dallas, identifies the noise of the October's silent drive as magma displacement since it has no other explanation for the sound.

:thumbsup: one of my favorite movies, I might actually watch it again this weekend :mrgreen:
Resender wrote:
There must be a logical explanation why it happened.

That error message only comes up when a value is too big for the data type. Somewhere, a filter was being set with a value that was bigger than 10 characters, on a field that is 10 characters. You just need to find where, or not and move on because it's not happening anymore.

_________________
Daniel Rimmelzwaan
MVP - Dynamics NAV


Top
 Profile  
 
 Post subject: Re: Strange bug, can't open form, filter is to big for field
PostPosted: Tue Apr 10, 2012 2:05 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
I still have it on vhs, I might try getting a dvd or blu-ray of the movie.
Yeah, so we know the reason for the error, we know what tables and forms that we're suffering from the error.
The only thing we don't know is why, but since it's no longer occurring I'm not going to search for a reason why and just going to file it under
'Random circumstances', meaning we don't know the route but its been fixed.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: