Skip to content
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

Command library canvas app (.msapp) filename is different for every solution export #386

Open
filcole opened this issue Dec 17, 2022 · 9 comments
Assignees

Comments

@filcole
Copy link

filcole commented Dec 17, 2022

When exporting a solution containing a command library canvas app the app name is different on each export. This creates noisy diffs and bloats source control.

To reproduce:

  1. Publish all via pac solution publish --async
  2. Export solution with pac solution export --name $soln --path $zipfname --async
  3. Unpack solution `pac solution unpack --zipfile "$zipfname" --folder "$solutionfolder" --packagetype $packageType --errorlevel Warning --allowDelete true --processCanvasApps
  4. Repeat steps 2 and 3

Note it does not matter if Unmanaged or Both packageTypes, or if --processCanvasApps is omitted (and a later pac canvas unpack is used)

image

Support Request: I've logged as support request 2212170050000218 for our client scenario.

Example demo solutions containing a single app, table and command bar button attached.
Solutions.zip

@filcole
Copy link
Author

filcole commented Dec 17, 2022

There's a temporary fix/hack/workaround here: https://github.com/filcole/SolutionFixComponentLibraryFilename that sets the filenames consistently based on the id in filename of the *.meta.xml file.

Note this does not occur for traditional canvas apps, or custom pages, or component libraries created directly within a solutino in the maker portal. It only occurs for component libraries created automatically when adding the first command bar PowerFx function to an app.

@filcole
Copy link
Author

filcole commented Dec 19, 2022

Discovered this only happens when the command library logical name is too long. I tried to rename the component library, e.g.
image
but this does not work, since the logicalname is used.
image

@kkanakas
Copy link

@filcole, appreciate raising the issue, @davidjenni and @paulbreuler can we confirm this is indeed the issue that Phil has raised.

@paulbreuler paulbreuler self-assigned this Feb 14, 2023
@paulbreuler
Copy link

I am able to reproduce this behavior and will start investigating.

@petrochuk
Copy link
Contributor

@filcole are you still seeing this issue?

@filcole
Copy link
Author

filcole commented May 9, 2023

Hi @petrochuk, Yes. I'm still seeing this. Can be reproduced by unpacking the solution attached to this github issue (see initial description). The temporary workaround here: https://github.com/filcole/SolutionFixComponentLibraryFilename is still fixing the issue for me.

@petrochuk
Copy link
Contributor

I can repo it too but this is not PAC CLI issue. This is Dataverse solution export issue.

@filcole
Copy link
Author

filcole commented Oct 4, 2023

Hi @petrochuk, I spoke with MS support yesterday. This issue has been accepted by the product team and a fix will be created (no timeline). SR 2212170050000218

@petrochuk
Copy link
Contributor

Speaking of msapp files. We are adding

pac canvas

download    Download canvas app as .msapp file
list        List canvas apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants