Skip to main content
Answer

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

  • May 26, 2024
  • 2 replies
  • 176 views

Forum|alt.badge.img

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

Best answer by Naveen Boga

@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))]

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • May 27, 2024

@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))]


Forum|alt.badge.img
  • Author
  • Freshman I
  • May 30, 2024

Thanks sense, this is solve