Menu
mediumPayNet · text

Extract the failure reason from a DuitNow error message

PayNet logs every failed DuitNow transfer with an error_message like DN102: insufficient funds. For each failed transaction, extract just the reason text after the colon, trimmed of its leading space.

Return id, error_message, and failure_reason.

Schema

transactions
idINT
statusTEXT
error_messageTEXT

Example input

transactions
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.