mibuso.com

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

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Internal error 1247 in module 19
PostPosted: Fri Oct 31, 2008 5:53 pm 
Offline

Joined: Fri Oct 31, 2008 5:04 pm
Posts: 1
Dynamics Navision 4.0 SP1

It occurs just too often. I know the reason (This problem may occur when you handle a new transaction inside a transaction.), but don't know how to resolve this. It's Navision bug. Does anybody know, how to resolve this problem? I've searched for hot fixes (Partnersource), but only what I've found was this problem should be resolved in some service pack for Dynamics Navision 5.01. OK, good for them, but what about others?

Any ideas?
Thank you.


Top
 Profile E-mail  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Oct 31, 2008 6:03 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)
http://dynamicsuser.net/forums/p/12087/58946.aspx
viewtopic.php?f=14&t=12221
http://wiki.dynamicsbook.com/index.php? ... r_messages

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


Top
 Profile E-mail WWW  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Tue Dec 09, 2008 5:04 pm 
Offline

Joined: Tue Dec 09, 2008 4:59 pm
Posts: 1
Hi,
For version 4, look at the KB article 948824 on microsoft.
I hope it will help you


Top
 Profile E-mail  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Wed Nov 24, 2010 12:52 pm 
Offline

Joined: Wed Apr 11, 2007 12:07 pm
Posts: 167
Location: Barcelona
Country: Spain (es)
I've got this error and I'm really confused. I don't think it is caused by a deadlock...

I'm using a NAS to do some processing.
The NAS is running all day on an endless loop, looking for records to process. After processing every record, I do a COMMIT to unlock tables used by the NAS.
I do also do some kind of error control, so that if a record throws an error, the NAS can move to the next record and forget about the first one.

Here is the code for the endless loop and the error control:
Code: Select all
WHILE TRUE DO
BEGIN
  Table1.RESET;
  Table1.SETRANGE("Error Field",FALSE);
  IF Table1.FIND('-') THEN
  REPEAT
    CLEAR(Codeunit1);
    Codeunit1.FunctionToSetRecordToProcessAsGlovalVarOnCodeunit(Table1);
    IF NOT Codeunit1.RUN THEN
    BEGIN
      FunctionToInsertErrorMessageAsCommentOnRecord(Table1,GETLASTERRORTEXT);
      CLEARLASTERROR;
      Table1."Error Field" := TRUE;
      Table1.MODIFY;
    END;
    COMMIT;
  UNTIL Table1.NEXT = 0;
END;


And here the code on the OnRun trigger
Code: Select all
  Table1Lines.SETRANGE("Document No.",Table1GlobalVar."Document No.");
  //*****
  // Here the processing code for both header (the global var that the previous function passed to the codeunit) and its lines
  //*****   

  Table2.INIT;
  Table2.TRANSFERFIELDS(Table1GlobalVar);
  Table2.INSERT;

  IF Table1Lines.FINDSET THEN
  REPEAT
    Table2Lines.INIT;
    Table2Lines.TRANSFERFIELDS(Table1Lines);
    Table2Lines.INSERT;
  UNTIL Table1Lines.NEXT = 0;

  Table1GlobalVar.DELETE;
  Table1Lines.DELETEALL;


Table2Lines.INSERT gives an error because the line already exists.
Ok, this can happen. But... the error control on the function that does codeunit.RUN should catch it...
It is catching many other errors (the blocked error when trying to insert item on a transfer line and the item is blocked, error saying that Quantity cannot be less than shipped quantity if the process tries to reduce quantity on a partially posted transfer line, etc. etc.).
I've even seen the error that is poping now about line already existing on Table2Lines on my error control table...
I've also seen on my error control table a record that could not be processed because of locking.

But now... instead of catching the error and moving on... I do see the error message on the server's Event Viewer, and right after the error, there is another event on the Event Viewer that says: Internal error 1247 in module 19.

It cannot be a deadlock, as the NAS starts (and has got the error) at midnight and there are no users at that time...
It could have locks on some other times, as the NAS is running all day long and at some point, of course, there are users on the database... but this particular one, at midnight, it is impossible!

Any help will be really appreciated


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Wed Nov 24, 2010 1:17 pm 
Offline

Joined: Wed Apr 11, 2007 12:07 pm
Posts: 167
Location: Barcelona
Country: Spain (es)
Thetyb wrote:
Hi,
For version 4, look at the KB article 948824 on microsoft.
I hope it will help you


I'm not in version 4, but in version 5.01.
KB says: This problem may occur when you handle a new transaction inside a transaction
And it provides new exes to solve the problem.

Does anyone know if there are new exes for 5.01 as well?
Or could anyone tell me if somewhere in my code I'm "handling a new transaction inside a transaction"?


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Wed Nov 24, 2010 1:44 pm 
Offline

Joined: Wed Apr 11, 2007 12:07 pm
Posts: 167
Location: Barcelona
Country: Spain (es)
I've run the endless loop manually, not using the NAS... and the internal error is thrown in line Table1GlobalVar.DELETE;

Why? I don't understand it... there is one record that is causing problems...
I've manually checked "Error Field" on that record, and the NAS was able to process a bunch of other records.
I've stopped the NAS, unchecked "Error Field" manually and run the endless loop manually and keep on getting the same internal error.
Am I locking myself somehow?


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 11:46 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
sorry for necroposting...but i have to download this darn KB and i cannot find the link (google and bing couldn't help, and needless to say, https://mbs2.microsoft.com/Knowledgebase/search.aspx didn't give any result, as always :evil: )
someone can help?

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 1:47 pm 
Offline

Joined: Thu Apr 26, 2007 2:28 pm
Posts: 322
Location: Lawrenceburg, Kentucky
Country: United States (us)
I think this is the link to the hotfix:
https://mbs2.microsoft.com/Knowledgebase/kbdisplay.aspx?wtntzsmnwukntmmyvlxuzlwukkqpovrvxytuqpskvuxozzwm

let me know if you can download it.

Regards,

Willy

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


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 2:51 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
Great, i owe you one :wink:
just a question: how did you find it?!?!?

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 3:27 pm 
Offline

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

Actually.....I used the Knowledge base search https://mbs2.microsoft.com/Knowledgebase/search.aspx and searched on '948824' :whistle:

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


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 3:31 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
it doesn't work for me (as you can see, I already tried - and now, retried - to use the search for the kb id)..there must be something messy with my account...

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: Internal error 1247 in module 19
PostPosted: Fri Apr 27, 2012 10:23 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
Belias wrote:
it doesn't work for me (as you can see, I already tried - and now, retried - to use the search for the kb id)..there must be something messy with my account...


I have the same problem. I wonder if there isn't some IP blocking on mbs.microsoft.com that is causing problems. Or maybe the log in account.

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


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

All times are UTC + 1 hour [ DST ]


Who is online

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