I am trying to Create Services to Create Node Type Discussion in a Group using Services Module, but getting the error :

500 Internal Server Error : An error occurred(0): Unknown data property field_group_privacy

In the Header I have given:


x-csrf-token:token value

session-name:session name value

In the Body I have given :

"og_group_ref": {"und": [{"target_id": "3897"}]},

"title": "Title of discussion",

"field_description": {"und": [{"value": "test description"}]},

"type": "discussion"


Can anyone please tell me why I am getting this error ?


  • What module, field type and widget are used for your field_group_privacy? – tyler.frankenstein Oct 8 '15 at 2:10
  • field type is Boolean And Widget is Check boxes/radio buttons This Field is in Groups, but I am trying to create Discussion in a particular Group. – Malik Oct 8 '15 at 7:14
  • If field_group_privacy is set to required, try changing it to optional to see what happens. I'd also use grep -rn 'field_group_privacy' sites/all to see what (if any) code is trying to tinker with that field. I'd also suspect any contrib module related to that field as well. – tyler.frankenstein Oct 8 '15 at 14:16
  • @tyler.frankenstein I activated syslog and its showing this error : EntityMetadataWrapperException: Unknown data property field_group_privacy. in EntityStructureWrapper->getPropertyInfo() (line 335 of /home/content/34/10950234/html/***/***/sites/all/modules/contrib/entity/includes/entity.wrapper.inc) – Malik Oct 8 '15 at 14:18
  • That's what I suspected as well. Go to that file and line number, and add this before it throws the new exception: dpm(debug_backtrace()); (be sure to have the Devel module enabled). That will reveal to you what file and line of code is the problem maker (it prints out an array, and usually index 2 contains the file and line number. – tyler.frankenstein Oct 8 '15 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.