locked
SolutionPackager not handling Portable Business Logic RRS feed

  • Question

  • CRM Online 2013, using SDK 6.02 (17/12/2013)

    Have added a couple of Portable Business logic Business rules to a form.

    When I export the solution and unpack using SolutionPackager, there are .xaml and .xaml.data.xml files for each of the rules in the Workflows folder of the unpacked solution, confirming that they are present.

    However when I repack, Solution Packager throws a "Missing root component" error for each of the workflows:

    Following objects, required by the solution, are not present.

    Type='Workflow', Id (or schema name)='{a1bc418e-8f95-e311-b18a-d89d6763ff78}'.
    Type='Workflow', Id (or schema name)='{043b4374-8e95-e311-b18a-d89d6763ff78}'.
    Please do a dependency check on your solution prior to exporting, add the missing objects to your solution and re-export
    Error occurred during execution of plugin 'RootComponentValidation': RootComponent validation failed.

    On inspection of the unpacked other\solution.xml, there are no Root Component declarations for the two workflows.

    If I manually add the relevant lines to solution.xml:

     <RootComponent type="29" id="{a1bc418e-8f95-e311-b18a-d89d6763ff78}" />
     <RootComponent type="29" id="{043b4374-8e95-e311-b18a-d89d6763ff78}" />

    then the repack works perfectly.

    So why is solutionpackager not correctly extracting the solution.xml file?

    Friday, February 21, 2014 9:53 AM

Answers

  • Appears to be a defect in Solution Packager. You can vote for it to be resolved https://connect.microsoft.com/dynamicssuggestions/feedback/details/811665/solution-packager-does-not-package-solution-with-business-rules-included

    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    Friday, February 21, 2014 3:00 PM

All replies

  • Appears to be a defect in Solution Packager. You can vote for it to be resolved https://connect.microsoft.com/dynamicssuggestions/feedback/details/811665/solution-packager-does-not-package-solution-with-business-rules-included

    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    Friday, February 21, 2014 3:00 PM
  • Have commented and voted - thanks for the pointer
    Friday, February 21, 2014 3:26 PM
  • Seems to be of no interest for the devs .. at least because the UR2 \bin - Contents are exactly the same as in 6.02 ......!
    Wednesday, April 2, 2014 2:29 PM
  • Hi,

    I have just been through this issue with the latest version of the tool.

    When I unpack my solution the root components where not added so the pack was failing.

    So I have added the root component manually, then pack and publish the solution on my dev environment.

    Then I export the solution again and unpacked it using the tool -> The solution.xml file was generated properly and could be packed again with no problem.

    So I am wondering is this is not an issue with CRM 2013 when you add business logic to an entity part of the solution.

    Regards

    Wednesday, April 9, 2014 2:15 PM