Workspace Project Custom Field Web Part on different Site Collection?

Hello experts,
I'm working on a project site template in a SharePoint 2010 environment. My client wants project custom fields to be displayed on the Project Site homepage.
To accomplish this, I'm using the Solution Starter's Workspace Project Custom Field Web Part.
It works fine, as long as we create the project sites under the PWA site collection.
However, due to administrative reasons, we've decided to provision all project sites under a separate Site Collection, in a separate content database. In this case, we manage to add the webpart to the page, but as soon as we try to edit it, to configure
the visible Custom Fields, we get this error:
Server Error in '/' Application.
Unhandled Communication Fault occurred
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.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Unhandled Communication Fault occurred]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
WorkspaceProjectCFWP.WebSvcCustomFields.CustomFields.ReadCustomFieldsByEntity2(Guid entityUid) +181
WorkspaceProjectCFWP.Services.<>c__DisplayClass12.<GetCustomFields>b__11() +158
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +26839062
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +27885657
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +93
WorkspaceProjectCFWP.Services.CustomFieldsService.GetCustomFields() +208
WorkspaceProjectCFWP.Services.CustomFieldsService.GetAllProjectFields() +173
WorkspaceProjectCFWP.ProjectCFEditorPart.SyncChanges() +325
Microsoft.SharePoint.WebPartPages.ToolPane.OnSelectedWebPartChanged(Object sender, WebPartEventArgs e) +283
System.Web.UI.WebControls.WebParts.WebPartEventHandler.Invoke(Object sender, WebPartEventArgs e) +0
Microsoft.SharePoint.WebPartPages.SPWebPartManager.BeginWebPartEditing(WebPart webPart) +96
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ShowToolPaneIfNecessary() +579
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +296
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11146206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474 
Now, I've activated every possible feature, both on the Site Collection and Site level (or SPSite, SPWeb). Alas, no succes. Which brings me to these questions:
What might be causing this error? Can this be solved?
Are there any cases of working webparts of this kind in site collections other than PWA?
If this is a technical limitation, what are alternative options for me to display custom fields on a project site?
Link to the Solution Starters: http://archive.msdn.microsoft.com/P2010SolutionStarter

Hi
I did not use this solution starter, but it might be that the webpart just looks for a Project Server instance in the current site collection - and there is none.
You could use a SQL Reporting Services Report to show on the site to accomplish this. Either you would have to set the project as a parameter manually once for each site, or you could try to determine the project automatically using the URL.
Kind regards
Christoph
Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany

