Thursday, May 29, 2008

Versions.aspx Unknown Error

Latest findings :-)

Did you ever receive "Unknown Error" (love these descriptive messages)when trying to view version history on the item? I did. As it turned out it was directly related to the issue I had with viewing properties of an item. Anytime I've opened "View Properties" it would redirect me to the portal home page. Once the Dispform.aspx page was fixed, I had no issues browsing to the version history.

Because my priority was to resolve version issue before display properties redirection, all research was fruitless, If you are doing the same, take a look at your view properties page first.

Enjoy

11 comments:

Anonymous said...

Natalya,

You are the only one who seems to have posted about this issue. You stated that the issue with the Dispform.aspx has to be fixed first but can you please elaborate on how it should be done?

Tried creating a new document library based on the existing document library's template but still the same issue. Can delete the document library and re-create it but do not want to loose the versions. Please suggest on how the issue can be resolved

Natalya Voskresenskaya [SharePoint MVP] said...

When you recreate a library from the template your broken dispform is being replicated.
There are 2 ways (more, but I’ll talk about easy ones):
1. Open your dispform in SPD
2. Remove all Web parts from web part zone.
3. Click onto the empty webpart zone, in the “insert” menu on the top command bar, “sharepoint controls” => List Form.
4. In the next dialogue box select the doc library, and select form type as “display”

The other way I do not recommend, but if the first does not work let me know, I ‘ll give it to you

Anonymous said...

Thanks for your reply but the issue is that we cannot use SPD in our environment as it is blocked

Please comment

Natalya Voskresenskaya [SharePoint MVP] said...

Give me background on how your dispform became broken.
Was this lib created from custom doc lib definition?

Anonymous said...

It is created from out of the box document library template. It throws the Unknown error message while trying to view version history and redirects to the homepage when trying to edit or view the properties just like you mentioned in your original post.

[=Amit] Chugh said...

Hi,

I am getting the same error.
Scenario : I have a document library on which i am having a custom workflow.
When the worklow is either not started or Completed then only i can see the item's properties.
If the workflow is InProgress mode, it gives me the same error "unknown Error".

Natalya Voskresenskaya [SharePoint MVP] said...

In your case I would scrutinize the workflow it's self

msorli said...

Hello Natialia I have the same problem but in another scenario.

I have a document library with 3 different content types and the same workflow. Upon completion of the properties in editform.aspx of the workflow starts editing it manually.
At the start screen of the flow is controlled by a code of these properties is complete, if not, then the flow does not start.
The issue is that if we reach the home screen without the flow value of the property breaks the version history of the document in question. In all other cases the version history works properly.
I hope you can guide. Thank you very much

Patrick said...

I have just run across this issue as well. No workflow on the site. I followed your easy suggestion and it did not work, now view properties takes me to the home page and inside of SPD I get an error when it tries to build the sharepoint control.
What are my other options?

Thanks.

Natalya Voskresenskaya [SharePoint MVP] said...

This was a long time ago, so I do not exactly remember, but...
do any other forms work, like:
view and edit?

H said...

In SPD, I have an unknown error when trying to view a list's web part properties (ie. Tasks) on any form (DisplayForm.aspx, EditForm.aspx, NewForm.aspx). Meanwhile, properties in document library are fine. I have deleted then recreated it but still have this problem. I need to be able to view the properties. So that, I can hide the default web part then create a custom web part.

Do you have any idea? Thanks in advance.