locked
List Created using Sandbox solution is not working now RRS feed

  • Question

  • We had a Sandbox solution developed using Visual Studio (empty SharePoint Project and then added a "List" definition/template). We had added some lists to this project and added all the lists to a feature and then this solution was activated on customer sites to create lists in SPOnline sites. There was no other code in this project, only some list definitions.

    Since sandbox solutions are now deprecated, we deactivated the solution from customer site. However, after this step lists created using sandbox solution are no longer working and we get error when we try to go the list view, settings or any item form. Lists created directly from SharePoint UI continue to work fine in these sites, problem is only with lists created from Sandbox solution.

    Since customers have items in these lists, we just want to use these lists going forward but without the solution that initially created them. Please let us know how this can be done. Again, note that we don't want to use any sandbox solution code, only the lists that were created earlier using them.



    Additional information:
    Generally, if we create a list item in any custom list created manually from SharePoint UI, item gets created in default content type i.e. "Item". In our list which is created by Sandbox solution, if I create an item it gets created in content type "ListFieldsContentType".

    Now, I have deactivated my sandbox solution and then I am seeing an error "An unexpected error has occurred" when I open that list (this is true for the lists created by our sandbox solutions only).
    If I activate the solution then again our lists are working fine (we have an extension for sandbox solutions for some tenancies).

    Our sandbox solution feature created lists with "ListFieldsContentType" as a default content type and we have tried below things on a list but no luck.
    1. Make "Item" as default content type
    2. Add all list fields to "Item" Content Type
    3. Update "Content Type" field value with "Item" in all list items in that list
    4. Remove "ListFieldsContentType" from the List

    With these steps we thought the "ListFieldsContentType" references are fully removed and we can use our lists without errors but the outcome is different. We are still seeing the same error message (Something went wrong, an unexpected error occurred).

    Tuesday, October 25, 2016 6:31 AM

Answers

All replies

  • Hi.

    Take a look at this...

    http://zsvipullo.blogspot.it/2016/08/microsoft-announcement-removing-code.html

    If you disable WSP solution, automatically all the related features are removed and the list definition on which your list is based is removed.

    Then you are not be able to view your list.

    The solution is described in the link above:

    Remove the DLL from your assembly and activate your WSP again.


    Regards,
    Bubu
    http://zsvipullo.blogspot.it

    Please mark my answer if it helped you, I would greatly appreciate it.

    Tuesday, October 25, 2016 6:55 AM
  • Hi Bubu,

    Thanks for the hint, I used procedure described in below link to remove the assembly reference and then we are back in business!

    https://support.microsoft.com/en-us/kb/3183084

    Regards

    Pavan

    (www.crowcanyon.com)

    Tuesday, October 25, 2016 8:02 AM
  • You are welcome!

    :)


    Regards,
    Bubu
    http://zsvipullo.blogspot.it

    Please mark my answer if it helped you, I would greatly appreciate it.

    Tuesday, October 25, 2016 8:26 AM
  • Hi Pavan.

    Be careful that the solution described in the support.microsoft link may have problem if you are using SP2013 Workflows with custom activities.


    Regards,
    Bubu
    http://zsvipullo.blogspot.it

    Please mark my answer if it helped you, I would greatly appreciate it.

    Tuesday, October 25, 2016 8:57 AM