locked
Issue while importing 3rd party (managed) solution RRS feed

  • Question

  • Hi all,

    currently I am having an issue with importing a 3rd party (managed) solution.

    The import is rollback with the error:

    0x8004F016

    A managed solution cannot overwrite the Attribute component with Id=74c2f705-41fb-e011-a657-00505681000e which has an unmanaged base instance.  The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged Attribute component on the target system, and now a managed solution from the same publisher is trying to install that same Attribute component as managed.  This will cause an invalid layering of solutions on the target system and is not allowed.

    When I query for attributes with that id (74c2f705-41fb-e011-a657-00505681000e) I can see that it is the "subject" field from a custom activity.

     

    The error messages from crm intends that it has to do with the publisher, however the custom activity is not from the same publisher as the 3rd party solution.

     

    I am a bit lost, as I don't even know where to investigate in. (deleting and re-importing the custom activity is not an option) 

     

    Any help on this is greatly appreciated.

     

    Kind regards,

    Jens

    Thursday, November 17, 2011 9:58 AM

Answers

  • In the meantime I could fix the issue, although the solution is not nice (unsupported):

    Ran the following query:

    UPDATE Attribute
    SET MaxLength = 255,
    [Length] = 510,
    [InheritsFrom] = '00000000-0000-0000-0000-000000000000'
    WHERE AttributeId = '74c2f705-41fb-e011-a657-00505681000e'
    

    Import the managed solution. (success)

    Ran the following query to revert the previous changes:

    UPDATE Attribute
    SET MaxLength = 200,
    [Length] = 400,
    [InheritsFrom] = '5BD69410-898F-4FE1-A820-9C55C35069B3'
    WHERE AttributeId = '74c2f705-41fb-e011-a657-00505681000e'
    

    • Marked as answer by Jens.Voigt Thursday, November 17, 2011 2:56 PM
    Thursday, November 17, 2011 2:56 PM

All replies

  • does this managed solution include the custom entity too or what's the datatype of the subject field?


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Thursday, November 17, 2011 10:04 AM
  • Does this managed solution include the custom entity too or what's the datatype of the subject field?


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    • Proposed as answer by Amreek Singh Thursday, November 17, 2011 10:05 AM
    • Unproposed as answer by Jens.Voigt Thursday, November 17, 2011 2:53 PM
    Thursday, November 17, 2011 10:05 AM
  • does this managed solution include the custom entity too or what's the datatype of the subject field?


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Thursday, November 17, 2011 10:05 AM
  • No the managed solution does not include the same custom activity/entity.

    It however includes the appointments.

     

    The subject field (on our custom activity) is inherited.

    It has the

    data type "Single Line of Text"
    format "Text"
    max length "200"
    ime mode "auto"
    requirement level "business required"
    display name "Action"
    name "subject"
    auditing "Enabled"
    searchable "Yes"

    Thursday, November 17, 2011 10:15 AM
  • In the meantime I could fix the issue, although the solution is not nice (unsupported):

    Ran the following query:

    UPDATE Attribute
    SET MaxLength = 255,
    [Length] = 510,
    [InheritsFrom] = '00000000-0000-0000-0000-000000000000'
    WHERE AttributeId = '74c2f705-41fb-e011-a657-00505681000e'
    

    Import the managed solution. (success)

    Ran the following query to revert the previous changes:

    UPDATE Attribute
    SET MaxLength = 200,
    [Length] = 400,
    [InheritsFrom] = '5BD69410-898F-4FE1-A820-9C55C35069B3'
    WHERE AttributeId = '74c2f705-41fb-e011-a657-00505681000e'
    

    • Marked as answer by Jens.Voigt Thursday, November 17, 2011 2:56 PM
    Thursday, November 17, 2011 2:56 PM