Jsom unknown error

sp13test 281 Reputation points


{ "SchemaVersion":"","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,597 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,566 Reputation points

    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());   

    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