2025.2 Breaks SysSequence?

I was testing something in our Pilot and none of my auto numbering functions were working. My Function library was disabled and when I try to enable it I get the following error.

library.db.interface.cs(14,20): error CS0246: The type or namespace name 'SysSequence' could not be found (are you missing a using directive or an assembly reference?)
library.db.cs(30,27): error CS0246: The type or namespace name 'SysSequence' could not be found (are you missing a using directive or an assembly reference?)
library.db.cs(30,64): error CS1061: 'ErpContext' does not contain a definition for 'SysSequence' and no accessible extension method 'SysSequence' accepting a first argument of type 'ErpContext' could be found (are you missing a using directive or an assembly reference?)
library.db.tracker.cs(24,47): error CS0246: The type or namespace name 'SysSequence' could not be found (are you missing a using directive or an assembly reference?)

This is @klincecum solution. Anyone else run into this and know how to fix?

1 Like

Figured out you cannot add SysSequence as a Table Reference anymore.

5 Likes

@klincecum has one on here that uses Ice.Lib.NextValue instead of tables

https://www.epiusers.help/t/lets-share-useful-functions-sharing-is-caring/100371/23?u=jbooker

1 Like

https://www.epiusers.help/t/lets-share-useful-functions-sharing-is-caring/100371/23?u=jbooker

Yes, but his also requires you adding the Table as a reference. That is what I am currently using.

1 Like

Well, looks like you do not need to reference the table. I deleted it and everything appears to be working again.

4 Likes

That feels very anti-function …

Do you actually reference the SysSequence table in your own code? if you do not, you do not need it as a reference. The Ice.LibNextValue will reference it itself. The table references are for what ou can directly manipulate within your function not for something that a method from another class you use might reference.

7 Likes

Thanks Patrick.

1 Like

Thanks @pferrington , but I truthfully copied it from another user so I thought it was required. But you are correct, it was not needed.

1 Like