• Shivangi Srivastava
  • NEWBIE
  • 0 Points
  • Member since 2014

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

I have a custom object 'Plan'.I am trying to share it  with all the community users(which contains users with different profiles) through apex code(Plan_share object)
 BUT facing an exception as:

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: unknown (invalid user or group: 005U0000002hje3): [unknown]

whereas If I go the same Id i.e;005U0000002hje3 in my org ,there exist a valid community user with this id.

Can anybody suggest what I am missing here??

I have a custom object 'Plan'.I am trying to share it  with all the community users(which contains users with different profiles) through apex code(Plan_share object)
 BUT facing an exception as:

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: unknown (invalid user or group: 005U0000002hje3): [unknown]

whereas If I go the same Id i.e;005U0000002hje3 in my org ,there exist a valid community user with this id.

Can anybody suggest what I am missing here??