Skip to main content
Solved

CS Error: Cannot generate the next number for the sequence Custome DAC ?

  • 26 May 2024
  • 2 replies
  • 63 views

I got CS Error: Cannot generate the next number for the  sequence on Custome DAC and Custome New Screen 

 



This My DAC

 



    public static class MyNumberingSequence
    {
        public const string SequenceID = "BUYINGDOC"; // New sequence ID
        public class sequenceID : PX.Data.BQL.BqlString.Constant<sequenceID>
        {
            public sequenceID() : base(SequenceID) { }
        }
    }


1. Why i got erorr CS Error: Cannot generate the next number for the  sequence ?
2. Why I got  <SELECT> not <NEW> , can u help for change the default value to  <NEW> like reciept secreen entry ?
 

Can you help me sense ?
Thanks

2 replies

Userlevel 7
Badge +19

@Febri Can you please try like below and I think it will resolve your issue.

 

Include SEARCH for AutoNumber Attribute

 

[AutoNumber(typeof(Search<MyNumberingSequence.sequenceID>), typeof(AccessInfo.businessDate))]

Userlevel 2
Badge

Thanks sense, this is solve 

Reply