Object reference not set to an instance of an object

Hi Community,


I've an custom assembly package, with a custom business process.

In the business process I added a script block element.

If I move a process element to the designer and try to save, I get the error "Object reference not set to an instance of an object."

To solve the problem I have to change something in the script block and save the BP.

Is there any other way to do this?


In the Error.log file there is this error:

2022-05-17 09:40:55,788 [92] ERROR IIS APPPOOL\creatio Terrasoft Post - ManagerServiceLog - ErrorCode = NullReferenceException; Message = Object reference not set to an instance of an object.; InnerException: ; StackTrace =    in Terrasoft.Core.Process.ProcessSchemaManager.GetIsProcessExistsInAssembly(ProcessSchema processSchema)
   in Terrasoft.Core.Process.ProcessInterpretationValidator.ChangedSchemaMethodsRule.ValidateCompiledMethodsInAssembly(ProcessSchema processSchema)
   in Terrasoft.Core.Process.ProcessInterpretationValidator.ChangedSchemaMethodsRule.Validate()
   in Terrasoft.Core.Process.BaseInterpretationValidator`1.Validate(TProcessSchema processSchema, List`1 validationRules, Boolean checkAllRules)
   in Terrasoft.Core.Process.ProcessSchemaManager.GetProcessValidationResult(ProcessSchema process, UserConnection userConnection)
   in Terrasoft.Nui.ServiceModel.WebService.BaseProcessSchemaDesigner`1.ValidateSchema(ISchemaManagerItem item, BaseProcessSchemaResponse response)
   in Terrasoft.Nui.ServiceModel.WebService.BaseProcessSchemaDesigner`1.Save(ContractBaseProcessSchema`1 schema, BaseProcessSchemaResponse response)
   in Terrasoft.Nui.ServiceModel.WebService.ProcessSchemaManagerService.Post(ContractProcessSchema processSchema)

Like 0



Dear Stefano,
Sometimes you can catch a bug when trying to save a new version of the process with script-task to assembly package.
This bug is actual for 7.18.5 and lower versions, for example. But in 8.0+ versions it's already fixed.
As a workaround, I can suggest you use a simple package, not an assembly one. 
Of course, the best way to fix it is to update your application to 8.0+.
Best regards, Alex.


Aleksei Efimenko,

Thank you Aleksei

Show all comments