mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 3:36 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 4:00 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Dear all,

Iam getting a inconsistency error while posting the Sales invoice. while am searching for inconsistence error in mibuso , i was able to find the post done by Mr. ara3n "How to see why you are getting CONSISTENCY Error?". But there he has mentioned it for capturing inconsistence error in Code unit (12). Butg am getting eror in Sales Post codeunit.

Can i affix the same solution that he has given with Single instance codeunit and Finishcodeunit function in the Codeunit("Sales -Post"-80).

Please suggests.


Top
 Profile  
 
 Post subject: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 4:52 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Mohana Can u please Suggest in my Problem? ](*,)

"inconsistency error while posting Sales invoice "


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 4:55 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
So have you done any modification in CU80 by adding CONSISTENT function?

I never tried..but it should work..

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


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 4:57 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Till now i had not done any changes in codeunit 80. It is defualt.


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 5:03 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Search with CONSISTENT word in CU 80..
How do you know that error is from CU80?

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


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 5:09 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
while posting invoice it inconsistence error hits in Codeunit 80. i found it out by activating debugger. Just now i spoke to my senoir His soultion is seems to be vague , he simply asked me to cancel that invoice.He wants me to create a new invoice and post it .. There is no other way to solve this. I just want to understand what is trhe actual problem.


Last edited by southindian on Tue Feb 28, 2012 5:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 5:11 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Can show us the code where the debugger has stopped..

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


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 5:21 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
InsertValueEntryRelation;

IF NOT InvtPickPutaway THEN
COMMIT;
CLEAR(WhsePostRcpt);
CLEAR(WhsePostShpt);
CLEAR(GenJnlPostLine);
CLEAR(ResJnlPostLine);
CLEAR(JobPostLine);
CLEAR(ItemJnlPostLine);
CLEAR(WhseJnlPostLine);
CLEAR(InvtAdjmt);
Window.CLOSE;

Find the code for " InsertValueEntryRelation;", u will find it in CU80. am getting error at the time of "COMMIT"


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 6:06 pm 
Offline

Joined: Tue Mar 29, 2005 4:51 pm
Posts: 54
Location: Houston
Does the sales invoice in question have a line with a negative quantity? Some folks will go to extreme lengths to avoid issuing a credit memo. I ran into some consistency error issues a while back (NAV 3.7). This "user improvisation" - in combination with regular lines and sales tax calculation rounding - set up a situation where the system came up with tax amounts that were out of balance by a penny.

I used the code that ara3n provided. It pops up a window showing the contents of the journal line it is trying to post. This data is normally lost once the error is encountered. It allowed me to quickly see that problem was the imporvised credit memo replacement. The fix your In those cases, the sales documents were Sales Orders (not invoices) that were being invoiced, so they had already been received. The end result (customizations made things less than straightforward) was to make a new invoice without the negative sales quantities and then remove the bad invoice.

When you post a sales invoice, it is going to hit the G/L and that means it is going to be calling CU 12. - Did you try running ara3n's code as suggested in his post?


Top
 Profile  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 6:25 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6977
Location: L.I., New York
Country: United States (us)
When we see that error it's usually due to a rounding problem.

Say the Cost goes out 4 digits and then the line also has a line discount % of something.

By rounding the offending number up it usually solves the problem

ex. Cost = 3.4568

we'll keep rounding untill it works
3.457
3.46

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 7:23 pm 
Offline

Joined: Thu Dec 08, 2005 9:12 am
Posts: 2870
Location: India
Country: India (in)
southindian wrote:
InsertValueEntryRelation;

IF NOT InvtPickPutaway THEN
COMMIT;
CLEAR(WhsePostRcpt);
CLEAR(WhsePostShpt);
CLEAR(GenJnlPostLine);
CLEAR(ResJnlPostLine);
CLEAR(JobPostLine);
CLEAR(ItemJnlPostLine);
CLEAR(WhseJnlPostLine);
CLEAR(InvtAdjmt);
Window.CLOSE;

Find the code for " InsertValueEntryRelation;", u will find it in CU80. am getting error at the time of "COMMIT"


The error is still coming from CU 12 and not 80. That is how CONSISTENT function works. At the time of Commit it checks whether the G/L Entries created is equal to zero (debit = credit).
Follow the method of single instance CU or you can also have a simple message displaying the G/L Account and Amount field in function "InitGLEntry" in CU 12, note the accounts and then assess which entry is the culprit.

Meanwhile can you mention which version and localization you are using? In Indian version the consistency problem was more or less removed with NAV 4.0 SP3 HF6.

_________________
CA Sandeep Singla
http://ssdynamics.co.in


Top
 Profile E-mail WWW  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 8:46 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
Be sure, that you check all Knowledge articles regarding this. May be there is already solution... ;-)

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 11:14 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
southindian wrote:
Dear all,

Iam getting a inconsistency error while posting the Sales invoice. while am searching for inconsistence error in mibuso , i was able to find the post done by Mr. ara3n "How to see why you are getting CONSISTENCY Error?". But there he has mentioned it for capturing inconsistence error in Code unit (12). Butg am getting eror in Sales Post codeunit.

Can i affix the same solution that he has given with Single instance codeunit and Finishcodeunit function in the Codeunit("Sales -Post"-80).

Please suggests.


Yes it will work in your case. This is one of the best down loads on this site, personally it has saved me hours upon hours of debugging time.

Just install it exactly as Rashed explains in CU12 and it will capture the error in sales posting. In fact most of the times I have used it was to find sales tax and vat rounding errors in sales posting. (all errors in standard Navision :-$ )

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Tue Feb 28, 2012 11:18 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
dleroux wrote:
Does the sales invoice in question have a line with a negative quantity? Some folks will go to extreme lengths to avoid issuing a credit memo. I ran into some consistency error issues a while back (NAV 3.7). This "user improvisation" - in combination with regular lines and sales tax calculation rounding - set up a situation where the system came up with tax amounts that were out of balance by a penny.


You could probably have resolved this by putting a zero value sales line between the positive and negative lines, eg. to a GL rounding account qty 1 amount 0. This is because of the way that Navision carries rounding from line to line progressively through the sales lines till the last line to minimize the total round amount.

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: inconsistency error while posting Sales invoice
PostPosted: Wed Feb 29, 2012 6:02 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
http://www.mibuso.com/forum/viewtopic.php?f=32&t=52068

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 14 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: