Issue when adding message with payment type

Hi Ardor developer:
We have experience issue when broadcasting payment type transaction on Ardor chain with message (it works without message)

Following is our transaction definition which follows the document
```

/// Documentation here: How Tx Processing Works

#[derive(Debug, Clone)]

pub struct ArdrTransaction {

pub chain: ArdrChain,

pub _type: ArdrTransactionType,

pub subtype: ArdrTransactionSubType,

pub tx_version: ArdrTransactionVersion,

pub timestamp: u32,

pub deadline: u16,

pub sender_public_key: [u8; 32],

pub recipient: u64,

pub amount_nqt: u64,

pub fee_nqt: u64,

pub signature: Signature,

pub ec_block_height: u32,

pub ec_block_id: u64,

pub appendages: ArdrAppendage,

}

pub struct ArdorAppendage {
flags: u32,
message: Option,
}

/// We will set flags to 1 if there are message)
```

The transfer can work correctly if no message attached, however when there are message, we got this error while broadcasting the transaction
nxt.NxtException$NotValidException: Appendix not allowed on Fxt chain

Could you help to explain a bit why we getting this error message, and how it is expected to send message along with transfer transaction?
Thanks!

UPDATE:

We’ve tried getting unsigned transaction bytes with prunable messages, however we are still getting the error nxt.NxtException$NotValidException: Appendix not allowed on Fxt chain,

May I confirm that does this prunable message works on parent chain? Or it only works on child chain like Ignis?
Thanks!

Hi, the PrunablePlainMessageAppendix and the PrunableEncryptedMessageAppendix are allowed on ARDR chain. They are with types 0x08 and 0x10 respectively. Type 0x01 is the non-prunable message which is not allowed and as a result you get that error.

Here are example bytes of a valid transaction with PrunablePlainMessageAppendix. I added new lines for clarity:

01000000
fe
00
01
5313250f
0f00
0507916d19b81d9f714c4f9eaf7ad4742b013c106c34cb9d2fb663d5e101df75
51006816b7a4961e
00e1f50500000000
00e1f50500000000
80276b1b28b4c51114026a3d5b9dc6b88d1c84400b436627668df9542386b902
96237dc9693f43bafaf8f527a323fec7c5814b3dff788dfe1b6e9d633574d3fc
b0e20701
636027880096487c
08000000 //flags
01 //version
00 //flags
938725ef2c126a889e25313269edf12e6efa48d6d11c1bdb3b78110146004858

Thanks a lot! Let me try to change the message type