Sync SQL to SharePoint List

Jul 28, 2010 at 4:12 PM

I got the following error when trying to update list from database within the same domain using SPLISTSYNC

New-Object : Exception calling ".ctor" with "1" argument(s): "The type initializer for 'Microsoft.SharePoint.CoreResour
ce' threw an exception."
At C:\SPListSync\SPListSync.ps1:94 char:24
+ $spSite = new-object <<<< Microsoft.SharePoint.SPSite($siteurl)
You cannot call a method on a null-valued expression.
At C:\SPListSync\SPListSync.ps1:96 char:28
+ $spWeb = $spSite.OpenWeb( <<<< $webName)
Cannot index into a null array.
At C:\SPListSync\SPListSync.ps1:99 char:33
+ $spListChilds = $spWeb.Lists[$ <<<< ChildslistName]
Exception calling "Fill" with "1" argument(s): "Incorrect syntax near 'dbo'."
At C:\SPListSync\SPListSync.ps1:112 char:18
+ $SqlAdapter.Fill( <<<< $DataSet)
Unable to index into an object of type System.Data.DataTableCollection.
At C:\SPListSync\SPListSync.ps1:116 char:37
+ $filteredParents = $DataSet.Tables[0 <<<< ] | select * | out-datatable
Attempted to divide by zero.
At C:\SPListSync\SPListSync.ps1:131 char:15
+ $astep=100/$ <<<< filteredParents.Count

Iam a new bee to powershell scripting

Can somebody please help