You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the following code with ballerina 2201.10.3 and 2201.10.1
`import ballerina/io;
import ballerinax/financial.swiftmtToIso20022 as mtToMx;
public function main() returns error? {
string finMessage = string {1:F01CHASUS33AXXX0000000000} {2:I900CRESCHZZXXXXN} {4: :20:C11126A1378 :21:5482ABC :25:9-9876543 :32A:090123USD233530, -};
io:println(mtToMx:toIso20022Xml(finMessage));
}`
and receive this error:
ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(86:35,91:26)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(86:35,91:26)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(87:29,87:73)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payment_initiation:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(88:85,88:140)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(28:126,102:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(173:29,178:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(173:29,178:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(174:17,174:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(175:63,175:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(203:23,208:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(203:23,208:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(204:17,204:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(205:73,205:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(291:119,369:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(442:29,447:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(442:29,447:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(443:17,443:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(444:63,444:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(472:23,477:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(472:23,477:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(473:17,473:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(474:73,474:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(28:130,324:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(334:126,595:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(605:120,893:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(29:120,63:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs003Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(151:17,151:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(152:63,152:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(157:17,157:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(158:73,158:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(439:31,444:22)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(439:31,444:22)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(440:25,440:69)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payment_initiation:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(441:81,441:136)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(28:120,62:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs003Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(151:17,151:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(152:63,152:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(157:17,157:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(158:73,158:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt200_to_iso20022.bal:(27:120,142:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt200_to_iso20022.bal:(149:120,172:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt050Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(90:29,95:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(90:29,95:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(91:17,91:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(92:63,92:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(25:118,236:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(387:25,392:10)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(387:25,392:10)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(388:13,388:47)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(389:59,389:103)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(535:23,540:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(535:23,540:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(536:17,536:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(537:73,537:138)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(167:29,172:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(167:29,172:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(168:17,168:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(169:63,169:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(112:29,117:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(112:29,117:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(113:17,113:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(114:63,114:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(25:120,210:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(335:25,340:10)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(335:25,340:10)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(336:13,336:47)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(337:59,337:103)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(483:23,488:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(483:23,488:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(484:17,484:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(485:73,485:138)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt210_to_iso20022.bal:(24:120,117:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt057Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt900_to_iso20022.bal:(26:120,100:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt054Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt910_to_iso20022.bal:(25:118,148:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt054Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt971_to_iso20022.bal:(25:120,65:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt052Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(557:18,562:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(557:18,562:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(558:17,558:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(559:73,559:115)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(576:18,581:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(576:18,581:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(577:17,577:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(578:73,578:115)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1338:20,1357:14)] incompatible types: expected '(ballerinax/financial.iso20022.cash_management:1.1.0:Limit2[]|error)?', found '[record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; ballerinax/financial.iso20022.cash_management:1.1.0:FloorLimitType1Code CdtDbtInd; |},record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; ballerinax/financial.iso20022.cash_management:1.1.0:FloorLimitType1Code CdtDbtInd; |}]' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1359:16,1369:10)] incompatible types: expected '(ballerinax/financial.iso20022.cash_management:1.1.0:Limit2[]|error)?', found '[record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; string CdtDbtInd; |}]' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1406:22,1411:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1406:22,1411:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1407:21,1407:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1408:77,1408:117)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1459:18,1464:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1459:18,1464:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1460:17,1460:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1461:73,1461:121)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1477:22,1482:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1477:22,1482:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1478:21,1478:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1479:77,1479:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1495:18,1500:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1495:18,1500:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1496:17,1496:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1497:73,1497:122)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1513:22,1518:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1513:22,1518:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1514:21,1514:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1515:77,1515:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1532:22,1537:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1532:22,1537:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1533:21,1533:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1534:77,1534:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1551:22,1556:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1551:22,1556:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1552:21,1552:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1553:77,1553:119)] incompatible types: expected '(other|error)', found '(decimal|error)' error: compilation contains errors
Steps to Reproduce
Just run the code
Version
2201.10.3
Environment Details (with versions)
macos sonoma 14.7.1
The text was updated successfully, but these errors were encountered:
Could you try rerunning after deleting the Dependencies.toml file? This could be due to a dependency discrepancy since there were some recent changes to the dependent libraries.
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Description
I tried the following code with ballerina 2201.10.3 and 2201.10.1
`import ballerina/io;
import ballerinax/financial.swiftmtToIso20022 as mtToMx;
public function main() returns error? {
string finMessage = string
{1:F01CHASUS33AXXX0000000000} {2:I900CRESCHZZXXXXN} {4: :20:C11126A1378 :21:5482ABC :25:9-9876543 :32A:090123USD233530, -}
;io:println(mtToMx:toIso20022Xml(finMessage));
}`
and receive this error:
ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(86:35,91:26)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(86:35,91:26)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(87:29,87:73)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payment_initiation:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt101_to_iso20022.bal:(88:85,88:140)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(28:126,102:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(173:29,178:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(173:29,178:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(174:17,174:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(175:63,175:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(203:23,208:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(203:23,208:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(204:17,204:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(205:73,205:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(291:119,369:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(442:29,447:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(442:29,447:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(443:17,443:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(444:63,444:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(472:23,477:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(472:23,477:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(473:17,473:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt102_to_iso20022.bal:(474:73,474:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(28:130,324:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(334:126,595:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt103_to_iso20022.bal:(605:120,893:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs008Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(29:120,63:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs003Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(151:17,151:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(152:63,152:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(157:17,157:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(158:73,158:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(439:31,444:22)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(439:31,444:22)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(440:25,440:69)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payment_initiation:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt104_to_iso20022.bal:(441:81,441:136)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(28:120,62:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs003Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(150:29,155:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(151:17,151:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(152:63,152:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(156:23,161:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(157:17,157:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt107_to_iso20022.bal:(158:73,158:128)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt200_to_iso20022.bal:(27:120,142:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt200_to_iso20022.bal:(149:120,172:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt050Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(90:29,95:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(90:29,95:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(91:17,91:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt201_to_iso20022.bal:(92:63,92:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(25:118,236:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(387:25,392:10)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(387:25,392:10)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(388:13,388:47)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(389:59,389:103)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(535:23,540:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(535:23,540:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(536:17,536:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt202_to_iso20022.bal:(537:73,537:138)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(167:29,172:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(167:29,172:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(168:17,168:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt203_to_iso20022.bal:(169:63,169:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(112:29,117:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(112:29,117:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(113:17,113:51)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt204_to_iso20022.bal:(114:63,114:111)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(25:120,210:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:Pacs009Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(335:25,340:10)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(335:25,340:10)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(336:13,336:47)] undefined field 'ActiveCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(337:59,337:103)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(483:23,488:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(483:23,488:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(484:17,484:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.payments_clearing_and_settlement:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt205_to_iso20022.bal:(485:73,485:138)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt210_to_iso20022.bal:(24:120,117:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt057Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt900_to_iso20022.bal:(26:120,100:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt054Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt910_to_iso20022.bal:(25:118,148:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt054Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::mt971_to_iso20022.bal:(25:120,65:2)] incompatible mapping constructor expression for type '(ballerinax/financial.iso20022.cash_management:1.1.0:Camt052Document|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(557:18,562:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(557:18,562:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(558:17,558:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(559:73,559:115)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(576:18,581:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(576:18,581:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(577:17,577:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(578:73,578:115)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1338:20,1357:14)] incompatible types: expected '(ballerinax/financial.iso20022.cash_management:1.1.0:Limit2[]|error)?', found '[record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; ballerinax/financial.iso20022.cash_management:1.1.0:FloorLimitType1Code CdtDbtInd; |},record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; ballerinax/financial.iso20022.cash_management:1.1.0:FloorLimitType1Code CdtDbtInd; |}]' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1359:16,1369:10)] incompatible types: expected '(ballerinax/financial.iso20022.cash_management:1.1.0:Limit2[]|error)?', found '[record {| record {| record {| decimal ActiveOrHistoricCurrencyAndAmount_SimpleType; string Ccy; |} ActiveOrHistoricCurrencyAndAmount_SimpleType; |} Amt; string CdtDbtInd; |}]' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1406:22,1411:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1406:22,1411:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1407:21,1407:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1408:77,1408:117)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1459:18,1464:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1459:18,1464:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1460:17,1460:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1461:73,1461:121)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1477:22,1482:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1477:22,1482:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1478:21,1478:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1479:77,1479:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1495:18,1500:14)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1495:18,1500:14)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1496:17,1496:61)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1497:73,1497:122)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1513:22,1518:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1513:22,1518:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1514:21,1514:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1515:77,1515:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1532:22,1537:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1532:22,1537:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1533:21,1533:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1534:77,1534:119)] incompatible types: expected '(other|error)', found '(decimal|error)' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1551:22,1556:18)] missing non-defaultable required record field 'Ccy' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1551:22,1556:18)] missing non-defaultable required record field 'content' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1552:21,1552:65)] undefined field 'ActiveOrHistoricCurrencyAndAmount_SimpleType' in record 'ballerinax/financial.iso20022.cash_management:1.1.0:ActiveOrHistoricCurrencyAndAmount' ERROR [ballerinax/financial.swiftmtToIso20022/0.9.0::utils.bal:(1553:77,1553:119)] incompatible types: expected '(other|error)', found '(decimal|error)' error: compilation contains errors
Steps to Reproduce
Just run the code
Version
2201.10.3
Environment Details (with versions)
macos sonoma 14.7.1
The text was updated successfully, but these errors were encountered: