scottdurow / SparkleXrm

An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
MIT License
264 stars 194 forks source link

The pack and import command is failing when i add power FX buttons in Model driven #444

Open sekadiv opened 2 years ago

sekadiv commented 2 years ago

The pack and import command is failing when i add power FX buttons in Model driven. Please try i searched log but this issue is not logging in log but nothing is happening if i have power fx buttons in the App.

scottdurow commented 2 years ago

which version of spkl are you using? Can you check that you have version >=1.0.640

When you unpack a solution with Power Fx buttons - you should see a folder called CanvasApps that contains the command library. You can unpack that msapp using the pac canvas unpack command if you want.

sekadiv commented 2 years ago

Hi Scottdurow/Sparklexrm

Yes when I unpack it has canvas app folder but when I pack then it’s not doing it and not much in error log .

On Mon, 4 Oct 2021 at 11:25 PM, Scott Durow @.***> wrote:

which version of spkl are you using? Can you check that you have version

=1.0.640

When you unpack a solution with Power Fx buttons - you should see a folder called CanvasApps that contains the command library. You can unpack that msapp using the pac canvas unpack command if you want.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottdurow/SparkleXrm/issues/444#issuecomment-933718134, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR7PRJJ2LSBPYQQ52HBXR3UFHTB5ANCNFSM5FHPBDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

scottdurow commented 2 years ago

Which version of Microsoft.CrmSdk.CoreTools do you have installed?

sekadiv commented 2 years ago

yes i have latest one 9.1.0.90 this is what i have but still pack is not working with power fx buttons solutions

sekadiv commented 2 years ago

unpacking is working fine but when i try to pack it then the issue is coming

scottdurow commented 2 years ago

Which step do you think it is failing at - pack or import - can you change the spkl command to just pack? "%spkl_path%" pack "%cd%\.." "" %*

Could you post what you see at the command line?

sekadiv commented 2 years ago

Yes I changed to pack in the batch file it’s failing while packing in the command line but no details of error in the log .

On Wed, 6 Oct 2021 at 10:56 PM, Scott Durow @.***> wrote:

Which step do you think it is failing at - pack or import - can you change the spkl command to just pack? "%spkl_path%" pack "%cd%.." "" %*

Could you post what you see at the command line?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottdurow/SparkleXrm/issues/444#issuecomment-936741167, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR7PRJH64IIDL3IDVJUSQ3UFSBDPANCNFSM5FHPBDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

scottdurow commented 2 years ago

I have solutions packing and importing Commanding V2 buttons - it sounds like there is something in your solution that is causing SolutionPackager to error out.

Can you try using SolutionPackager directly and see if you get any more info that way - https://docs.microsoft.com/en-us/power-platform/alm/solution-packager-tool

sekadiv commented 2 years ago

I have more than one Command buttons and it’s creating .msapp file for each I think that could be issue while packing .

On Wed, 6 Oct 2021 at 11:28 PM, Scott Durow @.***> wrote:

I have solutions packing and importing Commanding V2 buttons - it sounds like there is something in your solution that is causing SolutionPackager to error out.

Can you try using SolutionPackager directly and see if you get any more info that way - https://docs.microsoft.com/en-us/power-platform/alm/solution-packager-tool

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scottdurow/SparkleXrm/issues/444#issuecomment-936799815, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR7PROHMXJACLLMMHFFCATUFSE3XANCNFSM5FHPBDKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

scottdurow commented 2 years ago

That doesn't seem right. I get a single component library per model-driven app with multiple components inside.