Vendor ledg. Entry in AL

Hello All,

I have extend Table Vendor Ledger Entry,added some customized fields,created procedure,added some code in OnInsert() Trigger in AL, But when I run (F5), I got one error. “error AL0162: ‘OnInsert’ is not a valid trigger”. please suggest me how to resolve this error.

Thank You

Hi Akkrahul,

It’s very simple. You cannot use OnInsert in a table extension. You have to use

trigger OnAfterInsert()

Not really sure how you got this error in the first place. If you would be using intellisense then you would have seen that the OnInsert trigger was not among your options. If you always use intellisense, then you dont get problems like this. [emoticon:c4563cd7d5574777a71c318021cbbcc8]