Posts

Showing posts with the label List Definition

The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web at SharePoint

Image
I recently had the following error when I tried to add a document to a document library. The URL <file name>  is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.  A quick search on google said that brought the resources of SQL Server. I checked and indeed I increased the resources but to no avail. Even my examination chrome and Internet Explorer. I checked Word file, PDF, and even a small text file. A.  Nothing helped. I opened a new document library, and in fact it could add document :)  Ok ... what is the problem ???  It should be noted in the document library came from List Definition and Content Type preset. I started to check each field and field Then I got a Date Field in the file probably was not his elemet.xml incubated right.  When I set it to Today date .... it worked  All it needed was simply to write the true definition of the field  ...

SharePoint List showed twice

Image
You happen to write a List Definition and of course it Schema.xml file. I also went a few times :) But .. What happens that you copy a code that you have before? It is said that the "copy - paste" is the programmer's best friend (after Google, of course) I copied DefaultView=true twice, and I see it in "view all site content" the list showed twice (each time for a different view) <Views>    ...    <View>      ...      DefaultView = "True"      ...    </View>    <View>      ...      DefaultView = "True"      ...    </View> </Views> All you need to remember is to type only "DefaultView = true" once! Roi.