• MikhailV
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,

I have a strange issue with creating chatter group with my Apex code.

Simple code for creating CollaborationGroup works fine in development environment, but raises NinjaValidationException when installing uploaded package.

I didn't find any documentation about this exception and neither any information about what is wrong with the code.

 

Code:
CollaborationGroup grpRec = new CollaborationGroup();

grpRec.Name = 'New';

grpRec.CollaborationType = 'Public';

insert grpRec;

 

This code fails in insert statement
Exception log:

Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, com.ninja.common.exception.NinjaValidationException: workspaceId - This field is required: []

 

As you can see, it says that some field is required, but instead of required field names there is an empty list.

 

Can anybody advice what is wrong here, or is there any workaround for the issue?

Hi,

I have a strange issue with creating chatter group with my Apex code.

Simple code for creating CollaborationGroup works fine in development environment, but raises NinjaValidationException when installing uploaded package.

I didn't find any documentation about this exception and neither any information about what is wrong with the code.

 

Code:
CollaborationGroup grpRec = new CollaborationGroup();

grpRec.Name = 'New';

grpRec.CollaborationType = 'Public';

insert grpRec;

 

This code fails in insert statement
Exception log:

Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, com.ninja.common.exception.NinjaValidationException: workspaceId - This field is required: []

 

As you can see, it says that some field is required, but instead of required field names there is an empty list.

 

Can anybody advice what is wrong here, or is there any workaround for the issue?