Similar Messages

  • Using Power Query to Update Project Custom Fields

    Is Power Query in Excel 2013 able to do Bi-directional updates for updating Enterprise Custom Project fields in PWA 2013?

    So to update data you would need to either use one of the following APIs:
    PSI
    CSOM
    JSOM
    JSOM REST
    Always try and use one of the client side API's if possible (PSI is a server side API). I'm not sure you will be able to do this via Excel though, I would look at a custom app , web part etc.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Report viewer web part, show different report everyday (rotate .rdl files)

    We have a report viewer web part on sharepoint site (intranet), which is working fine and showing the report (.rdl file).
    We want to show different report everyday by looping through a list of 4 or 5 important reports  (from sharepoint document library) that can be displayed on our intranet. We have limited space on the intranet to display the report (we have custom built
    reports that will fit in the allocated space).
    Our .net guy says he can do image rotations by custom web part but not sure how to use the .rdl files..
    Has anyone got any ideas on how to achieve this.

    We have a report viewer web part on sharepoint site (intranet), which is working fine and showing the report (.rdl file).
    We want to show different report everyday by looping through a list of 4 or 5 important reports  (from sharepoint document library) that can be displayed on our intranet. We have limited space on the intranet to display the report (we have custom built
    reports that will fit in the allocated space).
    Our .net guy says he can do image rotations by custom web part but not sure how to use the .rdl files..
    Has anyone got any ideas on how to achieve this.

  • Creating an SQL Query for Project Custom Fields Values

    Hello:
    I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
    So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
    SELECT
    MSP_PROJECTS.PROJ_NAME,
    MSP_CUSTOM_FIELDS.MD_PROP_NAME,
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
    FROM
    MSP_PROJ_CUSTOM_FIELD_VALUES
    INNER JOIN
    MSP_CUSTOM_FIELDS
    ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    INNER JOIN
    MSP_PROJECTS
    ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
    WHERE
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
    ORDER BY
    MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
    field has NULL value when CODE_VALUE field isn't NULL)
    Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
    Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
    Awaiting your kind reply,
    Sebastián Armas PMO Project Manager

    Hi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data.  Take a look at the ProjTool sample in the SDK whcih gets this data.
    Best regards,
    Brian.
    Blog |
    Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • Custom Login Web Part In SharePoint 2010 Forms Based

    Hi ,
    Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done . 
    my question is why (Login1.username , Login1.password ) give this error : 
     login1 does not exist in the current context
    protected
    void
    Login1_Authenticate(object
    sender, AuthenticateEventArgs e)
    02        {
    03            string
    membership = "MembershipProvider";
    04            string
    role = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(new
    Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if
    (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(new
    Uri(SPContext.Current.Web.Url), membership, role,
    Login1.UserName,
    Login1.Password);

    Error 1 No overload for method 'SecurityTokenForFormsAuthentication' takes 3 arguments
    Error 2 The name Wss doesnot exisit in current context 
    Can anyone give sugeestion please 
    cant recitfy this error 
    protected void Login1_Authenticate(object sender,
    AuthenticateEventArgs e)
    02        {
    03            string membership
    = "MembershipProvider";
    04            string role
    = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(newUri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(newUri(SPContext.Current.Web.Url),
    membership, role,
    Login1.UserName,
    Login1.Password);

  • Newby question: I have a report that is featured and is available for Q&A and now I want to display this functionality in a web part of a site...

    Hi,
    I have a report that is featured and is available for Q&A and now I want to display this functionality in a web part of a site.
    I am using a trial right now, so I am not sure if I have all the necessary licences, but I am really new to this subject so a link to msdn page or blog item might already do the trick.
    This is what I have right now: 
    https://www.youtube.com/watch?v=rV2_m4iWxSE
    Thanks

    No that is not currently available. 
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to publish an Admin-Approved InfoPath template to 2 different site collections, and retain same internal column names

    Hi,
    I am wondering how best to publish an InfoPath form as an Admin-Approved template, to both Site Collection 1 (SC1) and Site Collection 2 (SC2). Some fields are promoted to SharePoint columns.
    I have already published my form to SC1, by choosing Publish to SharePoint Server > chose SC1 > Admin-approved > chose to publish to columns I had created manually on SC1 (these columns had relatively user-friendly internal names such
    as 'Form_x0020_Status' etc, which I reference in xsl + code). I then uploaded the template in Central Admin as Admin-Approved, and activated the feature on SC1. This all worked fine.
    However, if I then go to activate the feature on SC2, it creates columns with different internal names (GUIDs), which means my xsl + code won't work. If I try creating columns manually on SC2 before publishing, it still creates new GUID columns.
    This of course must be because on feature activation on SC2, it cannot find the exact columns specified in the template (which was published to SC1), so it creates new ones.
    In that case, what is the best way to publish an Admin-Approved template to 2 different site collections? One option is to create the columns using code, and deploy them to both sites as a feature, ensuring all IDs are the same. But should this be necessary, is
    there any option available using only InfoPath and SharePoint?
    Thanks for reading.

    Check these similar threads
    Republish
    existing InfoPath Form to a different SharePoint Site
    How
    to Programmatically Publish an InfoPath 2010 Template (.xsn) to Multiple SharePoint Sites
    Hope it will help
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Template.xsn. Access to locations on different site collections is blocked for security reasons

    I am using sharepoint 2010 onpremise.
    I created a custom list, content type and columns. After this I go to the list and click on the infopath button in the ribbon to customize the form. I changed the form and published to the server.
    Now I get this error when I go to some page where I have added a infopath webpart:
    The following location is in a different site collection:
    http://www.myCompany.nl/someSubsite/Lists/VraagEnAntwoord/VraagEnAntwoord/template.xsn. Access to locations on different site collections is blocked for security reasons. For more information, contact your site administrator.
    This website has anonymous access.
    I have googled and found many people with this problem, but I dont find some solution. Someone talk about create a template from infopath and then publish it to a content type. I dont understand this solution. Can someone help?

    You are actually running an older version of Firefox (8). You should update to Firefox 9.0.1 and see if that helps

  • SharePoint Workflow - Update Item in a different Site Collection

    We have a requirement where if an approver approves an item (say in List 1 in Site Collection A), a certain Date column has to be updated on another item which is on a different site collection (say in List 2 in Site Collection B). I think I cannot use a
    SharePoint Designer(SPD) workflow in this scenario as SPD Workflows cannot access an item in a different Site Collection.
    I can think of 2 approaches -
    Approach A - Create a workflow in Visual Studio which initiates an approval workflow when an item is added to List 1. If the item is approved, update the corresponding related item in Site Collection 2. Can I do this? Can a Visual Studio workflow access
    item in a different site collection? Both Site Collections are in the same web application.  
    Approach B - The other approach is to create a SPD workflow for approval and create an Event Receiver on the same list which updates the date in the related item on a different site when the items stats is approved.
    I feel approach A is better if can be done as we a single workflow taking care of the entire process. Please let me know if this can be done using a VS workflow. Any other approaches are also welcome.
    Thanks in advance.

    Haven't tried myself, but it could be worth trying out the Call Web Service Action in SPD and update the list in the other site collection with a REST Call.
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/05/how-to-work-with-web-service-using-call-http-web-service-action.aspx
    Kind Regards
    Bjoern
    http://www.sharepointviking.com
    Twitter: Follow @bjoern_rapp

  • The following location is not accessible, because it is in a different site collection

    Hi,
    I have an InfoPath full trust form which has been uploaded to the Central Administration. I activated the form in a Form Library using Content Management. Unfortunately, when I try to load the InfoPath form in the public machine, it throws for the error below:
    The following location is not accessible, because it is in a different site collection: http://109.91.111.45:8080/sites/sbc/Success/Forms/AllItems.aspx.
    Can someone please help?

    Please read the below scenario may be what LarsLL & Derek are referring to.
    For Example:
    Consider a Farm where we have one App server & one WFE. If we create a Web Application  in App Server the url will be like
    http://<<appServerName>>:12345/
    We can access the site using the WFE name also like this
    http://<<WFE ServerName>>:12345/ but when the user tries to access the form from this site we may get this error.
    To resolve this create an Alternate Access Mapping for the site at
    http://<<WFE ServerName>>:12345/ to ensure this site can be resolved by InfoPath.
    Cause:
    This happens when InfoPath tries to load the Form. It would try to verify if the Site collection exists. Read the article here
    http://support.microsoft.com/kb/981854 for more information.

  • WSP Package Deployment to a Different site collection

    Hi All,
    I have 2 different site collections on one web application , while deploying the WSP package iam not able to see the new sitecollection i have created in the dropdown selection list.
    Please advise if iam missing anything or advice if we have powershell commands to deploy directly to the diff site collection.
    thanks.SS

    I am assuming that you want to deploy sandbox solutions, then you can use Add-SPUserSolution and Install-SPUserSolution
    powershell commands to add and deploy the WSP to a specific site collection
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-deploy-a-sandbox-solution-using-powershell-in-sharepoint-2010/
    If it is a FARM solution (not specific to site collection, it will always get deployed to web application or globally deployed), you can use Add-SPSolution and Install-SPSolution
    commands
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to create link of a document in a different library (in different site collection) - programmatically

    Hi,
    am trying to create link of a document in a different library (in different site collection) using SharePoint Link a document Content type approach. i have already tested this manually.  
    As per my requirement i need to implement this approach through code.
    If anyone has implemented link a document approach through code, please share your inputs.
    help is highly appreciated!
    thanks

    Check if below helps:
    http://blogs.msdn.com/b/cliffgreen/archive/2008/06/23/creating-a-link-to-a-document-item-in-a-sharepoint-document-library-programmatically.aspx
    http://stackoverflow.com/questions/15625448/create-a-link-to-a-document-in-a-sharepoint-shared-document-list-using-powersh

  • Master page changes in different site collection.

     Hi,
    I have one requirement for master page changes. i have two site collections ABC and XYZ , When navigate sites the master page  it will changes automatically. how to develop this requirement.

    Is your requirement is to have different master page for different site collection. If so, refer to the following posts for more information
    http://sharepoint.stackexchange.com/questions/94216/how-to-deploy-masterpage-to-entire-site-collection
    https://support.office.com/en-in/article/Customize-a-master-page-to-brand-your-site-0a57b837-4c97-4af9-a088-fedf3dfd1dd5
    Cheers,

  • Project Web App (PWA)/Sharepoint 2013: is there any way to display two different views of the Project Center PWA web part to the same user in a site collection?

    i want some of my users to see all the projects in the Project Center at my top-level site, and those same users to see only the projects they own at a subsite level in Project Center. that way they could see an 'all project' view on the homepage and only
    their projects on their dashboard pages (which also have an instance of Project Center web part on them). i have searched and searched but cannot find a solution to this. is there any way to acheive this functionality? thanks in advance for your assistance!

    I have tried this in the past, but was not successful, as far as I can recall. Once you access the project center webpart in one page, the view will be retained regardless where you see it again. (until you apply a different view or clear your browser cache). 
    May be an easier solution is to display a 'report' on the home page with ALL projects (much easier to do), and use the Project Center webpart for the My projects view as it is easier to achieve via Project Server Security, than a report.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Web Part showing different result in different regions

    Hi All,
            We have a
    stock  web-part which is integrated into our SharePoint site . And this stock web-part is showing different result in different regions .As the output of the web-part is perfect in India,US,UK and working quite opposite in Singapore,china and Malaysia.Can
    any one help me how can I solve the issue
    Samar

    Hi Samar,
    As the stock web part is a custom web part, we cannot know how it works. For this issue, I suggest you ask the web part developers or support for help.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How to disable size button in a JINternalFrame

    how to disable the middle button in a JInternalFrame the one between iconify button and close button thanx

  • Failing to update applicatio​ns?

    Hey, I've got a Tour, and have just downloaded Desktop for Mac.  I'm getting the following error when I try to manipulate/update applications: Blackberry Desktop Manager failed to validate your Blackberry device update. Validation failed because a mo

  • Ipod update icon deosnt pop up

    I have problem with updating my ipod after restore it, it shows a folder icon, and try to format the ipod, it didnt work. everytime i try to update it, the updated folder pop up but the restore button only show up, the update button went blank, so i

  • In transfer rules dont see any custom fields

    Hi All, I have master data WBS element. I am trying to write ABAP routine for perticular Z characteristic. But i dont see any "Z" fields in the field selection list ... any clue ?

  • Condition EK01 is missing in pricing procedure A V  when creating  DP90

    dear experts, I am generating the invoice with the help of DP90,here my issue is in PM side in service order IW51 in header data in customer address we are giving sold to party as xyzzzz and we are saving and this will flow up to DP90,from dp90 it wi