<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Update to OCS archiving script</title>
	<atom:link href="http://www.flobee.net/update-to-ocs-archiving-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flobee.net/update-to-ocs-archiving-script/</link>
	<description>The consequence of not having six hydrocoptic marzelvanes.</description>
	<lastBuildDate>Thu, 01 Dec 2011 16:35:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scott</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-1178</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Thu, 09 Dec 2010 21:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-1178</guid>
		<description>Thanks for the info.  I have an R2 infrastructure where I work, but no archiving database to query against, so it has been difficult to test the issues that others have had since my post.</description>
		<content:encoded><![CDATA[<p>Thanks for the info.  I have an R2 infrastructure where I work, but no archiving database to query against, so it has been difficult to test the issues that others have had since my post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-1177</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 09 Dec 2010 19:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-1177</guid>
		<description>Guh. Looks like my code got mangled by the site removing HTML.  

The correction to the query should be such that LcsLog.dbo.Messages.Toast DOES NOT EQUAL 1.  In SQL this is a &quot;less than angle bracket&quot; and a &quot;greater than angle bracket&quot; with no space between.

Or you could change the query to LcsLog.dbo.Messages.Toast = 0, which would probably be better and more precise, in hidsight.  Either way.  Sorry for the confusion.</description>
		<content:encoded><![CDATA[<p>Guh. Looks like my code got mangled by the site removing HTML.  </p>
<p>The correction to the query should be such that LcsLog.dbo.Messages.Toast DOES NOT EQUAL 1.  In SQL this is a &#8220;less than angle bracket&#8221; and a &#8220;greater than angle bracket&#8221; with no space between.</p>
<p>Or you could change the query to LcsLog.dbo.Messages.Toast = 0, which would probably be better and more precise, in hidsight.  Either way.  Sorry for the confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-1176</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 09 Dec 2010 19:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-1176</guid>
		<description>Hey guys, try changing lines 62, 66, 78, and 82 of the SQL queries where the toast messages are being filtered out to say &#039;and LcsLog.dbo.Messages.Toast  1&#039; as opposed to &#039;and LcsLog.dbo.Messages.Toast Is Null&#039; --  without the apostrophes, of course.

The toast column is a bit value column that also accepts nulls.  However, OCS 2007 R2 appears to log them as bit values only.  This is why the queries were (correctly) coming back with no data.

PS
I&#039;m no DBA, so forgive me if I my terminology is incorrect.</description>
		<content:encoded><![CDATA[<p>Hey guys, try changing lines 62, 66, 78, and 82 of the SQL queries where the toast messages are being filtered out to say &#8216;and LcsLog.dbo.Messages.Toast  1&#8242; as opposed to &#8216;and LcsLog.dbo.Messages.Toast Is Null&#8217; &#8212;  without the apostrophes, of course.</p>
<p>The toast column is a bit value column that also accepts nulls.  However, OCS 2007 R2 appears to log them as bit values only.  This is why the queries were (correctly) coming back with no data.</p>
<p>PS<br />
I&#8217;m no DBA, so forgive me if I my terminology is incorrect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stu</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-1112</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Thu, 13 May 2010 17:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-1112</guid>
		<description>Having the same problem.  It appears that the query for the SQL database isn&#039;t returning any results and that&#039;s why it&#039;s failing.  I&#039;ve verified the converstations exist by using an older version of this script.  How do we fix this?</description>
		<content:encoded><![CDATA[<p>Having the same problem.  It appears that the query for the SQL database isn&#8217;t returning any results and that&#8217;s why it&#8217;s failing.  I&#8217;ve verified the converstations exist by using an older version of this script.  How do we fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Brown</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-1104</link>
		<dc:creator>Ben Brown</dc:creator>
		<pubDate>Wed, 21 Apr 2010 09:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-1104</guid>
		<description>We&#039;re getting a similar thing to Kernel. Was working fine a couple of days ago, now we&#039;re getting:

You cannot call a method on a null-valued expression.
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:217 char:24
+ $IM.Body.get_FirstChild &lt;&lt;&lt;&lt; ().get_Data()
    + CategoryInfo          : InvalidOperation: (get_FirstChild:String) [], Ru
   ntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Attempted to divide by zero.
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:220 char:20
+     $jProgress = ($j / &lt;&lt;&lt;&lt;  $sourceXML.IMConversation.IM.Count) * 100
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException

Write-Progress : Cannot validate argument on parameter &#039;PercentComplete&#039;. The a
rgument is null, empty, or an element of the argument collection contains a nul
l value. Supply a collection that does not contain any null values and then try
 the command again.
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:221 char:77
+     Write-Progress -Activity &quot;Phase 2: Converting XML to HTML&quot; -PercentComple
te &lt;&lt;&lt;&lt;  $jProgress -Status &quot;Progress:&quot; -CurrentOperation &quot;$j of $($sourceXML.I
MConversation.IM.Count) messages completed.&quot;
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBind
   ingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
   Shell.Commands.WriteProgressCommand</description>
		<content:encoded><![CDATA[<p>We&#8217;re getting a similar thing to Kernel. Was working fine a couple of days ago, now we&#8217;re getting:</p>
<p>You cannot call a method on a null-valued expression.<br />
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:217 char:24<br />
+ $IM.Body.get_FirstChild &lt;&lt;&lt;&lt; ().get_Data()<br />
    + CategoryInfo          : InvalidOperation: (get_FirstChild:String) [], Ru<br />
   ntimeException<br />
    + FullyQualifiedErrorId : InvokeMethodOnNull</p>
<p>Attempted to divide by zero.<br />
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:220 char:20<br />
+     $jProgress = ($j / &lt;&lt;&lt;&lt;  $sourceXML.IMConversation.IM.Count) * 100<br />
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException<br />
    + FullyQualifiedErrorId : RuntimeException</p>
<p>Write-Progress : Cannot validate argument on parameter &#039;PercentComplete&#039;. The a<br />
rgument is null, empty, or an element of the argument collection contains a nul<br />
l value. Supply a collection that does not contain any null values and then try<br />
 the command again.<br />
At C:\Users\ben_b\Desktop\Get-ArchivingData.ps1:221 char:77<br />
+     Write-Progress -Activity &quot;Phase 2: Converting XML to HTML&quot; -PercentComple<br />
te &lt;&lt;&lt;&lt;  $jProgress -Status &quot;Progress:&quot; -CurrentOperation &quot;$j of $($sourceXML.I<br />
MConversation.IM.Count) messages completed.&quot;<br />
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBind<br />
   ingValidationException<br />
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power<br />
   Shell.Commands.WriteProgressCommand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kernel</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-954</link>
		<dc:creator>Kernel</dc:creator>
		<pubDate>Thu, 11 Mar 2010 19:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-954</guid>
		<description>Hi Scott, 

I tried the script and it errors out on me. The methmod .getData() doesn&#039;t appear to be working. Now when i use the .get_InnerText() method, it appears to get the body text. Any idea why this might be?

------------------------------------------------------------

You cannot call a method on a null-valued expression.
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:217 char:24
+ $IM.Body.get_FirstChild &lt;&lt;&lt;&lt; ().get_Data()
    + CategoryInfo          : InvalidOperation: (get_FirstChild:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
 
Attempted to divide by zero.
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:220 char:20
+     $jProgress = ($j / &lt;&lt;&lt;&lt;  $sourceXML.IMConversation.IM.Count) * 100
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException
 
Write-Progress : Cannot validate argument on parameter &#039;PercentComplete&#039;. The argument is null, empty, or an element of the argument collection co
ntains a null value. Supply a collection that does not contain any null values and then try the command again.
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:221 char:77
+     Write-Progress -Activity &quot;Phase 2: Converting XML to HTML&quot; -PercentComplete &lt;&lt;&lt;&lt;  $jProgress -Status &quot;Progress:&quot; -CurrentOperation &quot;$j of $(
$sourceXML.IMConversation.IM.Count) messages completed.&quot;
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.WriteProgressCommand
 
IM.html created in local directory</description>
		<content:encoded><![CDATA[<p>Hi Scott, </p>
<p>I tried the script and it errors out on me. The methmod .getData() doesn&#8217;t appear to be working. Now when i use the .get_InnerText() method, it appears to get the body text. Any idea why this might be?</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>You cannot call a method on a null-valued expression.<br />
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:217 char:24<br />
+ $IM.Body.get_FirstChild &lt;&lt;&lt;&lt; ().get_Data()<br />
    + CategoryInfo          : InvalidOperation: (get_FirstChild:String) [], RuntimeException<br />
    + FullyQualifiedErrorId : InvokeMethodOnNull</p>
<p>Attempted to divide by zero.<br />
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:220 char:20<br />
+     $jProgress = ($j / &lt;&lt;&lt;&lt;  $sourceXML.IMConversation.IM.Count) * 100<br />
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException<br />
    + FullyQualifiedErrorId : RuntimeException</p>
<p>Write-Progress : Cannot validate argument on parameter &#039;PercentComplete&#039;. The argument is null, empty, or an element of the argument collection co<br />
ntains a null value. Supply a collection that does not contain any null values and then try the command again.<br />
At C:\Get-ArchivingData-August-2009\Get-ArchivingData\newmodscript\Get-ArchivingData.ps1:221 char:77<br />
+     Write-Progress -Activity &quot;Phase 2: Converting XML to HTML&quot; -PercentComplete &lt;&lt;&lt;&lt;  $jProgress -Status &quot;Progress:&quot; -CurrentOperation &quot;$j of $(<br />
$sourceXML.IMConversation.IM.Count) messages completed.&quot;<br />
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBindingValidationException<br />
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.WriteProgressCommand</p>
<p>IM.html created in local directory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Fox</title>
		<link>http://www.flobee.net/update-to-ocs-archiving-script/comment-page-1/#comment-932</link>
		<dc:creator>Charles Fox</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.flobee.net/?p=471#comment-932</guid>
		<description>Nice work... a great enhancement over the original. Thank you for publishing this it has helped out a couple of folks I know

Chas</description>
		<content:encoded><![CDATA[<p>Nice work&#8230; a great enhancement over the original. Thank you for publishing this it has helped out a couple of folks I know</p>
<p>Chas</p>
]]></content:encoded>
	</item>
</channel>
</rss>

