FAQ web form throws - Cannot render container ERROR

Hi All,
I used FAQ web form to create a web page. In the FAQ web form i had given link to some document and also some internal links.
After saving the web form and previewing did not throw any eror. But when attached to a role and accessed the page.. getting
this ERROR  "  Cannot render container : An error occurred while loading the document from the resource content ".
Can somebody tell me the reason for this .??
Regards,
Archana.

Hi Archana,
I have faced the same error like you. The /etc repository is not working. Please check whether the network share used by this repository is available. You can check also SAP Note 1178294 regarding /etc repository in cluster environment. The /etc repository is used by the XML forms. In your case, you used FAQ web form to create web page and the form is built using XML form.
Good luck!!!
Regards,
Faeza
Edited by: norfaeza mat noor on Jul 9, 2009 1:59 AM

Similar Messages

  • WPC - Custom Web Form - Cannot render container

    Hello!
    I've created custom web form for WPC (wpc_utg_sitelink) and gone through customizing provided in
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7&overridelayout=true]
    It looks fine at designtime.
    In runtime i get following:
    Cannot render container : Could not load stylesheet.com.sap.engine.lib.xml.util.
    NestedException: Error parsing query. -> java.lang.ArrayIndexOutOfBoundsException
    are there errors in my wpc_utg_sitelink.xsl file syntax?
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <span>
    <xsl:if test="starts-with(document/elements/element[@type='image'],'/')"></xsl:if>
    <h2>
    <a>
    <xsl:if test="string-length(document/elements/element[@type='itemlink']/@rid)!=0">
    <xsl:attribute name="href">
    <xsl:value-of select="wpc:getAccessLink(string(document/elements/element[@type='itemlink']/@rid))"/>
    </xsl:attribute>
    <xsl:if test="document/elements/element[@type='itemlink']/@targetnew='true'">
    <xsl:attribute name="target"> new </xsl:attribute>
    </xsl:if>
    </xsl:if>
    <xsl:value-of select="document/elements/element[@type='title']" disable-output-escaping="yes"/>
    </a>
    <xsl:if test="document/properties/property[@type='isnew']/@value)='true'">
    <span>New!</span>
    </xsl:if>
    </h2>
    <p>
    <xsl:value-of select="document/elements/element[@type='text']" disable-output-escaping="yes"/>
    </p>
    </span>
    </xsl:template>
    </xsl:stylesheet>
    Or may be some problems in customizing?
    Thanks!
    Edited by: Ivan O. Ivanov on Sep 21, 2009 5:15 PM

    solved!

  • WPC Error- Cannot render container : An error occurred while loading the do

    Dear All
    we are on SP13 / EP 7 ..we have created sites using WPC and when we try to trasnport with GUIDSs we got to know that SP13 does not suport GUIDs ..so i have deplyoed SP14 WPC abd the interfase looks differnt and it gives erros ..again i undeployed the SP14 WPC and deployed the SP13 WPC , after that interfase looks ok but we are getting an error in when we try to edit pages through WPC..
    following messgae appera when we open up a page to edit in WPC
    Cannot render container : An error occurred while loading the document from the resource content
    we found this exception in error log in Server..
    couldn't retrieve contents with id -1 com.sapportals.wcm.util.content.ContentException: couldn't retrieve contents with id -1
    #1.5 #00145ECC9C6700780000002500000B80000463656B4E6BC6#1235187149283#com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent#sap.com/irj#com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent.getInputStream(142)#myadmin#224##myportalci.keells_JPP_15308650#myadmin#212fdd70ffc811dda6de00145ecc9c67#SAPEngine_Application_Thread[impl:3]_24##0#0#Warning##Plain###Couldn't read content with ID -1. Select again...#
    #1.5 #00145ECC9C6700780000002600000B80000463656B4E78E6#1235187149283#com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream#sap.com/irj#com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream#myadmin#224##myportalci.keells_JPP_15308650#myadmin#212fdd70ffc811dda6de00145ecc9c67#SAPEngine_Application_Thread[impl:3]_24##0#0#Warning##Plain###couldn't retrieve contents with id -1#
    #1.5 #00145ECC9C6700780000002700000B80000463656B4E812B#1235187149283#com.sapportals.wcm.WcmException#sap.com/irj#com.sapportals.wcm.WcmException.WcmException(62)#myadmin#224##myportalci.keells_JPP_15308650#myadmin#212fdd70ffc811dda6de00145ecc9c67#SAPEngine_Application_Thread[impl:3]_24##0#0#Error##Plain###couldn't retrieve contents with id -1 com.sapportals.wcm.util.content.ContentException: couldn't retrieve contents with id -1
         at com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream.getInternalStream(DBContentInputStream.java:345)
         at com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream.<init>(DBContentInputStream.java:50)
         at com.sapportals.wcm.repository.manager.cm.persistence.BasicPersistenceDB.selectDocumentContent(BasicPersistenceDB.java:1632)
         at com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent.getInputStream(DBContent.java:143)
         at com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent.getInputStream(DBContent.java:95)
         at com.sapportals.wcm.repository.ContentImpl$ContentWithPrefetchedInputStream.<init>(ContentImpl.java:402)
    Please tell us how to fix this error
    regards
    Buddhike

    Need to upgarde to SP14

  • WPC Cannot render container with special characters

    Hi
    My portal generates error: "Cannot render container : An error occurred while loading the document from the resource content" when i Finish editing my page. 
    The special characters that I use are words with accents only with capital letters (used in spanish like Á, É, Í, Ó, Ú)
    Any ideas on what could be causing this?
    Portal 7.01 SP06
    Jose Mercado

    I solve my problem, with  Sap Help.
    They send me: check the charset settings on client & J2EE as follows
    On Client side: Internet Explorer menu > Tools -> Internet Options -> Advanced
    please select 'Always send URLs as UTF-8'.
    On J2EE engine:  . It is important to check the parameter exists for all server nodes in config tool
    -Dhtmlb.useUTF8=X
    -Dfile.encoding=ISO-8859-1
    -Dfile.encoding=UTF8

  • WPC - Cannot render container

    Hi experts,
    We are having a problem with our WPC. The error is:
    Cannot render container : An error occurred while loading the document from the resource content
    The error happen quite often and normally it's back to normal after we restart the server. For your information, we are using EP 7.00 SP18.
    Rgds,
    Nanie

    Solution:
    Apply Note No. 1178294 regarding /etc repository in cluster environment.

  • Web Page Composer - FAQ Web form

    Hello Everyone,
    Hello SDN community,
    This forum thread is intentionally created to collect your feedback and ideas regarding the FAQ Web form.
    With this new Web form you can easily create and manipulate FAQ documents in a structured manner.
    For more information regarding this new Web form and its features adn to download it visit this address: [https://wiki.sdn.sap.com/wiki/display/KMC/CustomizingtheWebPageComposer]
    Your constructive suggestions will help to evolve the Web form further and facilitate the community to create more sophisticated and enhanced versions of this basic reference implementation. Feel free to contribute also your version and discuss in public.
    Here are some basic questions that can guide you:
    1. Does this new Web form help in your particular scenario? How?
    2. How would you rate from 0 to 5 your satisfaction with this particular Web form?
    3. What can be improved in the Web form?
    4. Do you miss something from documentation point of view?
    Explore the new WPC wiki pages - find all the information regarding WPC at one place, download new Web forms, and feel free to contribute.
    [Web Page Composer Wiki|https://wiki.sdn.sap.com/wiki/display/KMC/WebPageComposer]
    Best Regards,
    WPC team @ SAP

    Hi Georgi,
    I was trying to create a FAQ Custom Editor using your How To Guides.
    I am facing a problem as already stated in the thread:
    https://www.sdn.sap.com/irj/scn/thread?threadID=1244125&tstart=0
    To be more specific, initializeFromPageContext function of FAQComponent.java file, @ the line
    question =(TextEdit) context.getComponentForId(Question_ + editorObject.getId());,
    +context.getComponentForId(Question_ + editorObject.getId())+ is returning Null
    Regards,
    JK

  • Microsoft Virtual Machine Converter 3.0 throws Cannot Enumerate Disk ERROR

    I am running the Microsoft Virtual Machine Converter 3.0 to migrate Windows 2012 R2
    SP1 virtual machine from VMware on to Microsoft Azure. I followed all the pre-requisites of the tool. But, when I run the MVMC 3.0 tool it fails in the Analyze Disk stage, and displays this error below:
    10/14/2014 16:24:18 -07:00 [3] VERBOSE: Analyzing disk C:\azure_storage\MVMC\0\disk-1.vhd
    10/14/2014 16:24:23 -07:00 [3] VERBOSE: Disk C:\azure_storage\MVMC\0\disk-1.vhd is bootable
    10/14/2014 16:24:30 -07:00 [3] VERBOSE: Microsoft.Accelerators.Mvmc.Engine.DiskCopyFailureException:
    The virtual disk(s) attached to the source virtual machine were not successfully converted to VHD(s) and copied to the workspace folder path. ---> Microsoft.Accelerators.Mvmc.Engine.VolumeMvmcException: Could not enumerate volume with disk number "1".
    at Microsoft.Accelerators.Mvmc.Engine.Volume.WinVolumeFinderService.GetWinPaths(UInt32
    diskNumber)
    at Microsoft.Accelerators.Mvmc.Engine.InjectionRejection.FirewallUpdater.UpdateFirewallRules(IOwnedVirtualDisk
    virtualDisk, TaskContext taskContext)
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.PostConversionTouchupService.UpdateFirewallRules(String
    bootDiskPath, TaskContext taskContext)
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest
    machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
    --- End of inner exception stack trace ---
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest
    machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
    10/14/2014 16:24:30 -07:00 [3] EXCEPTION: Microsoft.Accelerators.Mvmc.Engine.DiskCopyFailureException:
    The virtual disk(s) attached to the source virtual machine were not successfully converted to VHD(s) and copied to the workspace folder path. ---> Microsoft.Accelerators.Mvmc.Engine.VolumeMvmcException: Could not enumerate volume with disk number "1".
    at Microsoft.Accelerators.Mvmc.Engine.Volume.WinVolumeFinderService.GetWinPaths(UInt32
    diskNumber)
    at Microsoft.Accelerators.Mvmc.Engine.InjectionRejection.FirewallUpdater.UpdateFirewallRules(IOwnedVirtualDisk
    virtualDisk, TaskContext taskContext)
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.PostConversionTouchupService.UpdateFirewallRules(String
    bootDiskPath, TaskContext taskContext)
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest
    machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
    --- End of inner exception stack trace ---
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest
    machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
    at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.<>c__DisplayClass3.<ConvertToDrivesAsync>b__2()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    10/14/2014 16:24:30 -07:00 [3] Exception caught : Microsoft.Accelerators.Mvmc.Engine.VolumeMvmcException:
    Could not enumerate volume with disk number "1".
    at Microsoft.Accelerators.Mvmc.Gui.Model.ConversionModel.ConvertGuestMachine()
    at Microsoft.Accelerators.Mvmc.Gui.ViewModels.Machine.MachineCompletionViewModel.OnWorkerDoWork()

    Same issue here. We DID have spanned disk over 2 x VMDKs but I have fixed that issue now and problem persists. The one thing I have yet to try is installing VMWare Tools - they were uninstalled on a previous failed conversion and I am getting an error saying
    "VERBOSE:    Microsoft.Accelerators.Mvmc.Engine.DiskCopyFailureException: The virtual disk(s) attached to the source virtual machine were not successfully converted to VHD(s) and copied to the workspace folder path. ---> Microsoft.Accelerators.Mvmc.Engine.DisablingNonWindowsGuestVHDException:
    The virtual hard disk C:\Temp\MVMC\0\disk-0.vhdx on which you are trying to disabling VMWare tools, is not a valid Windows-guest OS virtual hard disk. (Are you trying to disable a virtual hard disk with Linux-guest or other OS in it?)"
    I am about to install the tools and try again under advice from our partner

  • Web page composer : new web form

    Hi,
    this is my problem : I created the wpc_mini_article new web forms on my portal, and made new mini article.
    All works fine.
    Now I try to mage other type of article, for exemple like banner. So I copy the XML and XSL of the standard banner, and made all the parameters explained for wpc_mini_article, applied to my new banner copy.
    After restarting the portal, all my previous-working wpc_mini_article do not show anymore, and I have this error message :
    Cannot render container : Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
    Also, I can create wpc_mini_article, but when I try to create my new web form (copy of banner) I got a blank screen with jus a "next" button....
    What am I missing ?
    Thanks a lot.
    Fabien.

    Hi Fabein,
    You can try the workaround given in this SAP NOTE : 1133788
    Hope this helps.
    Cheers,
    Sandeep Tudumu

  • WPC - Custom Web Form: DOMException: Root Element is already present

    Hi experts,
    I'm trying to create a custom web form for my companies portal and I'm facing the following problem:
    I can create create articles with my new webform and everything is fine, but when the XSL Transformation is happing (eg. for viewing the content) i got following exception:
    Cannot render container : com.sap.engine.lib.xml.util.NestedException: org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child. -> org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child.
    I don't understand of which root element the parser is talking. Unfortunately I can't find any additional info to this.
    This is my Editor Document:
    <documenttype id="wpc_informatics_article" description="wpc_informatics_article" showpreview="true" showelementlist="true">
      <properties>
        <property id="name" description="xml.xlbl.name" type="inputfield" size="25" isrequired="true" isfilename="true" />
        <property id="createdBy" description="xml.xlbl.created_by" type="peoplepicker" size="25" isrequired="true"/>
        <property id="includeInRSS" description="xml.xckl.include_in_rss" type="checkbox" defaultvalue="false" property="wpc_wcm_rss"/>
        <property id="displayNewIcon" description="xml.xckl.display_new_icon" type="checkbox" defaultvalue="false" property="wpc_wcm_new"/>
      </properties>
      <elements> 
        <element id="heading1" description="xml.xlbl.heading1" type="inputfield" default="true" singleinstance="true" size="75" maxlength="75" nodelete="true"/>
        <element id="heading2" description="xml.xlbl.heading2" type="inputfield" size="50" default="true" />
        <element id="paragraph" description="xml.xlbl.paragraph" type="htmleditadvanced" default="true" />
        <element id="relatedLinks" description="xml.xlbl.related_links" type="wpclink" hastitle="true" />
      </elements>
    </documenttype>
    The created example content:
    <document document="wpc_informatics_article">
      <properties>
        <property type="name" prop_ns="http://sapportals.com/xmlns/cm" prop_name="displayname"/>
        <property type="createdBy">USER.R3_DATASOURCE.FAH</property>
        <property type="includeInRSS" prop_ns="wpc_wcm" prop_name="wpc_wcm_rss"/>
        <property type="displayNewIcon" prop_ns="wpc_wcm" prop_name="wpc_wcm_new"/>
      </properties>
      <elements>
        <element type="heading1">asdf</element>
        <element type="heading2">asdf</element>
        <element type="paragraph">adsfsadfsadfsadf</element>
      </elements>
      <relatedlinks/>
      <relatedfiles/>
    </document>
    and the xsl
    <?xml version="1.0"?>
    <!DOCTYPE stylesheet [
    <!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
      <xsl:output method="html"/>
      <xsl:template match="/">
        <h1 id="informatics_h1"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading1']" /> </h1>
        <h2 id="informatics_h2"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading2']" /> </h2>
        <xsl:for-each select="document/elements/element">
          <xsl:if test="@type='paragraph'">
            <xsl:value-of disable-output-escaping="yes" select="current()" />
          </xsl:if>
          <xsl:if test="@type='relatedLinks'">
            <div id="informatics_related_links"> Siehe auch: <a>
              <xsl:attribute name="href"> <xsl:value-of disable-output-escaping="yes" select="wpc:getAccessLink(string(@rid), string(/document/@locale))"/> </xsl:attribute>
              <xsl:value-of disable-output-escaping="yes" select="@heading1"/> </a> </div>
          </xsl:if>
        </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>
    maybe someone of you can help me with this! thank you in advance!
    Harald

    I found a solution for this.
    It seems that all of the XSL Transformation has to be covered by a div tag with css classes featurebox clearfixleft.
    <?xml version="1.0"?>
    <!DOCTYPE stylesheet [
    <!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                         xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
        <xsl:output method="html"/>
        <xsl:template match="/">
         <div class="featurebox clearfixleft">
           <h2 id="informatics_h1">
                   <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='title']" />
         </h2>
         <xsl:for-each select="document/elements/element">
                 <xsl:if test="@type='heading1'">
                        <h2 id="informatics_h2">
                            <xsl:value-of disable-output-escaping="yes" select="current()" />
                        </h2>
                 </xsl:if>
                 <xsl:if test="@type='paragraph'">
                     <p><xsl:value-of disable-output-escaping="yes" select="current()" /></p>
                 </xsl:if>
          </xsl:for-each>
         </div>
      </xsl:template>
    </xsl:stylesheet>
    Edited by: Harald Falzberger on Mar 1, 2011 11:06 AM

  • How to find last_query for oracle web form?

    I know that for standard forn we can navigate diagnostics-system-last_query
    How can we do it for web forms?
    Diagnostics menu contain only 5 items
    - Show log
    - Set trace lavel
    - Show Log on screen
    - Show pool monitor
    Thanks

    Are you talking about the Block Menu - which allowed you to select the "Last Query" variable? If so, Forms 6i was the last version to support the Block Menu. If you need to see the last query executed, then you will have to explicitly capture the value of the :SYSTEM.LAST_QUERY variable. In other words, you will have to write code to assign the value of :SYSTEM.LAST_QUERY to a form variable.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Web form tester. don't run the form.

    Dear all,
    i am using oracle 8i and forms 6i.
    i am trying to run the web form tester but it give error.
    i gave the forllowing parameters:
    form : D:\Accano\logonscreen.fmx
    Userid : mis
    other parameters : useSDI= yes ( what is this?)
    Look and Feel: Generic
    Color Scheme : Teal
    Web listener (HTTPD) Detail
    web host : aserver
    web port : 80
    the HTTP server is already installed.
    please hlpe me what is wrong?
    thanks
    Muhammad Nadeem

    ok so u had installed WebDB right?
    next thing have u configured your WebDB server...???
    now u will ask me how can I configure that...then the ans is when u finished
    installing forms....there must be one message box telling you view instruction....
    remember that...ok u can get it now from...."forms6iconfig.txt" in your forms home.

  • Web form not updating database with stored procedure

    Hello
    i have a problem with the web form updating the database i have a stored procedure which i need to connect to. If i execute the procedure in the SQL it will update the database but when i run the web form i get my catch error "could not update database".
    I have read so much on the net and my code seem ok but i,m just so lost.
    stored procedure
    PROCEDURE [dbo].[UpdateCustomer]
    @ID INT,
    @Firstname VARCHAR(30),
    @Surname VARCHAR(30),
    @Age INT
    AS
    BEGIN
    UPDATE Customer
    SET Firstname = @Firstname,
    Surname = @Surname,
    Age = @Age
    WHERE CustID = @ID
    END
    update code
    try
    SqlCommand command = new SqlCommand();
    command.Connection = conn;
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "UpdateCustomer";
    command.Connection.Open();
    SqlParameter param = new SqlParameter();
    param.ParameterName = "@ID";
    param.SqlDbType = SqlDbType.Int;
    param.Direction = ParameterDirection.Input;
    param.Value = txtCustID.Text;
    command.Parameters.Add(param);
    command.Parameters.AddWithValue("@CustID", txtCustID.Text.ToString());
    command.Parameters.AddWithValue("@Firstname", txtFirstname.Text);
    command.Parameters.AddWithValue("@Surname", txtSurname.Text);
    command.Parameters.AddWithValue("@Gender", Gender.Text.ToString());
    command.Parameters.AddWithValue("@Age" ,txtAge.Text.ToString());
    command.Parameters.AddWithValue("@Address1", txtAddress1.Text.ToString());
    command.Parameters.AddWithValue("@Address2", txtAddress2.Text.ToString());
    command.Parameters.AddWithValue("@City", txtCity.Text.ToString());
    command.Parameters.AddWithValue("@Phone", txtPhone.Text.ToString());
    command.Parameters.AddWithValue("@Mobile", txtMobile.Text.ToString());
    command.Parameters.AddWithValue("@Email", txtEmail.Text.ToString());
    command.ExecuteNonQuery();
    lblMessage.Text = "Your Record(s) Have been Updated";
    command.Connection.Close();
    catch
    lblMessage.Text = "Your Record was not updated please try again";
    Thank you for your help

    To expand on Mike's advice.
    Change your catch to:
    catch(Exception ex)
    { // Break point here
    lblMessage.Text = "Your Record was not updated please try again";
    Put a break point in where the comment says.
    Run it.
    Hover over ex or add a quickwatch ( right click it ) and see what the error and inner exception is.
    I see several problems though.
    You have way too many parameters and Age should be int.
    They are objects  - they have a type.
    It'll be a string with your code there.
    Something more like
    command.Parameters.Add("@Age", SqlDbType.Int);
    command.Parameters["@Age"].Value = Convert.ToInt32(txtAge.Text);
    Although that might not cut and paste, it's air code intended to give you the idea.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Web Form - Text

    Hi,
    In my workforce plan type I have an account member set as data type text. In the web form you can type anything to that member and it will store as a number in essbase which is great. In the other plan type for the same application, I just created another member as data type text, but when I try to type text into that member in the web form I am getting an error - invalid value. I can enter numbers just fine, but letters give an error.
    The two members have the exact same properties, but one is in workforce and the other is in plan 1, that's the only difference. Anyone know why I can't enter letters into a member with data type text? Is there another setting on the web form that needs to be set?
    Thanks,
    dq

    Hi,
    I am not sure where you are going wrong because I can't replicate the issue, maybe it is around the evaluation orde as you need to set it for all the plan types you use.
    I created a new account member against plan1 with a data type of text
    I created another account member against workforce with a data type of text.
    Set the evaluation order for account against plan1
    Set the evaluation order for account against workforce
    Created a form against plan1 and included the plan1 text account member
    Creared a form against workforce and included the workforce text account member.
    Both forms I could enter text against.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported.

    SharePoint 2007 custom (VS 2008) solution is upgraded to SharePoint 2013 using (VS 2012). I followed this approach.
    I had created new empty project (solution) in SharePoint 2013 using (VS 2012) compiled and deployed successfully. All safe controls are registered in the web.config file. After deploying solution i Restarted IIS also, still getting this error. How to resolve
    Error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. Correlation ID: 5d217c9c-1827-7083-80cd-e095a30befee.
    Show Error Details
    Hide Error Details
    [UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
      at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Boolean isAppWeb, Guid guid, Guid solutionId, Nullable`1 solutionWebId, String assemblyFullName, String typeFullName, Boolean throwIfNotSafe)
      at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
    <menu class="ms-hide" id="MSOMenu_WebPartMenu"><ie:menuitem id="MSOMenu_Minimize" text="Minimize" title="Collapse this web part." type="option"></ie:menuitem><ie:menuitem
    id="MSOMenu_Restore" text="Restore" title="Expand this web part." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Close" text="Close" title="Close this Web Part. You can still
    find it under closed Web Parts section in the insert ribbon. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/DelItem.gif" id="MSOMenu_Delete" text="Delete"
    title="Delete this Web Part from the page. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/EditItem.gif"
    id="MSOMenu_Edit" text="Edit Web Part" title="Change properties of this shared Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Connections"
    text="Connections" title="Show connections options for this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem
    id="MSOMenu_Export" text="Export..." title="Export this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/HelpIcon.gif" id="MSOMenu_Help"
    style="display:none;" text="Help" type="option"></ie:menuitem> </menu>        

    Hi Ashok,
    According to your description, my understanding is that you got an error after you re-built a SharePoint 2007 solution with VS2012, and deployed it.
    Make sure the Namespace and Type Name are consistent across all files where indicated. Also with matching case sensitivity. Verify web.config file and assembly in GAC or virtual directory bin folder in post deployment.
    More information, please refer to the link below:
    http://roykimsharepoint.wordpress.com/2013/04/27/classic-web-part-errors/
    Here is a similar post for you to take a look at:
    http://stackoverflow.com/questions/1689707/sharepoint-web-part-type-could-not-be-found-registered-as-safe
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

    We have an SharePoint services 3.0 installation that uses custom web parts on 100s of subsites.  The custom web parts on any website is presenting this error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.
    This past weekend we decided to create a new database server and migrate the databases to the new server in an effort to retire an old box. 
    INitially we attempted to go through the configuration wizard which didnt do anything but add a new database server to our farm.  What we have done is remove the new database server from the farm and use an alias on the SP server to continue to use
    the same name but actually get its data from the new database server.
    Everything works with the site except these custom webparts. 
    Any thoughts on where to go to first, should i redeploy what i think are the webparts from VS 2005 (solutions are VS 2005 slns.)? 
    Tony Spaulding

    You need to make Safe Control enteries in your web.config for the particular web application.
    Open web.config
    Locate the SafeControls Tag
    Make a safe control entry
    <SafeControl Assembly="Assembly name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d8eb6481d8b4beec" Namespace="your webpart namespace" TypeName="*" Safe="True" />
    In order to find the assembly details, Open the GAC. Right click on your dll and then click properties.

Maybe you are looking for