3

Images do not appear in Select Media dialog when I click Browse button in Image field.

HTTP response from ItemWeb API that expected to return Images contains this error:

String was not recognized as a valid DateTime.

There is an associated entry in Log:

2724 10:59:23 ERROR [Item Web API] String was not recognized as a valid DateTime.
Exception: System.FormatException
Message: String was not recognized as a valid DateTime.
Source: mscorlib
   at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
   at Sitecore.ItemWebApi.Facets.UpdatedFacetProvider.GetFacetValue(String value)
   at Sitecore.ItemWebApi.Pipelines.Request.Search.GetFacets(IList`1 facetProviders, FacetResults facets)
   at Sitecore.ItemWebApi.Pipelines.Request.Search.RunSearchPipeline(RequestArgs args, String searchText, String languageName, Boolean showHiddenItems)
   at Sitecore.ItemWebApi.Pipelines.Request.Search.Process(RequestArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.ItemWebApi.Pipelines.HttpRequest.LaunchRequest.Process(HttpRequestArgs arguments)

We have Sitecore instances with the same site in different environments and issue is not reproducible there. One difference between this instance and others is lots of Media Items imported from Sitecore 6.5.

Any ideas how to fix this issue?

1 Answer 1

5

The issue may be related to your other question where it appears that you have some invalid date formats. From the StackTrace it looks like the issue is related to one of the Media facets. I would try disabling the 'Date uploaded' facet under /sitecore/client/Applications/Dialogs/SelectMediaDialog/PageSettings/Facets from the Core database to see if that removes the error.

More information about disabling facets at the bottom of this knowledge base article: https://kb.sitecore.net/articles/576214

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.