Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Critical error in kernel 3.81.

Posted on by 85

Hello,

We have a custemer on

- Xal version: 381.351 (Build #351) for SQL
- SQl server 2008
- OS: Windows Xp.


The custemer have upgraded and running the xal 381 for a couple of mounths.
But he have problems with transid number setting in table StockTrans.

They become aware of the problem when they tried to invoiced some orders they an
error message "Illegal reference between stocktable and stocktrans".
  

We have noticed that diffrent users or even different sessions seam to follow
diffent numberseries when setting next number on TransId.

Example: User 1 Create a salestrans and get 10027 on transid, after that
  user 2 Create a salestrans and get 10058 after that
  user 1 Create a salestrans and get 10029.

And sometimes the numbers seams to make jump. For example go from 10029 to 10070.

This results that transactions on diffrent articels get the same transId number,
leading to error and instability in the system.

We have tried to do the following:

- 1: Checked the systemtable XALSEQ field SEQNO that gives the next number for TransId.

- 2: Tried to run this code:
 // Start:       
        INTRODUCE StockTrans[TransIdIdx,0]
        LAST      StockTrans
        SET &TransIdMax= StockTrans.TransId

 #IF.SQL     
            SET SqlWrap::AlterXalSeq(&TransIdMax+1)
 #ENDIF
 // End
  
 In purpose to set a new value on next TransId number.  


- 3: checked the value that diffent user get from this code:  
  // Start.
 SET TransId = #DB_File(FileId2Name(StockTrans.FileId),SEQ) + 1
 // End.

 The resultat is that diffrent user get different &TransId number.

- 4: We can confirm the problem on our local installaition.
 

What could this depend on?
What else can we check? Any ideas? 
Is it a bug in kenel 3.81?

Plaese we have critical problem in the custemer system.

Regards: Björn Claeson

  • Björn Claeson Profile Picture
    Björn Claeson 85 on at
    Re: Critical error in kernel 3.81.

    Hello Henrik,

    Thanks a lot for the information.

    Its explain and help us a lot.

    We will check if its something else who causing the problem.

    Regards: Björn

  • Suggested answer
    Henrik Hansen Profile Picture
    Henrik Hansen 340 on at
    Re: Critical error in kernel 3.81.

    Hello Björn,

    I am not application programmer, but as fat as the kernel goes, TransIds are derived from The RecIDs that the kernel requests 10 at a time.

    Therefore different XAL sessions have 10 RecIDs available at a time with no garantee that all 10 taken will be used.

    This is normal behaviour and has been as long as XAL has been running on SQL platforms.

    I do not think that it is a good idea to interfere with this mechanism.

    Best Regards

    Henrik Hansen

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans