Note to self.
Be careful of creating extensions to a table, that contains no augmentation.
I experience problems when opening the Released Products Forms on my developer box.
I got a run-time error "Object reference not set to an instance of an object" when opening the form. The error also occurred when changing records in the form, BUT strangely enough ONLY the first time the cursor arrived a at record. The second there was no problem.
Researching a bit with the debugger, I could see that the error occurred at the super() call in the FormRun class, and in the active method on the EcoResProduct datasource.
I discovered that I by accident had created an extension to the table EcoResProduct that contained NO augmentation what so ever.
Double checking that the extension had not been checked in to azure DEVOPS, and that the xml-file for the table extension in
K:\AosService\PackagesLocalDirectory\xxxxxDev\xxxxxDev\AxTableExtension
contained no augmentation, I deleted the extension in Visual Studio, compiled the whole model, and poof the error was gone.
Comments
Post a Comment