Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Breadcrumb Error
Last Post 11/05/2008 5:43 AM by Brandon Hartsell. 9 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Brandon Hartsell
New Member
New Member
Posts:73


--
10/29/2008 11:37 PM

When I use the new templateview in DMX 5 the breadcrumb shows 'error'. Any idea what is going on?

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/30/2008 9:30 AM
Hi Brandon,

Yes, this is a result of the path id's not being correct yet in the database in an older version of DMX 4. The easiest way to repair is to run the following script:

DISABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
UPDATE {objectQualifier}DMX_Entries
SET Path = NULL
WHERE NOT Path LIKE '0;%';
ENABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
GO

EXEC {databaseOwner}{objectQualifier}DMX_UpdatePaths @PortalId
GO

(Where @PortalID is the ID of the portal you're updating)

Peter
Brandon Hartsell
New Member
New Member
Posts:73


--
10/30/2008 12:25 PM

So if my portal id is 0 then I would run as Script under HOST/SQL:

DISABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
UPDATE {objectQualifier}DMX_Entries
SET Path = NULL
WHERE NOT Path LIKE '0;%';
ENABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
GO

EXEC {databaseOwner}{objectQualifier}DMX_UpdatePaths @PortalId = 0
GO

???

Brandon Hartsell
New Member
New Member
Posts:73


--
10/30/2008 12:40 PM

Also when I try to execute DMX_UpdatePaths stored procedure I get:

The definition of object 'DMX_EntryUpdatePath' has changed since it was compiled.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/31/2008 11:00 AM
Hi Brandon,

Does the 'definition of object 'DMX_EntryUpdatePath' has changed since it was compiled' error persist after a reset of your system? I have seen it once before but it went away.

Peter
Brandon Hartsell
New Member
New Member
Posts:73


--
10/31/2008 11:37 AM

I did a application restart and an IISReset this error still persists.

Brandon Hartsell
New Member
New Member
Posts:73


--
10/31/2008 5:40 PM

restarted SQL also. No joy.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/03/2008 1:19 PM
Hi Brandon,

I am not sure where the error is produced. I'd have to be able to replicate this. Please contact me by email to continue this.

Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
11/04/2008 10:17 PM
OK, I worked on this today and I have found out that the last command (EXEC {databaseOwner}{objectQualifier}DMX_UpdatePaths @PortalId) is what is causing the problem here. For those with faulty breadcrumbs you can do the following:

1. Run the following:

DISABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
UPDATE {objectQualifier}DMX_Entries
SET Path = NULL
WHERE NOT Path LIKE '0;%';
ENABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
GO

2. Check in the DMX_Entries table in the field Path you only see either NULL or something beginning with '0;'.

3. Edit an entry in your portal OR in SQL, while you have the DMX_Entries table open, edit a record. This should repair all Path fields in the Portal. You can verify this by querying your database on the DMX_Entries table.

4. Verify the reappearance of breadcrumbs.

5. Repeat for all portals in the installation if necessary (check the database)

In the meantime I'll see if I can find a permanent fix to this. It only concerns people with data from older DMX 4 installations. New installs should not experience this problem.

Peter
Brandon Hartsell
New Member
New Member
Posts:73


--
11/05/2008 5:43 AM
I have breadcrumbs now.
You are not authorized to post a reply.