Skip to main content

Posts

Showing posts from March, 2021

"The field or property 'State' does not exist."

 "The field or property 'State' does not exist." : Cause : This error will come from SharePoint (SP) REST API/endpoint if the State field is not available in required SharePoint list. Or Developer may be used wrong name of field (May be it is 'States' in SP list and developer used it as State. Solution:  1) If the field, State is 'States' in required SP list then Developer need to use it States instead of State.  2) If State/States field is not available in SP list then developer need to create State field in required SP list.

jQuery CDN

Following jQuery CDN you can use. The  jQuery CDN  is a way to include jQuery in your website without actually downloading and keeping it your website’s folder. There are a number of  jQuery CDNs  which you can use, examples –  Google ,  Microsoft ,  Cloudflare ,  jQuery own CDN  & more. https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js https://code.jquery.com/jquery-3.2.1.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js

"The property '[object Object]' does not exist on type 'SP.Data.StudentsListItem'. Make sure to only use property names that are defined by the type."

 Error: "The property '[object Object]' does not exist on type 'SP.Data.StudentsListItem'. Make sure to only use property names that are defined by the type." Cause: The above issue may come if we are trying to add/update the field name (like 'Student_x0020_Roll') but that field is not available in the Students SharePooint list. OR the field ('Student_x0020_Roll') is look up from some other list but we are tryng to updated as text field. ex. var data= { __metadata:{ type:'SP.Data.StudentsListItem' //ListItemEntityTypeFullName for list Student } 'Title':'Ramesh', 'Student_x0020_Roll':'102510', }; Solution: If required Field (like 'Student_x0020_Roll') is not available and required then we need to create it or if not required then we can removed  from saving (from data object). If the required Field (like 'Student_x0020_Roll') is lookup then we need to update it as we are updating for looku...