Export/Import WebParts
Hello,
I am under SCCM Dashboard > Site Action > Site Settings > Web parts...
I found from the Edit Page > Edit the export to .webpart in folder /download ActiveAlerts_xml.webpart
Then I am doing the import
http://community.bamboosolutions.com/blogs/sharepoint_blank/archive/2009/01/08/how-to-export-amp-import-web-parts-in-sharepoint.aspx
I am getting a message...
Please specify which data set to display in this Dashboard Viewer Web Part by clicking on Edit, on the Web part title bar. In the Edit menu, click Modify Shared Web Part. In the Dashboard Viewer Web Part properties pane, click Select data set configuration.
In the drop-down list, select the data set to display in this Web part, and then click OK.
If I try to import the same webpart file on the original page it works fine...
I verified that the:
Open the web page > Site Action > Edit Page > Modified Shared Web Part
Select dataset configuration
Advanced
Export Mode: Export All Data
Import Error Message: Cannot Import this webpart
What should be the size of the webpart file exported? All of them are 2KB and contains only basic information I do not see link to the datasets, the graph type...
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.DashboardFramework.Components.ViewerWebpart, Microsoft.DashboardFramework.Components, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="AllowZoneChange" type="bool">True</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="HelpUrl" type="string" />
<property name="Hidden" type="bool">False</property>
<property name="TitleUrl" type="string" />
<property name="Description" type="string" />
<property name="AllowHide" type="bool">True</property>
<property name="DataConfigurationName" type="string">ActiveAlerts.xml</property>
<property name="AllowMinimize" type="bool">True</property>
<property name="Title" type="string">ActiveAlerts.xml</property>
<property name="ChromeType" type="chrometype">BorderOnly</property>
<property name="AllowConnect" type="bool">True</property>
<property name="Width" type="unit" />
<property name="Height" type="unit" />
<property name="HelpMode" type="helpmode">Navigate</property>
<property name="CatalogIconImageUrl" type="string" />
<property name="AllowEdit" type="bool">True</property>
<property name="TitleIconImageUrl" type="string" />
<property name="Direction" type="direction">NotSet</property>
<property name="AllowClose" type="bool">True</property>
<property name="ChromeState" type="chromestate">Normal</property>
</properties>
</data>
</webPart>
</webParts>
Does this mean I have to recreate all datasets and webparts graphs... for each individual sites even they contains the exact same queries and exact same pies, gauge...
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
April 22nd, 2011 3:14am
I Export webpart from Site Actions > Site Settings > web parts ... then import into webpart page witout any problem.
I suggest you read this thread:
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/8fe8e85c-f51c-4480-854c-10e9a146d162
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2011 5:06am
I Export webpart from Site Actions > Site Settings > web parts ... then import into webpart page witout any problem.
I suggest you read this thread:
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/8fe8e85c-f51c-4480-854c-10e9a146d162
April 23rd, 2011 12:04pm
It is what I did but apparenlty this does not work all the times. There are conditions to meet for the two pages to be able to work.
I did with several pages, several sites and none works so far. I think one main condition during the save, the export is blocking the import to work properly. If you see the xml attached earlier I don't see any trace of the dataset, etc... for this webpart.
When doing export webpart should something else exported at the same time?
How should be the webpart xml content?
I check the thread
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/8fe8e85c-f51c-4480-854c-10e9a146d162
but I don't have any error during the importnit is just importing an empty file... it is why I am thinking that the .webpart file exported is incomplete.
I don't use any code as the export/import is done through the UI.
I saw also that the thread is unresolved with a question in the last post "what did I miss?"... same as me
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2011 4:09pm
It is what I did but apparenlty this does not work all the times. There are conditions to meet for the two pages to be able to work.
I did with several pages, several sites and none works so far. I think one main condition during the save, the export is blocking the import to work properly. If you see the xml attached earlier I don't see any trace of the dataset, etc... for this webpart.
When doing export webpart should something else exported at the same time?
How should be the webpart xml content?
I check the thread
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/8fe8e85c-f51c-4480-854c-10e9a146d162
but I don't have any error during the import it is just importing an empty file... it is why I am thinking that the .webpart file exported is incomplete. The frame (webpart name is populated) but the dataset is empty and even does not seem to exist!!
Should it be imported by itself?
I don't use any code as the export/import is done through the UI.
I saw also that the thread is unresolved with a question in the last post "what did I miss?"... same as me
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
April 23rd, 2011 4:10pm
Hi,
According to your description, in my limited experience, the issue will be to get the web part to play well
with the other features in SharePoint, like editing in datasheets, using excel to import and export, and so on. That the web service is not Microsoft web
Services Extensions 2 per se threw me off originally, but now that I know the problem is in the webservices section of the web.config file, I will be taking
a closer look at this article:
http://www.networksteve.com/enterprise/topic.php/WSE_is_causing_the_Excel_cannot_connect_to_the_SharePoint_List_e/?TopicId=2766&Posts=0
Which points to using “remove type” in a “location path” in the web.config
file. I’ll be experimenting with how to implement that in a way that works for our issue.
Best Regards
David Hu
Free Windows Admin Tool Kit Click here and download it now
April 24th, 2011 10:51pm
Thanks David I will review the web.config file.
My main issue for now is between various pages inside the same web site in Sharepoint/System Center Configuration Manager-Dashboard.
the two URLs are http://sopscomdb1:12345/default.aspx and
http://sopscomdb1:12345/Dashboards/PingStatus/default.aspx
Thanks again,
DomSystem Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
April 25th, 2011 12:19am
Check this article it will help you to resolve this error:
http://sharepoint-server-recovery.blogspot.com/2010/12/how-to-reslove-sharepoint-error-cannot.html
Free Windows Admin Tool Kit Click here and download it now
April 25th, 2011 6:14am
Check this article it will help you to resolve this error:
http://sharepoint-server-recovery.blogspot.com/2010/12/how-to-reslove-sharepoint-error-cannot.html
I do not have any error, it just import an empty file...
Thanks,
DomSystem Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
April 25th, 2011 10:42am
I do not have any error, it just import an empty file...
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
Free Windows Admin Tool Kit Click here and download it now
April 25th, 2011 5:41pm
?bump?System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
April 28th, 2011 1:08pm
I tried again and it fails again...
Any idea?
Thanks,
DomSystem Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2011 4:55pm
Hello,
Still failing!!!
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 27 May 2011 00:40:11 UTC
Message: 'document.getElementById(...)' is null or not an object
Line: 734
Char: 200
Code: 0
URI: http://sopscomdb1:12345/Opmgr2/default.aspx?PageView=Shared
or
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 27 May 2011 00:43:09 UTC
Message: Access is denied.
Line: 598
Char: 13
Code: 0
URI: http://opmgrrms1:51908/Script/Common.js
Any idea?
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
May 26th, 2011 8:40pm
Hello,
Still failing!!!
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 27 May 2011 00:40:11 UTC
Message: 'document.getElementById(...)' is null or not an object
Line: 734
Char: 200
Code: 0
URI: http://sopscomdb1:12345/Opmgr2/default.aspx?PageView=Shared
or
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 27 May 2011 00:43:09 UTC
Message: Access is denied.
Line: 598
Char: 13
Code: 0
URI: http://opmgrrms1:51908/Script/Common.js
Any idea?
Thanks,
Dom
System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2011 8:40pm
Finally I am able to export/import webpart...
What about the datasets now... ?
Afetr installing the imported webpart it asks me to select the dataset but apparently there is none available????
Thanks,
DomSystem Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
June 30th, 2011 9:03pm