Azure Logic App "Decode EDIFACT" not working
Hi,
I have an EDI document which contains the UNH2.5 segment. I uploaded an individual schema (attached as XML file) and configured the agreement's send/receive settings as per documentation in https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-edifact?tabs=consumption#handle-unh25-segments-in-edifact-documents
I could use the "Encode EDIFACT" without problems. But every time I try to decode I get the error "70: The message has an unknown document type and did not resolve to any of the existing schemas configured in the agreement."
Any ideas of what's wrong? I attached a minimal EDI sample (encoded via Logic App using the attached schema).
Here's the agreement in JSON format:
{
"properties": {
"hostPartner": "SENDER",
"guestPartner": "RECEIVER",
"hostIdentity": {
"qualifier": "ZZZ",
"value": "SENDER"
},
"guestIdentity": {
"qualifier": "ZZZ",
"value": "RECEIVER"
},
"agreementType": "EDIFACT",
"content": {
"edifact": {
"receiveAgreement": {
"protocolSettings": {
"validationSettings": {
"validateCharacterSet": true,
"checkDuplicateInterchangeControlNumber": false,
"interchangeControlNumberValidityDays": 30,
"checkDuplicateGroupControlNumber": false,
"checkDuplicateTransactionSetControlNumber": false,
"validateEDITypes": true,
"validateXSDTypes": false,
"trimLeadingAndTrailingSpacesAndZeroes": false,
"allowLeadingAndTrailingSpacesAndZeroes": false,
"trailingSeparatorPolicy": "Optional"
},
"framingSettings": {
"protocolVersion": 3,
"dataElementSeparator": 43,
"componentSeparator": 58,
"segmentTerminator": 39,
"releaseIndicator": 63,
"repetitionSeparator": 32,
"characterSet": "UNOC",
"decimalPointIndicator": "Decimal",
"segmentTerminatorSuffix": "None"
},
"envelopeSettings": {
"applyDelimiterStringAdvice": true,
"createGroupingSegments": false,
"enableDefaultGroupHeaders": true,
"interchangeControlNumberLowerBound": 1,
"interchangeControlNumberUpperBound": 999999999,
"rolloverInterchangeControlNumber": true,
"groupControlNumberLowerBound": 1,
"groupControlNumberUpperBound": 999999999,
"rolloverGroupControlNumber": true,
"overwriteExistingTransactionSetControlNumber": true,
"transactionSetControlNumberLowerBound": 1,
"transactionSetControlNumberUpperBound": 999999999,
"rolloverTransactionSetControlNumber": true,
"isTestInterchange": false,
"businessIdentityQualifierPaddingType": "None"
},
"acknowledgementSettings": {
"needTechnicalAcknowledgement": false,
"batchTechnicalAcknowledgements": true,
"needFunctionalAcknowledgement": false,
"batchFunctionalAcknowledgements": true,
"needLoopForValidMessages": false,
"sendSynchronousAcknowledgement": true,
"acknowledgementControlNumberLowerBound": 1,
"acknowledgementControlNumberUpperBound": 999999999,
"rolloverAcknowledgementControlNumber": true
},
"messageFilter": {
"messageFilterType": "Exclude"
},
"processingSettings": {
"maskSecurityInfo": true,
"preserveInterchange": false,
"suspendInterchangeOnError": false,
"createEmptyXmlTagsForTrailingSeparators": false,
"useDotAsDecimalSeparator": true
},
"envelopeOverrides": [],
"messageFilterList": [],
"schemaReferences": [
{
"messageId": "IFTMCS",
"messageVersion": "D",
"messageRelease": "00B",
"senderApplicationId": "",
"senderApplicationQualifier": "",
"associationAssignedCode": "AKS210",
"schemaName": "EFACT_D00B_IFTMCS_AKS210"
}
],
"validationOverrides": [
{
"messageId": "IFTMCS",
"enforceCharacterSet": true,
"validateEDITypes": false,
"validateXSDTypes": false,
"allowLeadingAndTrailingSpacesAndZeroes": false,
"trailingSeparatorPolicy": "Optional",
"trimLeadingAndTrailingSpacesAndZeroes": false
}
],
"edifactDelimiterOverrides": []
},
"senderBusinessIdentity": {
"qualifier": "ZZZ",
"value": "RECEIVER"
},
"receiverBusinessIdentity": {
"qualifier": "ZZZ",
"value": "SENDER"
},
"trackingState": "Enabled"
},
"sendAgreement": {
"protocolSettings": {
"validationSettings": {
"validateCharacterSet": true,
"checkDuplicateInterchangeControlNumber": false,
"interchangeControlNumberValidityDays": 30,
"checkDuplicateGroupControlNumber": false,
"checkDuplicateTransactionSetControlNumber": false,
"validateEDITypes": true,
"validateXSDTypes": false,
"trimLeadingAndTrailingSpacesAndZeroes": false,
"allowLeadingAndTrailingSpacesAndZeroes": false,
"trailingSeparatorPolicy": "NotAllowed"
},
"framingSettings": {
"serviceCodeListDirectoryVersion": "",
"characterEncoding": "",
"protocolVersion": 3,
"dataElementSeparator": 43,
"componentSeparator": 58,
"segmentTerminator": 39,
"releaseIndicator": 63,
"repetitionSeparator": 32,
"characterSet": "UNOC",
"decimalPointIndicator": "Decimal",
"segmentTerminatorSuffix": "None"
},
"envelopeSettings": {
"applyDelimiterStringAdvice": true,
"createGroupingSegments": false,
"enableDefaultGroupHeaders": true,
"interchangeControlNumberLowerBound": 1,
"interchangeControlNumberUpperBound": 999999999,
"rolloverInterchangeControlNumber": true,
"groupControlNumberLowerBound": 1,
"groupControlNumberUpperBound": 999999999,
"rolloverGroupControlNumber": true,
"overwriteExistingTransactionSetControlNumber": true,
"transactionSetControlNumberLowerBound": 1,
"transactionSetControlNumberUpperBound": 999999999,
"rolloverTransactionSetControlNumber": true,
"isTestInterchange": false,
"senderInternalIdentification": "",
"senderInternalSubIdentification": "",
"receiverInternalIdentification": "",
"receiverInternalSubIdentification": "",
"businessIdentityQualifierPaddingType": "None"
},
"acknowledgementSettings": {
"needTechnicalAcknowledgement": false,
"batchTechnicalAcknowledgements": true,
"needFunctionalAcknowledgement": false,
"batchFunctionalAcknowledgements": true,
"needLoopForValidMessages": false,
"sendSynchronousAcknowledgement": true,
"acknowledgementControlNumberLowerBound": 1,
"acknowledgementControlNumberUpperBound": 999999999,
"rolloverAcknowledgementControlNumber": true
},
"messageFilter": {
"messageFilterType": "Exclude"
},
"processingSettings": {
"maskSecurityInfo": true,
"preserveInterchange": false,
"suspendInterchangeOnError": false,
"createEmptyXmlTagsForTrailingSeparators": false,
"useDotAsDecimalSeparator": true
},
"envelopeOverrides": [],
"messageFilterList": [],
"schemaReferences": [
{
"messageId": "IFTMCS",
"messageVersion": "D",
"messageRelease": "00B",
"senderApplicationId": "",
"senderApplicationQualifier": "",
"associationAssignedCode": "AKS210",
"schemaName": "EFACT_D00B_IFTMCS_AKS210"
}
],
"validationOverrides": [
{
"messageId": "IFTMCS",
"enforceCharacterSet": true,
"validateEDITypes": false,
"validateXSDTypes": false,
"allowLeadingAndTrailingSpacesAndZeroes": false,
"trailingSeparatorPolicy": "Optional",
"trimLeadingAndTrailingSpacesAndZeroes": false
}
],
"edifactDelimiterOverrides": [
{
"messageId": "IFTMCS",
"messageVersion": "D",
"messageRelease": "00B",
"dataElementSeparator": 43,
"componentSeparator": 58,
"segmentTerminator": 39,
"repetitionSeparator": 32,
"segmentTerminatorSuffix": "None",
"decimalPointIndicator": "Decimal",
"releaseIndicator": 63,
"messageAssociationAssignedCode": "AKS210",
"targetNamespace": "http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006"
}
]
},
"senderBusinessIdentity": {
"qualifier": "ZZZ",
"value": "SENDER"
},
"receiverBusinessIdentity": {
"qualifier": "ZZZ",
"value": "RECEIVER"
},
"trackingState": "Enabled"
}
}
},
"createdTime": "2024-11-11T11:15:26.0079643Z",
"changedTime": "2024-11-11T14:16:18.9707399Z"
},
"id": "/subscriptions/{removed}/resourceGroups/myResource/providers/Microsoft.Logic/integrationAccounts/testIntegrationAccount/agreements/testAgreement",
"name": "testAgreement",
"type": "Microsoft.Logic/integrationAccounts/agreements"
}
Thanks in advance!