A typedef name cannot beused inan elaborated type specifier(C++5.0 /sol2.8)

I am developing a C++ application on Solaris platform . I am using the CC 4.2 compiler and able to compile the code on Solaris 2.6
But I am getting the following error when compiling the same code on Solaris 2.8 using CC 5.0 Compiler
"/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
"/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
Please let me know, if you have any idea towards the solution of this issue @ [email protected] or [email protected]
Thanks
Prashanth

Make sure when you compile, you give the option -library=rwtools7 -library=iostream and that the roguewave library has been installed on your workstation.

Similar Messages

  • Error:A typedef name cannot beused in an elaborated type specifier.. (2.8)

    I am developing a C++ application on Solaris platform . I am using the CC 4.2 compiler and was able to compile the code on Solaris 2.6
    But I am getting the following error when compiling the same code on Solaris 2.8 using CC 5.0 Compiler
    "/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
    h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
    h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    Please let me know, if you have any idea towards the solution of this issue @ [email protected] or [email protected]

    Further to the posting,I find that the error arises in the following lines of the header files-
    #ifndef RW_NO_IOSTD
    #include <iosfwd>
    #else
    class _RWCLASSTYPE istream;
    class _RWCLASSTYPE ostream;
    class _RWCLASSTYPE ios;
    #endif

  • Error:A typedef name cannot beused in an elaborated type specifier(C++5.0)

    I am developing a C++ application on Solaris platform . I am using the CC 4.2 compiler and compiling the code on Solaris 2.6
    But I am getting the following error when compiling the same code on Solaris 2.8 using CC 5.0 Compiler
    "/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
    h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/tsi/ae/tools/SPARCWORKS/5.0/sparc/s4_58/SUNWspro/SC5.0/include/CC/rw7/rw/defs.
    h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    Please let me know, if you have any idea towards the solution of this issue @ [email protected] or [email protected]

    Workshop 5.0 is EOLed. Please try the current version 'Sun One Studio 7, Compiler Collection'(http://wwws.sun.com/software/sundev/suncc/index.html) or 'Sun One Studio 7, Enterprise Edition'(http://wwws.sun.com/software/sundev/solde/index.html)
    - Rose

  • Defs.h:a typedef name cannot be used in an elaborated type specifier

    Hi,
    I recently migrated from Workshop C++ 4.2 (Solaris 2.6) to C++5.0
    When I recompiled all my programs, I get these errors in the header files :
    "/opt/SUNWspro/SC5.0/include/CCios/stdiostream.h", line 29: Error: streamoff is
    not defined.
    "/opt/SUNWspro/SC5.0/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name
    cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/SC5.0/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name
    cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/SC5.0/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name
    cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stringid.h", line 50: Error: A typedef na
    me cannot be used in an elaborated type specifier..
    "/opt/SUNWspro/SC5.0/include/CC/rw7/rw/stringid.h", line 51: Error: A typedef na
    me cannot be used in an elaborated type specifier..
    I've installed the following patches (107311-19, 107390-19, 107357-11) and compiled with the -library=rwtools7,iostream options.
    It still doesn't work and I can't figure out why...
    Any help would be appreciated.
    Thanks
    Annie

    Workshop 5.0 is EOLed. Please try the current version 'Sun One Studio 7, Compiler Collection'(http://wwws.sun.com/software/sundev/suncc/index.html) or 'Sun One Studio 7, Enterprise Edition'(http://wwws.sun.com/software/sundev/solde/index.html)
    - Rose

  • Error: Illegal syntax for elaborated type specifier

    Hi ,
    I am using Solaris 8 with SunStudio8 C++ 5.5 compiler
    I have defined following lines in my header file msgg.h
    typedef class DIMessageStringBase<char> DIMessageString;
    typedef class DIMessageStringBase<UChar> DIMessageStringU;
    On compilation I am getting folowing error in above header file
    "msg.h":Error: Illegal syntax for elaborated type specifier
    -riaj

    Just remove keyword 'class'.

  • Cannot find any information on property 'Name' in a bean of type 'UserBean'

    Hello,
    I was trying to solve this problem myself but never got through, its really routine. So please can you see this error message, html file, jsp file and say if there are mistakes or if I need to add something else somewhere?
    Error
    org.apache.jasper.JasperException: Cannot find any information on property 'Name' in a bean of type 'UserBean'
    HTML
    <html>
    <head>
    <title>jsp test</title>
    </head>
    <body bgcolor ="white">
    <form action ="course.jsp" method ="post">
    <table>
    <tr><td>userName:</td>
    <td><input type="text"      name ="Name">
    </td>
    </tr>
    <tr>
    <td>userID:</td>
    <td><input type ="text" name ="ID"></td>
    </tr>
    <tr>
    <td>userAddress</td>
    <td><textarea name ="Description"></textarea></td>
    </tr>
    <tr>
    <td><input type ="submit" name ="submit"></td>
    </table>
    </form>
    </body>
    </html>
    JSP
    <%@ page language="java" contentType="text/html" %>
    <html>
    <body bgcolor="white">
    <jsp:useBean id="courseBean" class="UserBean">
    <jsp:setProperty name="courseBean" property="*" />
    </jsp:useBean>
    The following was done:
    <jsp:getProperty name="courseBean" property="Name" />
    <jsp:getProperty name="courseBean" property="ID" />
    <jsp:getProperty name="courseBean" property="Description" />
    </body>
    </html>
    JAVABEAN:
    public class UserBean implements Serializable{
    private String Name;
    private String ID;
    private String Description;
    public UserBean(){
    public void setName(String Name){
    this.Name=Name;
    public String getName(){
    return ID;
    public void seID(int userID){
    this.ID=ID;
    public int getUserID(){
    return ID;
    public void setDescription(String Description){
    this.Description=Description;
    public String getDescription(){
    return Description;
    Thank you in advance
    Ajlear

    Use a lower case initial on a bean property name.
    Instead of:
    <jsp:getProperty name="courseBean" property="Name" />try:
    <jsp:getProperty name="courseBean" property="name" />The same will apply to other properties. Also, make sure you use the lower case initial on form field names. e.g. <input type="text" name ="name"> for use in <jsp:setProperty name="courseBean" property="*" />

  • Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finder

    I'm trying to call an entity bean froma session bean i get the error :-
    7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
    [findByCustID].
    7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
    7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
    My session bean looks like this :-
    public class HelloBean implements SessionBean
      public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
         String lzRevenue=null;
         int liCustomerID=Integer.parseInt(pzCustomerID);
         try
              Context initial = new InitialContext();
              Object objref =   initial.lookup("SalesBean");
              SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
              Sales sales=salesHome.findByCustID(liCustomerID);
              lzRevenue=(String) sales.findByCustID(liCustomerID);
    My entity bean looks like this:-
    public class SalesBean implements EntityBean
      public String factPK;
      public int timeID;
      public int custID;
      public int locID;
      public int itemID;
      public int entityID;
      public String currency;
      public float qty;
      public float unitPrice;
      public float amount;
      public EntityContext context;
      private Connection con;
        private void makeConnection() {
            try {
                InitialContext ic = new InitialContext();
                javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
                con = ds.getConnection();
            } catch (Exception ex) {
                throw new EJBException("Unable to connect to database. " +
                    ex.getMessage());
      public SalesBean()
      public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
         makeConnection();
         PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
         pstmt.setInt(1, custID);
         ResultSet rset = pstmt.executeQuery();
         if (!rset.next())
              throw new RemoteException("no records present" );
         return rset.getString(1);
      }My entity bean's home interface looks like this:-
    public interface SalesHome extends EJBHome
    public Sales create() throws RemoteException, CreateException;
    public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
    My entity bean's remote interface looks like this:-
    public interface Sales extends EJBObject
         public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
    my ejb-jar.xml looks like this:-
    <enterprise-beans>
    <session>
    <description>Hello Bean</description>
    <ejb-name>HelloBean</ejb-name>
    <home>myEjb.HelloHome</home>
    <remote>myEjb.HelloRemote</remote>
    <ejb-class>myEjb.HelloBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
         <entity>
              <ejb-name>SalesBean</ejb-name>
              <home>myEjb.SalesHome</home>
              <remote>myEjb.Sales</remote>
              <ejb-class>myEjb.SalesBean</ejb-class>
              <persistence-type>Container</persistence-type>
              <prim-key-class>java.lang.String</prim-key-class>
              <reentrant>False</reentrant>
              <cmp-field>
              <field-name>factPK</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>timeID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>custID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>locID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>itemID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>entityID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>currency</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>qty</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>unitPrice</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>amount</field-name>
         </cmp-field>
              <primkey-field>factPK</primkey-field>
              <resource-ref>
              <res-ref-name>jdbc/DSource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
         </entity>
    </enterprise-beans>
    please help me out of this trouble.

    I'm trying to call an entity bean froma session bean i get the error :-
    7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
    [findByCustID].
    7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
    7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
    My session bean looks like this :-
    public class HelloBean implements SessionBean
      public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
         String lzRevenue=null;
         int liCustomerID=Integer.parseInt(pzCustomerID);
         try
              Context initial = new InitialContext();
              Object objref =   initial.lookup("SalesBean");
              SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
              Sales sales=salesHome.findByCustID(liCustomerID);
              lzRevenue=(String) sales.findByCustID(liCustomerID);
    My entity bean looks like this:-
    public class SalesBean implements EntityBean
      public String factPK;
      public int timeID;
      public int custID;
      public int locID;
      public int itemID;
      public int entityID;
      public String currency;
      public float qty;
      public float unitPrice;
      public float amount;
      public EntityContext context;
      private Connection con;
        private void makeConnection() {
            try {
                InitialContext ic = new InitialContext();
                javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
                con = ds.getConnection();
            } catch (Exception ex) {
                throw new EJBException("Unable to connect to database. " +
                    ex.getMessage());
      public SalesBean()
      public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
         makeConnection();
         PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
         pstmt.setInt(1, custID);
         ResultSet rset = pstmt.executeQuery();
         if (!rset.next())
              throw new RemoteException("no records present" );
         return rset.getString(1);
      }My entity bean's home interface looks like this:-
    public interface SalesHome extends EJBHome
    public Sales create() throws RemoteException, CreateException;
    public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
    My entity bean's remote interface looks like this:-
    public interface Sales extends EJBObject
         public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
    my ejb-jar.xml looks like this:-
    <enterprise-beans>
    <session>
    <description>Hello Bean</description>
    <ejb-name>HelloBean</ejb-name>
    <home>myEjb.HelloHome</home>
    <remote>myEjb.HelloRemote</remote>
    <ejb-class>myEjb.HelloBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    </session>
         <entity>
              <ejb-name>SalesBean</ejb-name>
              <home>myEjb.SalesHome</home>
              <remote>myEjb.Sales</remote>
              <ejb-class>myEjb.SalesBean</ejb-class>
              <persistence-type>Container</persistence-type>
              <prim-key-class>java.lang.String</prim-key-class>
              <reentrant>False</reentrant>
              <cmp-field>
              <field-name>factPK</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>timeID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>custID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>locID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>itemID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>entityID</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>currency</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>qty</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>unitPrice</field-name>
         </cmp-field>
         <cmp-field>
              <field-name>amount</field-name>
         </cmp-field>
              <primkey-field>factPK</primkey-field>
              <resource-ref>
              <res-ref-name>jdbc/DSource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
         </entity>
    </enterprise-beans>
    please help me out of this trouble.

  • 2013 Exchange, Can't connect to Exchange Management Shell. It cannot determine the content type of the HTTP response from the destination computer.

    The following error occurs.
             Welcome to the Exchange Management Shell!
    Full list of cmdlets: Get-Command
    Only Exchange cmdlets: Get-ExCommand
    Cmdlets that match a specific string: Help *<string>*
    Get general help: Help
    Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
    Show quick reference guide: QuickRef
    Exchange team blog: Get-ExBlog
    Show full output for a command: <command> | Format-List
    Tip of the day #0:
    Did you know that the Identity parameter is a "positional parameter"? That means you can use:
     Get-Mailbox "user" instead of: Get-Mailbox -Identity "user"
    It's a neat usability shortcut!
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Exception calling "GetComputerSite" with "0" argument(s): "The Specified directory object cannot be found."
    At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:164 char:2
    +     $localSite=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetC ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ActiveDirectoryObjectNotFoundException
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.: mail1.dorothy.local
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Randy Cheek

    Good Morning,
    Log into the server with an account that has appropriate Exchange rights, not a local account.  
    Note: By default - Domain Admins don't have Exchange rights.
    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP
    My Technical Blog: http://thelifestrategist.wordpress.com
    Discipline is the Difference between Goals and Accomplishments
    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

  • You cannot use this transaction type to post to this asset Message no. AA83

    < MODERATOR:  Message locked.  Please post this message in the [Asset Accounting forum|SAP ERP Financials  - Asset Accounting;. >
    Hi,
    I am settling credit values [-ve values] from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp  A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
          Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    Hi,
    Please check the SAP note 1091728 for this.
    Regards

  • You cannot use this transaction type to post to this asset Message no.AA834

    Hi,
    I am settling credit values -ve values from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
    Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    When you have an investment order/WBS create from there the AUC. You collect the cost on the AUC. Final you fill in the settlement rule the final asset in (from a normal asset class) and then you transfer the costs to the final asset.
    In the IO or WBS should be assigened a investment profile and the asset class AUC should be set-up correct
    Search on this forum for more information or read the SAP help

  • Error saving: The location of the document " DOC NAME " cannot be determined.

    I am having issues saving .pages files on to our network drive after upgrading to Mavericks and Pages 5.0.
    A bunch of errors and issues occur when editing old or saving new pages files on our local SMB server. Saving files on to my local machine is fine.
    I cannot save to the original network location at all. It errors: The location of the document "<DOC NAME>" cannot be determined. The folder in question has permissions that have always worked before the upgrade of mavericks/pages. I can rename the files in question, and save other types of files in to that folder without issue.
    When it errors, it provides the option to Save as... this also fails, no matter where I try to save it to - local or network.
    The auto-save feature fails for the same reason. This creates several temp folders with blank pages documents in it.
    Most disturbingly, it appears to be destroying the original file by renaming it to a temp file, that is henceforth un-usable. Luckily Ive got backups of the documents.
    Help!

    Update:
    The new version of Numbers also comes up with the same errors.
    The previous version of both Pages and Numbers work absolutely fine still - have had to revert to using these for now.

  • Name cannot begin with the '\"' character, hexadecimal value 0x22

    I am trying to create Calculated Column in SharePoint Document Library using Client Object Model.
    However getting following error while executing FieldSchema:
    Name cannot begin with the '\"' character, hexadecimal value 0x22
    Code:
     var calculated = "Calculated";
     var displayName = "Effective Date";
     var internalName = "Effective Date";
     var formula = "=IF(ISBLANK(Col_DocumentEffectiveDate),\"\",TEXT(Col_DocumentEffectiveDate,\"DD-Mmm-YYYY\"))";
     List lib = clientContext.Web.Lists.GetByTitle(docLibName);
     clientContext.Load(lib);
     clientContext.ExecuteQuery();
    string fieldSchema = "<Field Type=\"" + calculated + "\" DisplayName=\"" + displayName + "\" Name=\"" +internalName+ "\" Formula=\"" + formula + "\"
    />";
    lib.Fields.AddFieldAsXml(fieldSchema, true, AddFieldOptions.AddFieldInternalNameHint);
    clientContext.ExecuteQuery();
    Code does't work if i replace quotation marks("\) in Formula with "&quot;"
    Could someone help with issue?

    Hi,
    I suggest you take the code below which works in my environment to do the test again:
    ClientContext clientContext = new ClientContext("http://sp/");
    List list = clientContext.Web.Lists.GetByTitle("List2");
    FieldCollection fields = list.Fields;
    clientContext.Load(fields);
    clientContext.ExecuteQuery();
    var displayName = "Cal2";
    var formula = "=IF(ISBLANK([Created]), \"\" , TEXT([Created], \"DD-Mmm-YYYY\"))";
    var fieldSchema = "<Field Type='Calculated' DisplayName='" + displayName + "' ResultType='Text'><Formula>" + formula + "</Formula></Field>";
    fields.AddFieldAsXml(fieldSchema, true, AddFieldOptions.DefaultValue);
    clientContext.ExecuteQuery();
    Feel free to reply if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • "The home folder could not be created because the network name cannot be found" error in AD users and computers

    Our home folders are stored on a non-windows NAS device and with Windows XP and 2003 we've always got the above error when creating or modifying users home folders, even when the shares were al ready created and being used.
    However this was never really a big issue as the error that popped up was really for information and finshed with a "we've modified the user properties anyway, please create the share manually" type message.
    Unfortunately now we are moving to windows 7 and 2008R2, this last part of the the message is missing and it won't accept the correct value. 
    This issue may be in the way that the NAS device shares the folder, as only the username that matches the folder name can access the share.  This behaviour can't be modified.
    Is there a way to get Windows 7/2008R2 AD users and computers to behave the same way that Windows XP/2003 does , i.e. don't try and create the share just set the value in the user properties  ?
    The AD is still at 2003 level and we can still use Windows XP/2003 clients to make the changes but this is a bit of a limitation.

    The KB article is almost what we have apart from theitalic underlined
    part
    Consider the following scenario:
    You use a domain administrator account to log on to a computer that is running Windows 7 or Windows Server 2008 R2.
    You use the Active Directory Users and Computers Microsoft Management Console (MMC) snap-in to connect to a domain controller.
    You open the Properties dialog box of a user account.
    The user account has sole access to a shared folder path that cannot be accessed by the administrator account.
    You set the Remote Desktop Services Home Folderattribute to the shared folder path.
    NoteThis attribute is located on the
    Remote Desktop Services Profiletab.
    You click Apply or OK.
    In this scenario, you receive the following error message:
    The home folder could not be created because: The network name cannot be found.
    Note If you click Apply or OK again, no error message is returned. However, the setting is not saved.
    I think the important bit is
    The user account has sole access to a shared folder path that cannot be accessed by the administrator account.
    We manually create the shares on our NAS and then just want to enter the path in the profile tab, I suppose the question is how to we stop it trying to create the shares ?

  • ERROR  cannot drop or replace type

    i have this code

    i have this code
    CREATE OR REPLACE TYPE PREMIER."SYS_PLSQL_63035_9_1"           
    You may have that code but you did NOT create that TYPE. When an object has a name like that it usually means that it was created by Oracle.
    One use case when Oracle does that is when you create a PIPELINED function in a package and the function uses PL/SQL types. Behind the scenes Oracle will create two or three SQL types so support that function properly. When it does it gives them names like the one you posted.
    See Solomon's answer in this thread for a discussion of the object types Oracle will create behind-the-schenes for PIPELINED functions
    https://forums.oracle.com/message/10425909?
    A PIPELINED function needs to return a collection and the collection is typically based on a scalar object type.
    So your problem is likely that the type whose code you posted is the SQL scalar object type that Oracle created and there is another type with a name like 'SYS%' that is defined as:
    CREATE OR REPLACE TYPE SYS_PLSQL_nnn as TABLE OF SYS_PLSQL_63035_9_1;
    Since that collection type depends on the scalar type you cannot modify the scalar type unless you drop the collection type and then rebuild it.
    Which begs the question: why are you MUCKING with object types that were implicitly created by Oracle?
    DON'T DO THAT unless you know EXACTLY what you are doing. You will likely break something that you should not be messing with.

  • Server name cannot be resolved using VPN connection

    I've just installed Windows Server 2012 and Exchange 2013. I previously was using Windows SBS 2008 with Exchange 2007 and I was able to connect to the server via VPN and create an Outlook account and connect to the Exchange server no problems.
    Now with the WS2012 and Exchange 2013 everything is working fine but when I connect to the VPN from outside the network and try to create a new Exchange account in Outlook, I get the error "The name cannot be resolved. The connection to Microsoft Exchange
    is unavailable. Outlook must be online or connected to complete this action."
    When I'm on the VPN I can ping both server name and IP address no problems so that isn't the issue. I've searched the net and tried multiple things including turning off firewall on both sides.
    To clarify my setup I have two WS2012 servers. One is DC and VPN server, other is Exchange 2013 server which has both CAS and Mailbox roles.
    I have a suspicion that the issue is to do with certificates. I don't have a valid bought SSL certificate, I am just using self-signed certificate. Can anyone verify that this is the issue or could it be something else?
    Thanks.

    Hi,
    Since you don't have a valid SSL certificate, you can try to manually configure Outlook to connect to your Exchange server by the following steps:
    Go to your Outlook mail settings from Start > Control Panel > Mail > Show Profiles > Add.
    If you cannot locate the Mail icon in Windows Control Panel, turn on Classic View (click
    Classic View on the left side of the Control Panel window). 
    Specify your Profile Name and click OK.
    On the Auto Account Setup page, select Manually configure server settings or additional server types and then click
    Next.
    On the Choose Service page, select Microsoft Exchange or compatible service and click
    Next.
    On the Server Settings page:
    - Specify your Server FQDN as Exchange server name (you can find it in HostPilot® Control Panel >
    Users & Services > Advanced Settings).
    - Type your Exchange Mailbox Username (email address). 
    - For the Offline use option, make sure that Use Cached Exchange Mode is selected.
    - Click the More Settings button and switch to Connection tab.
    - In Outlook 2013 you can specify the time period for which email items will be kept offline.
    Select the Connect to Microsoft Exchange using the HTTP option and click the
    Exchange Proxy Settings button.
    -Specify Exchange proxy settings.
    -Type the URL for your proxy server in the Use this URL to connect to my proxy server for Exchange field. 
    You can find the correct URL in HostPilot > Users & Services > Advanced Settings.
    -Make sure that both the options On fast networks and On slow networks are checked.
    -In the Proxy authentication settings box, choose Basic Authentication.
    If you want to have Outlook save your password, read the Knowledge Base article on
    How do I save my Outlook Password? for more information.
    Click OK, then Apply, then OK
    to return to the Add New Account window. Click Check Name.
    If you have set everything up properly, you will see a window requesting authentication.
    Enter the complete primary email address as the username, and enter the password for the mailbox.
    If you have entered the username and password correctly, the username will now be underlined, and the entry in the Microsoft Exchange Server field will also be underlined.
    Note: If your server is Exchange 2013 the server name will get underlined and will resolve into a name that looks like
    [email protected].
    Such a conversion is expected behaviour for Exchange 2013 mailboxes.
    Click Next, then Finish, then OK to save changes.
    Start Outlook and log in, using the same credentials as in step 9.
    ▲ Vote if Helpful / Mark if Answer
    MCSE: Messaging 2013 Charter / Private Cloud / Server Infrastructure
    MaximumExchange.ru

Maybe you are looking for

  • LR4 lens correction. When will canon 10-18mm lens be added

    I recently purchased a canon 10-18mm lens. But when I tried to use the lens correction facility I discovered that it was not on the dropdown list of lenses. Do you know a date when it will be added?

  • Been working on a new case for a bit

    I have just got it together and matched the promi and cut out flames on the side pannel. I still have to fine file and sand the flames but its comming along nicely.

  • Preventive Maintenance Order

    Hi Experts, I want to know about Preventive Maintenance, The Case is I run schedulle preventive maintenance August 3, 2011  call date August 3, 2011 and the order will automatic created on August 3, 2011 my question is system status on order preventi

  • Issue with Date

    Hi, I am calculating a date based on a date field and few conditions. the Calculated Key figure or formula is working fine but my issue is for a particular condition the value is displayed as 0/0/0000 i would like to show as blank at this place. Is i

  • My iPod touch 3th generations won't charge on jbl dock station

    I have a jbl dock station and my ipod touch third generation won't charge but play music