Forums

Forums / Bugs & Issues / Error Creating New Portal through CRM

Error Creating New Portal through CRM

Thread is closed for posting
2 posts, 1 answered
  1. pc
    pc avatar
    5 posts
    Registered:
    22 Oct 2015
    22 Dec 2015
    Link to this post
    The Portal Connector v3.1.8259.133
    Sitefinity 8.2.5900.0 Professional Edition
    Internet Explorer 11

    This is a brand new installation. 
    I try to add a new portal through CRM according to this link.
    http://www.crmportalconnector.com/developer-network/documentation/tpc-configuration-quick-start#AddingaPortalRecord

    I entered the following and hit the save button.
    Name: membership
    Portal URL: portal.conceptdynamics.zone

    I got the following error right after I hit the save button

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): pavliks.PortalConnector.Plugins.PostPortalCreate: System.Exception: Error
    //
    function Errors(){this.reportSubject = 'Error Report'; }
    //.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.png?id=183128A3C941EDE3D9199FA37D6AA90E0A7DFE101B37D10B4FEDA0CF35E11AFD);}JavaScript requiredJavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled.To find out if your web browser supports JavaScript or to enable JavaScript, see web browser help.
             document.getElementById("noScript").style.display = "none";
        
                        Concept Computer Corporation Login Page
                    
                An error occurred 
            
                An error occurred. Contact your administrator for more information. 
            Error detailsActivity ID: 00000000-0000-0000-fadf-0080000000bdError time: Tue, 22 Dec 2015 19:42:23 GMT
                //
                function ERR() {
                }
                ERR.report = function (email) {
                    var errors = new Errors();

                    var body_message = '';
                    var activityID = document.getElementById('activityID').innerText;
                    var details = document.getElementById('errorDetails');
                    if (details && details.childElementCount > 0)
                    {
                        var children = details.childNodes;
                        for (var i = 0; i < children.length; i++) {
                            if (children[i].innerText && children[i].innerText != '') {
                                body_message = body_message + children[i].innerText + "%0A";
                            }
                        };
                    }
                    var mailto_link = 'mailto:' + email + '?subject=' + errors.reportSubject + " " + activityID + '&body=' + body_message;
                    window.location = mailto_link;
                }
                ERR.showDetails = function () {
                    var node = document.getElementById('errorDetails');
                    if (node) {
                        node.style.display = (node.style.display == 'none') ? '' : 'none';
                    }
                }
                ERR.addDetail = function (text) {
                    var detail = document.createElement('li');
                    detail.innerText = text;
                    return detail;
                }
                ERR.addAgentDetails = function () {
                    var node = document.getElementById('errorDetails');
                    node.insertAdjacentElement('beforeEnd', ERR.addDetail('Cookie: ' + (navigator.cookieEnabled ? 'enabled' : 'disabled')));
                    node.insertAdjacentElement('beforeEnd', ERR.addDetail('User agent string: ' + navigator.userAgent));
                }();
            //© 2013 Microsoft
    //
    // Copyright (c) Microsoft Corporation.  All rights reserved.

    // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
    "use strict";

    // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
    // Note change input type does not work on all versions of all browsers.
    if (navigator.userAgent.match(/iPhone/i) != null) {
        var emails = document.querySelectorAll("input[type='email']");
        if (emails) {
            for (var i = 0; i < emails.length; i++) {
                emails[i].type = 'text';
            }
        }
    }

    // In the CSS file we set the ms-viewport to be consistent with the device dimensions, 
    // which is necessary for correct functionality of immersive IE. 
    // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
    // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
    // Windows 8 phone has agent string 'IEMobile 10.0'
    if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
        var msViewportStyle = document.createElement("style");
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{width:auto!important}"
            )
        );
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{height:auto!important}"
            )
        );
        document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
    }

    // If the innerWidth is defined, use it as the viewport width.
    if (window.innerWidth && window.outerWidth && window.innerWidth !== window.outerWidth) {
        var viewport = document.querySelector("meta[name=viewport]");
        viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
    }

    // Gets the current style of a specific property for a specific element.
    function getStyle(element, styleProp) {
        var propStyle = null;

        if (element && element.currentStyle) {
            propStyle = element.currentStyle[styleProp];
        }
        else if (element && window.getComputedStyle) {
            propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
        }

        return propStyle;
    }

    // The script below is used for downloading the illustration image 
    // only when the branding is displaying. This script work together
    // with the code in PageBase.cs that sets the html inline style
    // containing the class 'illustrationClass' with the background image.
    var computeLoadIllustration = function () {
        var branding = document.getElementById("branding");
        var brandingDisplay = getStyle(branding, "display");
        var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");

        if (brandingDisplay && brandingDisplay !== "none" &&
            brandingWrapperDisplay && brandingWrapperDisplay !== "none") {
            var newClass = "illustrationClass";

            if (branding.classList && branding.classList.add) {
                branding.classList.add(newClass);
            } else if (branding.className !== undefined) {
                branding.className += " " + newClass;
            }
            if (window.removeEventListener) {
                window.removeEventListener('load', computeLoadIllustration, false);
                window.removeEventListener('resize', computeLoadIllustration, false);
            }
            else if (window.detachEvent) {
                window.detachEvent('onload', computeLoadIllustration);
                window.detachEvent('onresize', computeLoadIllustration);
            }
        }
    };

    if (window.addEventListener) {
        window.addEventListener('resize', computeLoadIllustration, false);
        window.addEventListener('load', computeLoadIllustration, false);
    }
    else if (window.attachEvent) {
        window.attachEvent('onresize', computeLoadIllustration);
        window.attachEvent('onload', computeLoadIllustration);
    }

    //Detail: 
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220956</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Unexpected exception from plug-in (Execute): pavliks.PortalConnector.Plugins.PostPortalCreate: System.Exception: Error
    //
    function Errors(){this.reportSubject = 'Error Report'; }
    //.illustrationClass {background-image:url(/adfs/portal/illustration/illustration.png?id=183128A3C941EDE3D9199FA37D6AA90E0A7DFE101B37D10B4FEDA0CF35E11AFD);}JavaScript requiredJavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled.To find out if your web browser supports JavaScript or to enable JavaScript, see web browser help.
             document.getElementById("noScript").style.display = "none";
        
                        Concept Computer Corporation Login Page
                    
                An error occurred 
            
                An error occurred. Contact your administrator for more information. 
            Error detailsActivity ID: 00000000-0000-0000-fadf-0080000000bdError time: Tue, 22 Dec 2015 19:42:23 GMT
                //
                function ERR() {
                }
                ERR.report = function (email) {
                    var errors = new Errors();

                    var body_message = '';
                    var activityID = document.getElementById('activityID').innerText;
                    var details = document.getElementById('errorDetails');
                    if (details &amp;&amp; details.childElementCount &gt; 0)
                    {
                        var children = details.childNodes;
                        for (var i = 0; i &lt; children.length; i++) {
                            if (children[i].innerText &amp;&amp; children[i].innerText != '') {
                                body_message = body_message + children[i].innerText + "%0A";
                            }
                        };
                    }
                    var mailto_link = 'mailto:' + email + '?subject=' + errors.reportSubject + " " + activityID + '&amp;body=' + body_message;
                    window.location = mailto_link;
                }
                ERR.showDetails = function () {
                    var node = document.getElementById('errorDetails');
                    if (node) {
                        node.style.display = (node.style.display == 'none') ? '' : 'none';
                    }
                }
                ERR.addDetail = function (text) {
                    var detail = document.createElement('li');
                    detail.innerText = text;
                    return detail;
                }
                ERR.addAgentDetails = function () {
                    var node = document.getElementById('errorDetails');
                    node.insertAdjacentElement('beforeEnd', ERR.addDetail('Cookie: ' + (navigator.cookieEnabled ? 'enabled' : 'disabled')));
                    node.insertAdjacentElement('beforeEnd', ERR.addDetail('User agent string: ' + navigator.userAgent));
                }();
            //© 2013 Microsoft
    //
    // Copyright (c) Microsoft Corporation.  All rights reserved.

    // This file contains several workarounds on inconsistent browser behaviors that administrators may customize.
    "use strict";

    // iPhone email friendly keyboard does not include "\" key, use regular keyboard instead.
    // Note change input type does not work on all versions of all browsers.
    if (navigator.userAgent.match(/iPhone/i) != null) {
        var emails = document.querySelectorAll("input[type='email']");
        if (emails) {
            for (var i = 0; i &lt; emails.length; i++) {
                emails[i].type = 'text';
            }
        }
    }

    // In the CSS file we set the ms-viewport to be consistent with the device dimensions, 
    // which is necessary for correct functionality of immersive IE. 
    // However, for Windows 8 phone we need to reset the ms-viewport's dimension to its original
    // values (auto), otherwise the viewport dimensions will be wrong for Windows 8 phone.
    // Windows 8 phone has agent string 'IEMobile 10.0'
    if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
        var msViewportStyle = document.createElement("style");
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{width:auto!important}"
            )
        );
        msViewportStyle.appendChild(
            document.createTextNode(
                "@-ms-viewport{height:auto!important}"
            )
        );
        document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
    }

    // If the innerWidth is defined, use it as the viewport width.
    if (window.innerWidth &amp;&amp; window.outerWidth &amp;&amp; window.innerWidth !== window.outerWidth) {
        var viewport = document.querySelector("meta[name=viewport]");
        viewport.setAttribute('content', 'width=' + window.innerWidth + 'px; initial-scale=1.0; maximum-scale=1.0');
    }

    // Gets the current style of a specific property for a specific element.
    function getStyle(element, styleProp) {
        var propStyle = null;

        if (element &amp;&amp; element.currentStyle) {
            propStyle = element.currentStyle[styleProp];
        }
        else if (element &amp;&amp; window.getComputedStyle) {
            propStyle = document.defaultView.getComputedStyle(element, null).getPropertyValue(styleProp);
        }

        return propStyle;
    }

    // The script below is used for downloading the illustration image 
    // only when the branding is displaying. This script work together
    // with the code in PageBase.cs that sets the html inline style
    // containing the class 'illustrationClass' with the background image.
    var computeLoadIllustration = function () {
        var branding = document.getElementById("branding");
        var brandingDisplay = getStyle(branding, "display");
        var brandingWrapperDisplay = getStyle(document.getElementById("brandingWrapper"), "display");

        if (brandingDisplay &amp;&amp; brandingDisplay !== "none" &amp;&amp;
            brandingWrapperDisplay &amp;&amp; brandingWrapperDisplay !== "none") {
            var newClass = "illustrationClass";

            if (branding.classList &amp;&amp; branding.classList.add) {
                branding.classList.add(newClass);
            } else if (branding.className !== undefined) {
                branding.className += " " + newClass;
            }
            if (window.removeEventListener) {
                window.removeEventListener('load', computeLoadIllustration, false);
                window.removeEventListener('resize', computeLoadIllustration, false);
            }
            else if (window.detachEvent) {
                window.detachEvent('onload', computeLoadIllustration);
                window.detachEvent('onresize', computeLoadIllustration);
            }
        }
    };

    if (window.addEventListener) {
        window.addEventListener('resize', computeLoadIllustration, false);
        window.addEventListener('load', computeLoadIllustration, false);
    }
    else if (window.attachEvent) {
        window.attachEvent('onresize', computeLoadIllustration);
        window.attachEvent('onload', computeLoadIllustration);
    }

    //</Message>
      <Timestamp>2015-12-22T19:42:23.4415662Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText>

    [pavliks.PortalConnector.Plugins: pavliks.PortalConnector.Plugins.PostPortalCreate]
    [c37058d2-8049-e411-a3f4-00155d11101d: pavliks.PortalConnector.Plugins.PostPortalCreate: Create of pav_portal]

    Entered pavliks.PortalConnector.Plugins.PostPortalCreate.Execute(), Correlation Id: 1b690810-2163-42b6-9820-39d1df018c6a, Initiating User: de48b2c3-3141-e511-80cf-00155d14c910
    pavliks.PortalConnector.Plugins.PostPortalCreate is firing for Entity: pav_portal, Message: Create, Correlation Id: 1b690810-2163-42b6-9820-39d1df018c6a, Initiating User: de48b2c3-3141-e511-80cf-00155d14c910
    Exiting pavliks.PortalConnector.Plugins.PostPortalCreate.Execute(), Correlation Id: 1b690810-2163-42b6-9820-39d1df018c6a, Initiating User: de48b2c3-3141-e511-80cf-00155d14c910


    </TraceText>
    </OrganizationServiceFault>
  2. Missing user
    Missing user avatar
    Answered
    04 Jan 2016 in reply to pc
    Link to this post
    Hi PC,

    Judging from the error you have provided, it looks as if you might have the incorrect URL for your Portal set in CRM. A​nother reason for this error could be that CRM ​does not have the correct permissions to access Sitefinity.

    Ensure that CRM has the correct permissions, and let us know if you're experiencing the same problem.

    Kind Regards,

    Chris Rooney.
2 posts, 1 answered