US English (US)
ES Spanish

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Log in
English (US)
US English (US)
ES Spanish
  • Home
  • Support
  • Support FAQs
  • FAQ: Salesforce

"Document with ID does not have an owning Library" error when upgrading to version 3.6 and above

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • About Us
    Who is RIO Education? Experience RIO in action Customer go-live events Our Partners Housekeeping
  • RIO Insights
    Careers
  • RIO Recipe
    Project Management & Governance Discovery Design & Prototype Build & Implementation UAT Deployment & Metadata RIO Recipe: Training
  • Install RIO Education
    Configuration Integration with RIO Extension Package Installer Products
  • Releases
    Release Notes
  • Support
    Support FAQs Feature Articles Deep Dive RIO Academy Updates for other products
+ More

Description

Error:

When upgrading to RIO Education version 3.6 and above, you may encounter the error "Document with ID does not have an owning Library" for both "rioed" and "rioed_eddie" content documents.


Root cause:

This could be due to the related content document not being shared with anyone in the Salesforce org. Please verify this by following the steps below:

  1. Go to Setup > Feature Settings > Salesforce Files > Asset Files.
  2. Look for the asset file with Unique Name = rioed.
  3. Click on the record.
  4. Click on the "View" link next to the "View File Details" to view the content document.
  5. Verify if the file is not shared with anyone.


Resolution

Both of the content documents "rioed" and "rioed_eddie" need to be shared at least to Salesforce org to solve the error. Please run the following script in developer console to fix the data issue:

ContentDocumentLink rioed_cdl = new ContentDocumentLink();
rioed_cdl.LinkedEntityId = '<copy the content document id from the url for rioed file>';
rioed_cdl.ShareType = 'V';
rioed_cdl.Visibility = 'AllUsers';
rioed_cdl.ContentDocumentId = '<salesforce org id>';


insert rioed_cdl;


ContentDocumentLink rioededdie_cdl = new ContentDocumentLink();
rioededdie_cdl.LinkedEntityId = '<copy the content document id from the url for rioed_eddie file>';
rioededdie_cdl.ShareType = 'V';
rioededdie_cdl.Visibility = 'AllUsers';
rioededdie_cdl.ContentDocumentId = '<salesforce org id>';


insert rioededdie_cdl;


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • RIO Education Apps/Consoles
  • What Open Source Libraries are used by RIO Education?
  • What is USA SEVIS & SEVIP?
  • Setting or updating custom field default value
RIO Education

RIO Education Inc, a WDCi Company. This information is proprietary, confidential and protected by copyright ©2023.

CONTACT

E:  getinfo@wdcigroup.net

  • Privacy
  • Terms of service

Definition by Author

0
0
Expand