HCL Commerce Enterprise

Creating messages for procurement integration message keys

Procurement integration provides the infrastructure for sending error messages back to the procurement system when authorization has failed or a request cannot be completed due to other error conditions. The actual error messages sent back to the procurement system need to be customized, and the property file containing these messages is not provided by HCL Commerce.

About this task

To create messages for procurement integration message keys:

Procedure

  1. Create a property file named
    
    ecProcurementMessages_locale.properties
    
  2. Add messages for the following keys for each language locale that needs to be supported. The following message keys for procurement integration error messages have been defined:
    
    _ERR_PROCUREMENT_BUYER_CREDENTIAL_NOT_FOUND=Specified buyer credentials
    not found.
    _ERR_PROCUREMENT_INVALID_BUYER_CREDENTIAL=Invalid
    buyer credentials. Authentication failed.
     
    _ERR_PROCUREMENT_INVALID_CREDENTIAL=Invalid
    buyer or supplier credentials.
     
    _ERR_PROCUREMENT_INVALID_PROTOCOL=The
    specified procurement protocol name and version are invalid.
     
    _ERR_PROCUREMENT_INVALID_REQUISITIONER_ID=<varname>RequisitionerId</varname> parameter
    is missing or invalid.
     
    _ERR_PROCUREMENT_INVALID_SUPPLIER_CREDENTIAL=Invalid
    supplier credentials. Authentication failed.
     
    _ERR_PROCUREMENT_INVALID_SUPPLIER_COOKIE=Invalid
    supplier cookie.
     
    _ERR_PROCUREMENT_RESP_CATENTRY_NOT_FOUND=catalog
    entry not found.
     
    _ERR_PROCUREMENT_RESP_DUPLICATE_ORDER=duplicate
    order.
     
    _ERR_PROCUREMENT_RESP_INVALID_BUYER_CRED=invalid credential.
     
    _ERR_PROCUREMENT_RESP_INVALID_MESSAGE_ID=invalid
    message id.
     
    _ERR_PROCUREMENT_RESP_INVALID_SUPPLIER_CRED=invalid
    credential.
     
    _ERR_PROCUREMENT_RESP_INVALID_SUPPLIER_UID=invalid
    credential.
     
    _ERR_PROCUREMENT_RESP_ORDER_CREATE_FAILED=Could
    not create the order.
     
    _ERR_PROCUREMENT_RESP_ORDER_PREPARE_FAILED=order
    prepare failed.
     
    _ERR_PROCUREMENT_RESP_ORDER_PROCESS_FAILED=order
    process failed.
     
    _ERR_PROCUREMENT_RESP_ORDERITEM_CREATE_FAILED=Could
    not create the order item.
     
    _ERR_PROCUREMENT_RESP_REGISTER_REQUISITIONER_FAILED=Unexpected
    error when registering requisitioning user.
     
    _ERR_PROCUREMENT_RESP_UNKNOWN_ERROR_CODE=unknown
    error occurred.
     
    _ERR_PROCUREMENT_SUPPLIER_CREDENTIAL_NOT_FOUND=Specified
    supplier credentials not found.
     
    _ERR_PROCUREMENT_UPDATING_COMMAND_CONTEXT=Failed
    updating user ID in session context.