Skip to content

Issue with managed EDIFACT connector #1303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
flacidsnake opened this issue Feb 24, 2025 · 3 comments
Open

Issue with managed EDIFACT connector #1303

flacidsnake opened this issue Feb 24, 2025 · 3 comments
Labels

Comments

@flacidsnake
Copy link

flacidsnake commented Feb 24, 2025

Describe the Bug with repro steps

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.

The action "Encode to EDIFACT message by agreement name (V2) (Preview)" worked without problems, and segment UNH2.5 was recognized.

Problem is that every time I use the action “Decode EDIFACT message” it returns error "70: The message has an unknown document type and did not resolve to any of the existing schemas configured in the agreement."

It seems there’s an error in the Agreement and Schema resolution logic for this decoding action of the managed EDIFACT connector. Also tried to decode an EDIFACT without segment UNH2.5 and the issue persists.

Please, see attached XSD schema, JSON agreement and minimal EDI sample (which was encoded via Azure Logic App using "Encode to EDIFACT message by agreement name (V2) (Preview)" with the attached schema and agreement).

Steps to reproduce:

  1. Create an integration account
  2. Setup partners in integration account
  3. Upload schema in integration account
  4. Setup agreement in integration account
  5. Create a Consumption Logic App
  6. Setup trigger "When a HTTP request is received"
  7. Add action "Decode EDIFACT message"
  8. Set the body of HTTP trigger as the EDIFACT flat file message to decode
  9. Check error "70: The message has an unknown document type and did not resolve to any of the existing schemas configured in the agreement." in the "Bad Messages" section of the response

Issue was also reported here

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http",
                "inputs": {
                    "method": "POST"
                }
            }
        },
        "actions": {
            "Decode_EDIFACT_message": {
                "runAfter": {},
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['edifact']['connectionId']"
                        }
                    },
                    "method": "post",
                    "body": "@triggerBody()",
                    "path": "/decode",
                    "queries": {
                        "componentSeparator": 58,
                        "dataElementSeparator": 43,
                        "releaseIndicator": 63,
                        "repetitionSeparator": -1,
                        "replacementCharacter": -1,
                        "segmentTerminator": 39,
                        "segmentTerminatorSuffix": "None",
                        "decimalIndicator": "Decimal",
                        "payloadCharacterSet": "UTF8"
                    }
                }
            }
        },
        "outputs": {},
        "parameters": {
            "$connections": {
                "type": "Object",
                "defaultValue": {}
            }
        }
    },
    "parameters": {
        "$connections": {
            "value": {
                "edifact": {
                    "id": "/subscriptions/{removed}/providers/Microsoft.Web/locations/northeurope/managedApis/edifact",
                    "connectionId": "/subscriptions/{removed}/resourceGroups/Test/providers/Microsoft.Web/connections/edifact",
                    "connectionName": "edifact"
                }
            }
        }
    }
}

Screenshots or Videos

No response

Browser

Chrome

Additional context

attachments.zip

@rllyy97
Copy link

rllyy97 commented Feb 25, 2025

Hi @flacidsnake, thanks for reporting your issue, however this doesn't appear to be an issue with the LA designer itself. Rather this seems like it's something with the backend / connector. I'm going to transfer this over to our backend repo, but I would highly recommend opening an Azure support ticket as well so the proper team can help address the issue: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

@rllyy97 rllyy97 transferred this issue from Azure/LogicAppsUX Feb 25, 2025
@flacidsnake
Copy link
Author

Thanks @rllyy97 Could you please share the link of this issue in the backend repo?

Copy link

This issue is stale because it has been open for 45 days with no activity.

@github-actions github-actions bot added the stale label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants