Skip to main content
added 4 characters in body
Source Link

I am trying to deploy two files to a custom list. I created two features for this: one that holds the list definitions along with the module and one that contains the list instances. Both are in the same package.

However, I always get the above error when deploying the files with the attribute "Type" set to "GhostableInLibrary". I already tried numerous things like moving the URL to the module/each file element to no avail. In the URL, the List is "ActivityReports" and "Templates" is a subfolder in the list.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module RootWebOnly="FALSE" Name="Templates" Url="Lists/ActivityReports/Templates" Path="Templates">
    <File Url="CondatoUrl="Template1.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
    <File Url="QPeriorUrl="Template2.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
  </Module>
</Elements>

Anybody see anything wrong my Elements.xml file?

I am trying to deploy two files to a custom list. I created two features for this: one that holds the list definitions along with the module and one that contains the list instances. Both are in the same package.

However, I always get the above error when deploying the files with the attribute "Type" set to "GhostableInLibrary". I already tried numerous things like moving the URL to the module/each file element to no avail. In the URL, the List is "ActivityReports" and "Templates" is a subfolder in the list.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module RootWebOnly="FALSE" Name="Templates" Url="Lists/ActivityReports/Templates" Path="Templates">
    <File Url="Condato.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
    <File Url="QPerior.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
  </Module>
</Elements>

Anybody see anything wrong my Elements.xml file?

I am trying to deploy two files to a custom list. I created two features for this: one that holds the list definitions along with the module and one that contains the list instances. Both are in the same package.

However, I always get the above error when deploying the files with the attribute "Type" set to "GhostableInLibrary". I already tried numerous things like moving the URL to the module/each file element to no avail. In the URL, the List is "ActivityReports" and "Templates" is a subfolder in the list.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module RootWebOnly="FALSE" Name="Templates" Url="Lists/ActivityReports/Templates" Path="Templates">
    <File Url="Template1.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
    <File Url="Template2.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
  </Module>
</Elements>

Anybody see anything wrong my Elements.xml file?

Source Link

"Failed to instantiate file from module: The specified list does not exist." when deploying file through module

I am trying to deploy two files to a custom list. I created two features for this: one that holds the list definitions along with the module and one that contains the list instances. Both are in the same package.

However, I always get the above error when deploying the files with the attribute "Type" set to "GhostableInLibrary". I already tried numerous things like moving the URL to the module/each file element to no avail. In the URL, the List is "ActivityReports" and "Templates" is a subfolder in the list.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module RootWebOnly="FALSE" Name="Templates" Url="Lists/ActivityReports/Templates" Path="Templates">
    <File Url="Condato.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
    <File Url="QPerior.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
  </Module>
</Elements>

Anybody see anything wrong my Elements.xml file?