What is the meaning of these CSOM error code? -2130575223 and -2130239098

Yuvraj Patil 361 Reputation points
2022-09-23T10:12:56.24+00:00

Hello,

I am working on a application where I am editing some files usin CSOM, when I try to update masterpage catalog files from Publishing portal site, getting error with below codes and I have decided to suppress the error if error code are these below. Would like to know what these error code means and Is there any documents for SharePoint CSOM error codes?
and is there any property using which I can skip these files which will give such errors before even starting editing.

File: /_catalogs/masterpage/Display Templates/System/Item_CatalogTitle.js
Message: This file is currently associated to an HTML file of the same name and is drawing content from it. Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file.
Error Code: -2130575223
Error Trace Correlation ID: fe7b13f3-f9e0-4394-b82a-60e089dee7a1
Error Type Name: Microsoft.SharePoint.SPException

File: /_catalogs/masterpage/Display Templates/System/Control_QueryBuilderRefinement.js
Message: This file is currently associated to an HTML file of the same name and is drawing content from it. Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file.
Error Code: -2130239098
Error Trace Correlation ID: a04d36de-d959-4ab1-9e56-fc282dae6c3c
Error Type Name: Microsoft.SharePoint.SPException

Thanks in advance!

@RaytheonXie_MSFT

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,907 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,731 questions
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,582 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 32,246 Reputation points Microsoft Vendor
    2022-09-26T07:59:29.053+00:00

    Hi @Yuvraj Patil
    Per your description, I will recommend you to check if you have enabled custom Master Pages and Page layouts.
    going to Site Settings -> Site Collection Administration -> SharePoint Designer Settings
    244685-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.



0 additional answers

Sort by: Most helpful