I created a utility that bulk loads content from an Excel spreadsheet into WCM. When I run the code to create a new folder, the folder doesn't always show up on the Manage Content screen.
The code to create the folder is based on this sample code provided by Eric in 2009: http://www.imiscommunity.com/how_to_programmatically_create_content
When I inspect the DocumentMain and Hierarchy tables in the database, everything looks exactly the same as folders that I created manually with the WCM tool:
ParentHierarchyKey DocumentTypeCode DocumentStatusCode DocumentName DocumentDescription AlternateName
63F4FB6D-88F2-412F-AF7D-07653BD56A96 CFL 40 Board NULL Board
63F4FB6D-88F2-412F-AF7D-07653BD56A96 CFL 40 BoardTest NULL BoardTest
63F4FB6D-88F2-412F-AF7D-07653BD56A96 CFL 40 SC NULL SC
The first two rows were created with the WCM admin website, and the third was created from code. Everything looks the same, but the one created from code doesn't appear in the folder at all.
Any ideas?? Is there another table that I need to check?
Thanks,
James
Perhaps I spoke too soon. I
Perhaps I spoke too soon. I think there was something corrupted on the root folder where I was trying to add the sub-folders, because the code works fine when I create new root folders and sub-folders.
So I think this is a non-issue (for now anyway).
Cheers,
James