MOSSDW exception when deleting data

Topics: Developer Forum, User Forum
Mar 16, 2007 at 3:36 PM
Hi

I'm trying out this nice tool, and are experiencing some difficulties.

The examples given contains tags "Sites", which is not recognized by MOSSDW. Old stuff? (The tag is not mentioned in the help file).

I've created a small working example, which works nicely when creating the data, but when it comes to deleting, an exeption occurs. If several Webs are created, this means that only the first Web is deleted (if only one Web is created, it deleted ok).

I can't figure out what I'm doing wrong - can someone else?

Here is the XML:
<?xml version="1.0" encoding="utf-8"?>
<MOSSDWLib>
  <!-- Just some testing 
  <SetGlobalProperty prop1="prop1value" prop2="prop2value" />
  <Echo message="This is a display message" />
  <Echo message="This is a display message with Global Properties: $prop1$, $prop2$" />
  -->
  <!-- The site collection must exist beforehand for this example -->
  <TestPortal SiteUrl="http://myserver:10456/sites/CSA">
    <!-- Creating a number of Webs, in each Web 4 different pages are created with varying Status and one with different pagelayout -->
    <!-- TO BE FIXED: When deleting this an exception is thrown, and only the first Web are deleted -->
    <TestArea num="2" start="1" UrlName="DPT_Test_Web$num$" NameEqualUrlName="false" Title="Test af NameEqualUrlName=false">
      <TestPage Name="default.aspx" Status="Published" openmode="modifyexisting" Description="Beskrivelse: Status = Published"/>
      <TestPage Name="defaultpending.aspx" Status="Pending" openmode="modifyexisting" Description="Beskrivelse: Status = Pending"/>
      <TestPage Name="defaultcheckedout.aspx" Status="Checkedout" openmode="modifyexisting" Description="Beskrivelse: Status = Checkedout"/>
      <TestPage Name="defaultCheckedin.aspx" Status="Checkedin" openmode="modifyexisting" Description="Beskrivelse: Status = Checkedin"/>
      <!-- This last one with a different pagelayout -->
      <TestPage Name="default_WS.aspx" Status="Published" openmode="modifyexisting" Description="Beskrivelse: Baseret på WelcomeSplash.aspx masterpage" PageLayout="WelcomeSplash.aspx"/>
 
    </TestArea>
  </TestPortal>
  
</MOSSDWLib>

Here is the execption:
Processing: TestPortal
   Attributes: SiteUrl: http://W65627:10456/sites/CSA; 
Processing: TestArea
StringGenerator seed set to: 1717490598
StringGenerator LCID set to: 1030
   Attributes: UrlName: DPT_Test_Web1; NameEqualUrlName: false; Title: Test af NameEqualUrlName=false; 
Processing: TestPage
   Attributes: Name: default.aspx; Status: Published; Description: Beskrivelse: Status = Published; 
Processing: TestPage
   Attributes: Name: defaultpending.aspx; Status: Pending; Description: Beskrivelse: Status = Pending; 
Processing: TestPage
   Attributes: Name: defaultcheckedout.aspx; Status: Checkedout; Description: Beskrivelse: Status = Checkedout; 
Processing: TestPage
   Attributes: Name: defaultCheckedin.aspx; Status: Checkedin; Description: Beskrivelse: Status = Checkedin; 
Processing: TestPage
   Attributes: Name: default_WS.aspx; Status: Published; Description: Beskrivelse: Baseret p† WelcomeSplash.aspx masterpage; PageLayout: WelcomeSplash.aspx; 
Error: Exception has been thrown: System.NullReferenceException: Object reference not set to an instance of an object.
   at MOSSPerfTools.Portal.TestArea.Dispose()
   at MOSSPerfTools.MOSSDW_Base.DisposeContentObject(IContentObject co)
   at MOSSPerfTools.MOSSDW_Base.ProcessTag()
 
Time to complete execution: 00:00:08.0782801
 
Error #1: Exception has been thrown: System.NullReferenceException: Object reference not set to an instance of an object.
   at MOSSPerfTools.Portal.TestArea.Dispose()
   at MOSSPerfTools.MOSSDW_Base.DisposeContentObject(IContentObject co)
   at MOSSPerfTools.MOSSDW_Base.ProcessTag() (Node: <TestArea num="2" start="1" UrlName="DPT_Test_Web$num$" NameEqualUrlName="false" Title="Test af NameEqualUrlName=false"><TestPage Name="default.aspx" Status="Published" openmode="modifyexisting" Description="Beskrivelse: Status = Published" /><TestPage Name="defaultpending.aspx" Status="Pending" openmode="modifyexisting" Description="Beskrivelse: Status = Pending" /><TestPage Name="defaultcheckedout.aspx" Status="Checkedout" openmode="modifyexisting" Description="Beskrivelse: Status = Checkedout" /><TestPage Name="defaultCheckedin.aspx" Status="Checkedin" openmode="modifyexisting" Description="Beskrivelse: Status = Checkedin" /><!-- This last one with a different pagelayout --><TestPage Name="default_WS.aspx" Status="Published" openmode="modifyexisting" Description="Beskrivelse: Baseret p† WelcomeSplash.aspx masterpage" PageLayout="WelcomeSplash.aspx" /></TestArea>)
Hoping someone can point it out to me. :-)

Regards,
Carsten
Jun 18, 2008 at 7:08 PM
Hi Carsten,

When I run your sample to create pages, I got following exception. Could you please help with it?

Processing: TestPage
   Attributes: Name: defaultpending.aspx; Status: Pending; Description: Beskrive
lse: Status = Pending;
Error: Exception has been thrown: Microsoft.SharePoint.SPException
   at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, B
oolean overwrite, String checkInComment, Boolean checkRequiredFields)
   at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file)
   at Microsoft.SharePoint.Publishing.PublishingPageCollection.<>c__DisplayClass
5.<Add>b__0()
   at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boo
lean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchB
lock, FinallyBlock finallyBlock)
   at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID
tagID, ULSCat categoryID, String output, Boolean fRethrowException, TryBlock try
Block, CatchBlock catchBlock, FinallyBlock finallyBlock)
   at Microsoft.SharePoint.Publishing.PublishingPageCollection.Add(String name,
PageLayout layout)
   at MOSSPerfTools.Portal.TestPage.CreateInternal()
   at MOSSPerfTools.ContentDataManagement.ContentObjectBase.Create(ContentObject
CreationType type)
   at MOSSPerfTools.MOSSDW_Base.DoDataWriteOperation(IContentObject co)
   at MOSSPerfTools.MOSSDW_Base.ProcessTag()

Thanks,
Bill 
Jul 9, 2008 at 11:59 AM
Hi Bill,

I'm afraid not... :-(

Regards,
Carsten