Developer forum

Forum » Integration » adding items to page tree with sql

adding items to page tree with sql

Keld Gøtterup
Reply

ive been trying to add items to the regular DW content tree by sql to the item and page table. 
the item does appear in the content tree but when i try to access it i get the below error. 
it appears that this issue goes away with time, which leads me to believe it may be some kind of caching error?
 

Object reference not set to an instance of an object.

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. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

 
Line 176:            </div>
Line 177:            <div id="breadcrumb" runat="server">
Line 178:                <%=GetBreadcrumb(TargetPage.ID, True)%>
Line 179:            </div>
Line 180:            <div id="content">


Source File: E:\dynamicweb.net\Application(8.4.1.11)\Admin\Content\Items\Editing\ItemEdit.aspx    Line: 178 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Keld

Try to recycle the app pool after integration and see if it fixes the error. If it does, let me know - and I'll find the piece in the API you need to call.

NP

Votes for this answer: 1
 
Keld Gøtterup
Reply

That does indeed fix the error :)

 
Keld Gøtterup
Reply

hope you can find the API piece :)

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Keld

Call the static Dynamicweb.Content.Page.UpdateFrontendCache() after your import.

BR Nicolai

Votes for this answer: 1
 
Keld Gøtterup
Reply

thx :)

 

You must be logged in to post in the forum