Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview


This structure contains represents the error details results of a failed cost card insert or save. or update. Multiple cost cards can be submitted for insert or update in a single request to PwsSaveExpenseDocument or PwsSaveExpenseDocumentCostCard. These operations can partially succeed, meaning some cards were successfully saved while others triggered errors and could not be saved. The web service will report back details about each cost card, whether it succeeded or failed, by returning a collection of these structures. For failed cards, ErrorDetail will provide more details about the nature of the failure.

Format


Panel
titlePwsSaveCostCardResult

Elements


Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding the failed cost card insert or save

 


ReferenceId

String

Reference id (used to

affiliate PwsSaveCostCardResult records

affiliate PwsSaveCostCardResult records with associated PwsCostCardDetail records).

 
123

Usage Example(s)


Code Block
languagexml
titleExample 01
collapsetrue
               <a:PwsSaveCostCardResult>
                  <a:ErrorDetail xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ErrorCode>ExpenseTypeNotFound</b:ErrorCode>
                     <b:ErrorNumber>59912</b:ErrorNumber>
                     <b:ErrorText>Expense type not found.</b:ErrorText>
                  </a:ErrorDetail>
                  <a:ReferenceId>123</a:ReferenceId>
               </a:PwsSaveCostCardResult>