Jsom unknown error

sp13test 281 Reputation points
2021-03-15T06:27:00.047+00:00

77676-jsomcode.png

{ "SchemaVersion":"15.0.0.0","LibraryVersion":"16.0.21010.12006","ErrorInfo":{ "ErrorMessage":"Unknown Error","ErrorValue":null,"TraceCorrelationId":"71d0ad9f-b05d-b000-95bc-b4c0e452fdc8","ErrorCode":-1,"ErrorTypeName":"Microsoft.SharePoint.Client.UnknownError" } 1: /api/attachments/77618-jsomcode.png?platform=QnA

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,617 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2021-03-16T01:33:22.137+00:00

    Hi @sp13test ,

    If the CreateDate is a date column, try to modify as below:

                var oListItem = list.addItem(itemCreateInfo);  
                const timeElapsed = Date.now();  
                const today = new Date(timeElapsed);  
                oListItem.set_item('CreateDate', today);  
                oListItem.set_item('Title', Date.now().toString());   
                oListItem.update();  
    

    Thanks
    Best Regards


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.