FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



Error upon open of relationship explorerExpand / Collapse
Message
Posted 4/30/2006 9:22:00 AMPost #217
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
We are receiving the following error when the tool is opened:

Server error in ‘/c360’ Application.
‘Entity name’ cannot be an empty string. Parameter name: entityName

We have deleted an entity, and it was working before this was deleted.  I have tried to un-install and re-install to no avail.

thanks,
Jon

Posted 5/1/2006 11:45:46 AMPost #220
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Jon,

this problem is most likely related to the problem you reported with MFS. Getting rid of your preferences file as I suggested will mostly likely solve this problem as well.

See my answer to your other post for more details: http://www.c360.com/Forums/Topic205-9-1.aspx#bm219

 

Posted 5/2/2006 8:22:36 AMPost #224
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Still getting an error in relationship explorer - even after deleting the files.  Attached is the error I now receive.

Posted 5/2/2006 9:00:14 AMPost #225
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I was able to locate the error in the event log and below is the complete text:

Error 1:

UserName:

Jon Oestermeyer

URL:

http://swccrmapp01/c360/RelationshipExplorer/AddRelation.aspx?objPType=1&objPID={39AC2BD8-B9CF-DA11-9987-00137250C7A7}

WebService:

http://10.10.10.225/MSCRMServices/

Source:

c360.Toolkit.Common

Error Message:

Exception has been thrown by the target of an invocation.

Stack Trace:

at c360.Toolkit.Common.Factory.ᜀ(Type A_0, Object[] A_1)

at c360.Toolkit.Common.Factory.CreateInstance(Type type, Object[] ctorArgs)

at c360.Toolkit.Security.EntityPrivilegeCheckerFactory.ᜀ(String A_0)

at c360.Toolkit.Security.CRMSecurityPrincipal.ᜀ(String A_0, AccessRights A_1)

at c360.RelationshipExplorer.AddRelation.ᜀ(Int32 A_0)

at c360.RelationshipExplorer.AddRelation.ᜁ()

at c360.RelationshipExplorer.AddRelation.BuildContentArea()

at c360.Toolkit.MsCrm.Pages.Area.ᜀ()

at c360.Toolkit.MsCrm.Pages.Area.OnInit(EventArgs e)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Page.ProcessRequestMain()

Assembly name: c360.Toolkit

Assembly version: 3.0.5.38

Calling assembly name:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



Error 2:

Text formatter: error formatting the log record: System.InvalidCastException: Specified cast is not valid.

at c360.Toolkit.Logging.Formatters.TextLogRecordFormatter.ᜀ(LogRecord A_0)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Posted 5/2/2006 10:08:49 AMPost #226
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Thanks for the screenshot and the entry from the event log, they help a lot.

What I have learned from these two new pieces of information is that the error in RE occurs when you attempt to add a relationship. One of the things RE does at that time is to retrieve all the relationship types that the administrator has defined and verify that the current user has the appropriate permission for each entity involved in the relationships. However, since one of the entities involved in one of the relationships no longer exists, it is impossible to determine if the user has the permission or not.

This leads me to conclude that this error is caused by the fact that the deleted entity was used when a relationship type was defined. This is a scenario that we did not plan for but I'll certainly add it for consideration in a future release. In the mean time, I need to write a SQL query to will help you identify and get rid of the offending records in the 'c360_Solutions' database.

I'll work on it this morning and get back to you later today.

 

Posted 5/2/2006 10:19:47 AMPost #227
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Jeremie -

I was able to delete all data from those tables and now the rel exp works.  However, I get a different error with account and contacts now.

Have you ever seen this error (through either the web client or Outlook client).  There is custom script in the form load that references c360 components on the accounts form and the contacts form.  I am prompted for credentials on the web client (with integrated security active) and if I do not provide them get the attached error.  If I enter them I receive no error but if I don't (or in the case of the outlook client do not have an opportunity to enter them) I get the error

thanks,
Jon

Posted 5/2/2006 10:58:35 AMPost #231
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
The SQL query to get the list of offending records is:

SELECT     *
FROM         rm_RelationshipDefinitions
WHERE     (ParentTypeCode NOT IN
                          (SELECT     ObjectTypeCode
                            FROM          c360_Solutions_Inc_METABASE.dbo.Entity)) OR
                      (ChildTypeCode NOT IN
                          (SELECT     ObjectTypeCode
                            FROM          c360_Solutions_Inc_METABASE.dbo.Entity AS Entity_1))

Please note that you must replace "c360_Solutions_Inc_METABASE" with the name of your actual Microsoft CRM metadata database.

To get rid of these records, you replace "SELECT * FROM ..." in the SQL query with the command: "DELETE FROM ...".

 

« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: kanika.jackson, Ken Champion

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 8:06am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.750. 12 queries. Compression Enabled.