Skip to main content
Question

Error on publishing customization project

  • 6 April 2022
  • 2 replies
  • 417 views

I am getting the following error message when I try to publish changes made to my customization project , I added a new field ton the journal transaction screen GL301000

Publish Customization
Compiled projects: FeedmixCustomisation1.0.0,materialUsage
Validation started.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Customization.ModuleEditor.InjectNewFields(CstDocument doc, FilesCollection context)
   at Customization.CstManager.ValidateDocument(CstDocument doc, Action`1 logMessageDelegate, Boolean patchLibInDB)
   at PX.Customization.CstValidationProcess.ValidateCurrentDocument(Action`1 logMessage, String& warnings)
   at PX.Customization.CstValidationProcess.CompileInternal()
   at PX.Customization.CstValidationProcess.<>c__DisplayClass6_0.<ProcessRequest>b__0()


How do I resolve these issue?

@kudzaim20  It is hard to comment on what can be the issue without having the package, but my best guess is you missed to set one of required attributes for the new field added. Null reference error usually refers to that. For new fields you need to set the length, data type, name and display name. Check and find out which one is missing.


Hi @kudzaim20 were you able to resolve your issue? Thank you!


Reply