Discussions

Ask a Question
Back to All

Read-only fields when updating via the Execute command

Hi! I would like to raise a question a question related to the ability to edit any entity when updating it using the Execute

In some cases, fields of a specific entity may not be editable, which may result in the following error:

ErrorInfo:

Number: 0

Description: {!{Internal Costs}!} are read-only and cannot be modified

Type: Corrigo.Core.CorrigoBORuleViolationException

The contents of ErrorInfo include information about the error number, description, and type. However, the number is always 0, and the type is not directly related to the given error related to the inability to edit. would like to know if there is a way to identify this error without relying on the description alone. I may be missing some details, so please help me figure this out.

For example, if I want to update the Items field on a WorkOrderCost entity, is there a way to determine in advance that the field is not editable before I attempt to update? Is there an additional API for this purpose, or a flag that can be used when retrieving the entity to indicate editing restrictions?

Thank you


  <soap:Body>
        <ExecuteResponse xmlns="http://corrigo.com/integration/">
            <ExecuteResult xsi:type="OperationCommandResponse">
                <ErrorInfo>
                    <Number>0</Number>
                    <Description>{!{Internal Costs}!} are read-only and cannot be modified</Description>
                    <Type>Corrigo.Core.CorrigoBORuleViolationException</Type>
                </ErrorInfo>
                
            </ExecuteResult>
        </ExecuteResponse>
    </soap:Body>