Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
76 stars 81 forks source link

Some connections are lost when reloading a JSON to XML mapping #5915

Open ErikMogensen opened 1 week ago

ErikMogensen commented 1 week ago

Describe the Bug with repro steps

  1. Add the following files to the Schemas folder in a Logic apps project:

    -genericCustomer.json

    -Jeeves_Customer.xsd.json

  2. Remove the json extension from Jeeves_Customer.xsd.json
  3. Add map-genericCustomer-To-Jeeves-partial.lml.json to the MapDefinitions folder.
  4. Remove the json extension from map-genericCustomer-To-Jeeves-partial.lml.json
  5. Right-click map-genericCustomer-To-Jeeves-partial.lml and select Data Mapper | Data Mapper : Load existing data map
  6. On the destination schema, expand the DATA node and then the ADRESS_GE... node.
  7. On the source side, click Select element and then expand contactPoints.
  8. Perform the following mapping:
  9. Image
  10. Click Generate XSLT.
  11. Verify that the generated xslt file contains the following section:

    {[@key='address']/[@key='streetAddress']} {[@key='address']/[@key='province']} {[@key='address']/[@key='city']} {[@key='address']/[@key='postalCode']} {[@key='address']/[@key='country']}

  12. Click Save
  13. Close the map definition tab.
  14. Right-click map-genericCustomer-To-Jeeves-partial.lml and select Data Mapper | Data Mapper : Load existing data map
  15. On the destination schema, expand the DATA node and then the ADRESS_GE... node.
  16. Click Generate XSLT.
  17. Click Save.

The connections are now missing. Also, the generated XSLT does not contain the section for ADRESS_GENERELL and the lml file is missing that part too.

Screenshots or Videos

No response

Version

Additional context

This probably may be related to https://github.com/Azure/LogicAppsUX/issues/2915 and https://github.com/Azure/LogicAppsUX/issues/4939.

DanielleCogs commented 5 days ago

We are working to get this issue fixed in v2 of the mapper, which will be in public preview soon