Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAL1032 error building package for OnPrem customized base app #769
Comments
This comment has been minimized.
This comment has been minimized.
would you add a sample project or some code snippet that clearly repro the issue. It will help us to prioritise and address the issue faster. /Pooya |
This comment has been minimized.
This comment has been minimized.
This error usually occurs whenever you rename your app, with translation files already existing for the old app name, since you may have only one translation file per language.
So when it happens again, it' worth checking the translation file names. |
This comment has been minimized.
This comment has been minimized.
I did not rename anything, the translation files come right out of the container.
New container, export the AL project folder, uninstall/unpublish the Base App and its dependencies, then building the package causes the error. The actual error message about the translation files only happens the first time on a fresh container. I've had it where it successfully builds the app file but it will not publish to the container. Then when I remove the translation files it works again. |
This comment has been minimized.
This comment has been minimized.
I did not say that it was you who renamed anything ;-) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I should have been clearer in my initial reply.
Anyway, I'm glad it helped you. |
This comment has been minimized.
This comment has been minimized.
The important part is eventually I understood what you meant. Thank you for your help, I would not have tried that. I wrote a follow up here. |
This comment has been minimized.
This comment has been minimized.
I've answered to your blog article, but I fear my browser did not pass it for whatever reason. To be sure, I enter it here again:
And I have encountered it exactly there, while programming an AppSource app for BC15 ;-) |
This comment has been minimized.
This comment has been minimized.
Yes I think it must have changed recently, |
This comment has been minimized.
This comment has been minimized.
The bane of the issue is that there are two translation files with the same target-language and the compiler can't recognize that one of them is the generated file. When the feature flag TranslationFiles is enabled that will make the compiler generate a template translation file .g.xlf and read all the translation files in the translations folder. As you have discovered the generated translation file has the wrong filename. |
This comment has been minimized.
This comment has been minimized.
I don't know if that's accurate because once I rename the files to match the name in app.json, I no longer get the error message and the build succeeds and the app publishes. Seems to me like it is displaying the wrong message. By the way, it only shows the message when I build the package. When I hit F5 or Ctrl+F5 it does not write the message to the output/debug window, it just says 'could not publish' with the button to open launch.json |
This comment has been minimized.
This comment has been minimized.
I am closing this issue because it appears that it has been resolved. Please open a new issue if you believe this has not been resolved and reference the current issue. |
This comment has been minimized.
This comment has been minimized.
The reason for this problem is, that Extract-AppFileToFolder didn't unescape the filename. Note that you can use -usebaseline, which causes the create-alproject function to grab the baseline of the baseapp and not download and extract the app (and this the problem wouldn't be there). |
This comment has been minimized.
This comment has been minimized.
I had seen the -usebaseline switch but did not see that it also creates the AL folder. I'll look for it because that's probably the best option anyway. Still leaves the faulty error message :) but that's not yours to fix. Thanks for the follow up! |
This comment has been minimized.
This comment has been minimized.
Fixed in 0.6.4.21 |
Describe the bug

Building the package for modified base app results in an error message:
To Reproduce
It's actually difficult to reproduce. I get the error just once, only for a brand new container. It only seems to show the error message when I delete any existing packages. The next time I build the package it does not specify the error in the output window, but it does fail.
Expected behavior
I'd expect to be able to build the package with the AL project folder that is exported from the container. When I remove all translations files, it does compile.
5. Versions: