The following errorreport is shown on a display request for a custom entrity:
http://perfectv-mcjywm:5555/GemeenteRommeldam/_root/homepage.aspx?etc=10036

Microsoft CRM Error Report:
Error Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error
and where it originated in the code.

Error Details:
Exception of type 'System.Web.HttpUnhandledException' was thrown.

Full Stack:
[FormatException: Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
at System.Guid..ctor(String g)
at Microsoft.Crm.Application.Controls.AppGrid.set_ViewId(String value)
at Microsoft.Crm.Web.EntityHomePage.ConfigurePage()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.gemeenterommeldam__root_homepage_aspx.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)



Other Message:

Error Number:

Source File:
Not available

Line Number:
Not available


Date: 02-29-2008

Time: 15:45:38

Server: perfectv-mcjywm


Request URL:
http://perfectv-mcjywm:5555/GemeenteRommeldam/_root/homepage.aspx?etc=10036

What's wrong?

Mari

Re: CRM 4.0 Display content of custom entity throws exception. by Andy

Andy
Fri Feb 29 13:36:00 CST 2008

I'm assuming you've written some code that issues the display request.

Place the call for the display request in a try/catch structure.

Make HttpUnhandledException one of the catch clauses.

This exception should define sub fields such as a more detailed
message and exactly where it occured. You can display these to get
more details.

From reading your stack trace, it looks like you are passing an
invalid GUID to something. CRM uses GUIDs extensively for its record
keys, so it maybe that you are populating a key field on your request
incorrectly

Re: CRM 4.0 Display content of custom entity throws exception. by MariSlagboom

MariSlagboom
Sat Mar 01 03:38:01 CST 2008

Andy,

I get this error with the following request url in IE:

http://perfectv-mcjywm:5555/GemeenteRommeldam/_root/homepage.aspx?etc=10036

With one of the standard entity id's this works fine.
I get the same result if I add a subarea in my sitemap for this entity en
click the entityname in the menu.

The entity is imported in 4.0 from an export customizations done after
upgrading 3.0.

Mari

"Andy" wrote:

> I'm assuming you've written some code that issues the display request.
>
> Place the call for the display request in a try/catch structure.
>
> Make HttpUnhandledException one of the catch clauses.
>
> This exception should define sub fields such as a more detailed
> message and exactly where it occured. You can display these to get
> more details.
>
> From reading your stack trace, it looks like you are passing an
> invalid GUID to something. CRM uses GUIDs extensively for its record
> keys, so it maybe that you are populating a key field on your request
> incorrectly
>

Re: CRM 4.0 Display content of custom entity throws exception. by Carsten

Carsten
Sat Mar 01 16:33:00 CST 2008

If you want to address a user defined entity, you´ll have to use

UserDefined/edit.aspx?etn=<entity name>
UserDefined/edit.aspx?etn=<entity nname>&id=<object_id>

Hope this helps to correct your code.


"Mari Slagboom" wrote:

> Andy,
>
> I get this error with the following request url in IE:
>
> http://perfectv-mcjywm:5555/GemeenteRommeldam/_root/homepage.aspx?etc=10036
>
> With one of the standard entity id's this works fine.
> I get the same result if I add a subarea in my sitemap for this entity en
> click the entityname in the menu.
>
> The entity is imported in 4.0 from an export customizations done after
> upgrading 3.0.
>
> Mari
>
> "Andy" wrote:
>
> > I'm assuming you've written some code that issues the display request.
> >
> > Place the call for the display request in a try/catch structure.
> >
> > Make HttpUnhandledException one of the catch clauses.
> >
> > This exception should define sub fields such as a more detailed
> > message and exactly where it occured. You can display these to get
> > more details.
> >
> > From reading your stack trace, it looks like you are passing an
> > invalid GUID to something. CRM uses GUIDs extensively for its record
> > keys, so it maybe that you are populating a key field on your request
> > incorrectly
> >