Altinn / altinn2-convert

Command line tool for converting Altinn 2 reporting services into Altinn 3 apps.
MIT License
2 stars 4 forks source link

Trouble converting components for the formlayout files. #31

Open andreas-didriksen opened 1 year ago

andreas-didriksen commented 1 year ago

Description of the bug

When converting one specific form from Altinn 2 -> Altinn3.0 the radio buttons, headers, paragraph and input field were not converted in the new A 3.0 formLayout files. All the pages were included in the converted a3.0 app but the only component that was converted is the navigation button.

The form that was converted is "Bruk av IKT i næringslivet (RA-0419)" from [Statistics Norway (SSB). I do not experience this when converting other forms for example Brreg form Årsregnskap (RR-0002). So this issue may indicate that the A2 form is built in a way so the converter cannot get the components from the TULPACKAGE.

Image from Altinn 2 form. image

Result of the converted page. image

Steps To Reproduce

  1. Convert the TULPACKAGE for ra-0419 to reproduce this issue. TULPACKAGE.zip

Additional Information

No response

NathalieFroissart commented 1 year ago

Have tried it and getting the same error as you @andreas-didriksen.

ivarne commented 1 year ago

This looks like very expected type of bugs that we'll likely find lots of in different apps. I did not have access to SSB packages while developing this, and InfoPath has great freedom in how to structure the layout, so misses like this is expected.

I currently work on the Apps team, so I'd probably need some sort of permission from the team @RonnyB71 to spend significant time on fixing these kind of issues in other parts of the stack. If someone wants a walkthrough of the code in order to try to fix issues like this, I'm happy to do that.