Identity must not be Generic

Hi,
For introduce you to my problem, i'll list my server spec before:
- Windows 2012 R2
- Sharepoint 2013
- Project Server 2013
I develop a event handler for a site collection (PWA).
When I try to get the list of events by WCF with the service "http://servername/_vti_bin/PSI/ProjectServer.svcon the activate of the feature, I got in the ULS the error "Identity must
not be Generic".
When I check before the error in the ULS, it's show that I try to connect with the IIS anonymous user (nt authority/iusr).
I try to create a channel with delagation or impersonalisation and also in kerberos or ntlm but nothing work.
For a little test, i try to give permissions of farm admin to the IUSR but that did'nt work.
Did someone know the source of my problem and how to correct ?
Thank you in advance.

If you talk about the Eventing Service of Project, he run with a account that is farm administrator.
For the Binding, I use a BasicHTTP binding with the code like this:
const HttpClientCredentialType CONST_CLIENTCREDENTIALTYPE = HttpClientCredentialType.Ntlm;
const TokenImpersonationLevel CONST_ALLOWEDIMPERSONNALISATIONLEVEL = TokenImpersonationLevel.Impersonation;
binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
binding.Name = "basicHttpConf";
binding.SendTimeout = TimeSpan.MaxValue;
((BasicHttpBinding)binding).MaxReceivedMessageSize = 500000000;
((BasicHttpBinding)binding).ReaderQuotas.MaxDepth = 32;
((BasicHttpBinding)binding).ReaderQuotas.MaxStringContentLength = 8192;
((BasicHttpBinding)binding).ReaderQuotas.MaxArrayLength = 16384;
((BasicHttpBinding)binding).ReaderQuotas.MaxNameTableCharCount = 500000000;
((BasicHttpBinding)binding).ReaderQuotas.MaxBytesPerRead = 4096;
((BasicHttpBinding)binding).Security.Transport.ClientCredentialType = Common.GeneralUtility.CONST_CLIENTCREDENTIALTYPE;
((BasicHttpBinding)binding).Security.Transport.Realm = "";
EndpointAddress address = new EndpointAddress(pwaUrl + svcRouter);
eventsClient = new SvcEvents.EventsClient(binding, address);
eventsClient.ChannelFactory.Credentials.Windows.AllowedImpersonationLevel = Common.GeneralUtility.CONST_ALLOWEDIMPERSONNALISATIONLEVEL;
I try yesterday to enter in Debug Mode of the feature and when i call the method "System.Security.Principal.WindowsIdentity.GetCurrent().Name;"
is the command window, he give me the credential "nt authority\iusr".
Also I try another way to call the WCF service, to call it from an custom csharp assembly and it's working (the credential are okay).
The problem seem to be that on the click of the activate of the feature in the panel, the action is made anonymous.

Similar Messages

  • Unable to set PIN - Error: "PIN must not be the same as the user's phone number"

    We are in an ongoing Lync Server 2013 deployment and have elected to set default conference PIN numbers for anyone that doesn't have them currently set.  We decided to make the default PIN the same as the person's telephone extension.  I realize
    this is not a secure PIN setting, but please bear with me.
    When I use PowerShell to loop through the people that do not have a PIN set and attempt to set the PIN to their five-digit extension, PowerShell returns the following exception:
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin '13579'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Microsoft.Rtc.Management.UserPinService.SetOc
    sUserPinCmdlet
    I know what you are thinking:  by default, Lync has the AllowCommonPatterns setting set to $false on the Global (default) PIN policy.  But I have created another PIN policy called "Low-restriction PIN Policy" that has this setting set
    to $true and assigned this new policy to the users I am trying to set the PIN on.
    According to
    Microsoft's documentation on the Set-CsClientPin cmdlet, the description for AllowCommonPatterns is as follows:
    "Indicates whether or not "common patterns" are allowed in PINs.
    Common patterns include repeating digits (225577); 4 or more consecutive digits (991234); and
    PINs that match a user's phone number or extension number.
    If set to True common patterns (such as the PIN 123456, which includes consecutive digits)
    are allowed; if set to False common patterns are not allowed. The default value is False."
    Given this information, I do not understand why Lync Server 2013 is preventing me from setting a default PIN that matches their extension number when AllowCommonPatterns is set to $true on the PIN policy assigned to the user.
    Any ideas on what might be wrong?
    PS C:\Users\user> Get-CsUser GenericUser | Select-Object PinPolicy
    PinPolicy
    Low-Restriction PIN Policy
    PS C:\Users\user> Get-CsPinPolicy -Identity 'Low-Restriction PIN Policy'
    Identity : Tag:Low-Restriction PIN Policy
    Description : [20150224 SWS] Standard PIN policy.
    MinPasswordLength : 5
    PINHistoryCount : 0
    AllowCommonPatterns : True
    PINLifetime : 0
    MaximumLogonAttempts :
    PS C:\Users\user> Set-CsClientPin -Identity GenericUser -Pin '13579'
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin '13579'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Microsoft.Rtc.Management.UserPinService.SetOc
    sUserPinCmdlet

    I just checked the management store replication status and it replicated.  I tried to set the PIN again and got the same error.  Here are my results:
    C:\Users\user> Get-CsUser GenericUser | Select-Object PinPolicy
    PinPolicy
    Low-Restriction PIN Policy
    C:\Users\user> Get-CsPinPolicy -Identity 'Low-Restriction PIN Policy' | Select-O
    bject AllowCommonPatterns
    AllowCommonPatterns
    True
    C:\Users\user> Set-CsClientPin -Identity GenericUser -Pin 13579
    Set-CsClientPin : PIN must not be the same as the user's phone number (Error
    "18005").
    At line:1 char:1
    + Set-CsClientPin -Identity GenericUser -Pin 13579
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (13579:String) [Set-CsClientPin
    ], ArgumentException
    + FullyQualifiedErrorId : UserPin::SetPin::PinDoesNotMeetConstraints,Micro
    soft.Rtc.Management.UserPinService.SetOcsUserPinCmdlet
    C:\Users\user> Get-CsManagementStoreReplicationStatus
    UpToDate : True
    ReplicaFqdn : edge.domain.com
    LastStatusReport : 3/3/2015 9:20:21 PM
    LastUpdateCreation : 3/3/2015 9:20:18 PM
    ProductVersion : 5.0.8308.556
    UpToDate : True
    ReplicaFqdn : frontend.domain.com
    LastStatusReport : 3/3/2015 9:20:21 PM
    LastUpdateCreation : 3/3/2015 9:20:18 PM
    ProductVersion : 5.0.8308.556

  • I bought a song on iTunes...but it must not have downloaded all the way an now I can't get it to play and it won't let me delete it...I also can't purchase it again cause it says I done bought it...any suggestions?

    I bought a song on iTunes...but it must not have downloaded all the way an now I can't get it to play and it won't let me delete it...I also can't purchase it again cause it says I done bought it...any suggestions?

    Try this:
    http://support.apple.com/kb/HT2519

  • WD - Adobe Interactive Form -  Bound data node must not be empty!

    Hello,
    i have a problem to display the result of a search view in an Adobe PDF. I got the error-message "Bound data node Node(ResultPDFView.FlightList) of InteractiveForm must not be empty!"
    To develop a prototyp i have changed the Flight-List example. I have added a new view, mapped the data of the model to the data of the customController. At the wdInit-Method i have initialized the nodes.
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         // Create a new element in the Bapi_Flight_Getlist_Input node
         Bapi_Flight_Getlist_Input bapiInput = new Bapi_Flight_Getlist_Input();
         wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
         // Create new elements in the Destination_From and Destination_To nodes
         bapiInput.setDestination_From(new Bapisfldst());
         bapiInput.setDestination_To(new Bapisfldst());
         // Create a new element in the Bapi_Flight_Getlist_Output node
         Bapi_Flight_Getlist_Output bapiOutput = new Bapi_Flight_Getlist_Output();
         wdContext.nodeOutput().bind(bapiOutput);
         // Create a new element in the Flight_List node          
         Bapisfldat     bapiFlightList = new Bapisfldat();
         wdContext.nodeFlight_List().bind(bapiFlightList);
         bapiFlightList.setAirline("LH");
        //@@end
    If i start the application i can see all the information (the airline) in my PDF-Dokument, but after the Bapi-Call
    i got the error message !
      //@@begin javadoc:onActionSearch(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSearch(ServerEvent)
         wdThis.wdGetFlightListCustController().executeBapi_Flight_Getlist_Input();
        //@@end
    Where is the problem ? Must i mapp the result element to the currentContextElement ?
    Thanks for help !
    Regards
    Jürgen Berndt

    Hi Jurgen
    Were you able to find out the solution for this? I am getting the same error on a much simpler application - I am trying to do the tutorial given on SAP Help Site at
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    Thanks
    Pankaj

  • Error: Expression must not return a multiline value

    Hi all,
    I am doing a file to file scenario. My input file has more than one record. I have to validate for each of these records and send back the erroneous records in a file to the source folder.
    I am using BPM for this. In my BPM, i have some multiline container elements. When i try to activate my BPM, i am getting an error saying: <b>Expression must not return a multiline value.</b>
    Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file.
    Regards,
    Divija.

    "Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file."
    Go through the following blogs which give step-bystep approach for split mapping using BPM:-
    1. /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    2. /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Also, you might want to look at this, where a BPM is not required..i think you can avoid a BPM altogether if you have very little validation..
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards,
    Sushumna

  • Error Message FF747  -The tax amount must not be greater than the tax base

    Hello,
    We are attempting to post an import vendor invoice through transaction    FB60 for Israel company code . Since the tax charged by the vendor is not fixed every time , we are entering the tax amount in the    FB60 screen manually , without selecting 'calculate tax'.The amount of tax is greater than the amount of expense as per the real business scenario. For example amount of expense is 100, amount of tax is 200 and the total amount charged by the vendor is 300 .However when we simulate the posting we get an error - The tax amount must not be greater than the tax base-Message no. FF747
    We tried putting a very high percentage in the tax code also but it didn't help
    We would like to go ahead with this posting. Could you pl throw light on the same . ? Is there any way (OSS note ) or a work around which can resolve the issue ?
    Best Regards
    Amit  Kulkarni

    Hello
    This may be  a work around in other cases , but since we want the amount to be updated in the BSET table for further VAT reports , we would like  this to be posted along with the expense item

  • Error when loading FIM portal in new installation: The requestor's identity was not found.

    I have just installed the FIM portal into my test environment.  The synchronisation service was already working perfectly (can provision users from a .csv file).
    The FIM Service and Portal are installed on a server (we'll call it SPF1), and the FIM sync service on another server (SYNC1)
    Whenever I try to log on to the fim portal with my standard user account (it has never worked), I get the following error:
    Unable to process your request.
    Please contact your help desk or system administrator.
    Error processing your request: The server was unwilling to perform the requested operation.
    Reason: The requester of this operation is invalid.
    Correlation Id: 7da76fce-5c9a-4596-90f7-8d7243c21de8
    Details: The requestor's identity was not found.
    >Go to Forefront Identity Manager home page
    (The web page header does show the FIM logo, so the portal itself is there).
    In the ForeFront logs on SPF1, I get the following:
    Log Name:      Forefront Identity Manager
    Source:        Microsoft.ResourceManagement
    Date:          1/13/2015 5:48:08 PM
    Event ID:      3
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      SPF1.testdomain.internal
    Description:
    GetCurrentUserFromSecurityIdentifier: No such user TESTDOMAIN\StandardUser, S-1-5-21-1(sid goes here)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft.ResourceManagement" />
        <EventID Qualifiers="0">3</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-01-14T01:48:08.000000000Z" />
        <EventRecordID>523</EventRecordID>
        <Channel>Forefront Identity Manager</Channel>
        <Computer>SPF1.testdomain.internal</Computer>
        <Security />
      </System>
      <EventData>
        <Data>GetCurrentUserFromSecurityIdentifier: No such user TESTDOMAIN\StandardUser, S-1-5-21-1(sid goes here)</Data>
      </EventData>
    </Event>
    Log Name:      Forefront Identity Manager
    Source:        Microsoft.ResourceManagement
    Date:          1/13/2015 5:48:08 PM
    Event ID:      3
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      SPF1.testdomain.internal
    Description:
    Requestor: Internal Service
    Correlation Identifier: da87f241-eee5-4bf5-b1dd-8a6728a2c627
    Microsoft.ResourceManagement.Service: Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: IdentityIsNotFound
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.GetUserFromSecurityIdentifier(SecurityIdentifier securityIdentifier)
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.GetCurrentUser()
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.Enumerate(Message request)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft.ResourceManagement" />
        <EventID Qualifiers="0">3</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-01-14T01:48:08.000000000Z" />
        <EventRecordID>522</EventRecordID>
        <Channel>Forefront Identity Manager</Channel>
        <Computer>SPF1.testdomain.internal</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Requestor: Internal Service
    Correlation Identifier: da87f241-eee5-4bf5-b1dd-8a6728a2c627
    Microsoft.ResourceManagement.Service: Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: IdentityIsNotFound
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.GetUserFromSecurityIdentifier(SecurityIdentifier securityIdentifier)
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.GetCurrentUser()
       at Microsoft.ResourceManagement.WebServices.ResourceManagementService.Enumerate(Message request)</Data>
      </EventData>
    </Event>
    Further, I note that it has trouble connecting to the web exchange connector.  I wonder if this is because I used an alias (for easy migration in the future) for which the certificate does not match the name for?  I'm connecting to "mail.testdomain.internal",
    although that's actually a NLB group between two CAS/HUB servers.
    Log Name:      Application
    Source:        Microsoft.ResourceManagement.ServiceHealthSource
    Date:          1/13/2015 7:43:49 PM
    Event ID:      12
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     SPF1.testdomain.internal
    Description:
    The Forefront Identity Manager Service cannot connect to the Exchange Web Service.
    The connection failure may be due to a network failure, firewall configuration error, or other connection issue.  Additionally, the failure may be due to incorrect Exchange Web Service configuration.
    Verify that the Exchange Web Service is reachable from the Forefront Identity Manager Service computer.  Ensure that Exchange is running, that the network connection is active, and that the firewall is configured properly.  Last, ensure that the
    Exchange Web Service configuration is correct in the Microsoft.ResourceManagement.Service.exe.config file.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft.ResourceManagement.ServiceHealthSource" />
        <EventID Qualifiers="0">12</EventID>
        <Level>3</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-01-14T03:43:49.000000000Z" />
        <EventRecordID>7581</EventRecordID>
        <Channel>Application</Channel>
        <Computer>SPF1.testdomain.internal</Computer>
        <Security />
      </System>
      <EventData>
        <Data>The Forefront Identity Manager Service cannot connect to the Exchange Web Service.
    The connection failure may be due to a network failure, firewall configuration error, or other connection issue.  Additionally, the failure may be due to incorrect Exchange Web Service configuration.
    Verify that the Exchange Web Service is reachable from the Forefront Identity Manager Service computer.  Ensure that Exchange is running, that the network connection is active, and that the firewall is configured properly.  Last, ensure that the
    Exchange Web Service configuration is correct in the Microsoft.ResourceManagement.Service.exe.config file.</Data>
      </EventData>
    </Event>
    I'm not really sure where to start investigating at this point.  The only other thing to note is that after installing the portal, I didn't see a new management agent in the synchronization service (I thought one was supposed to appear, though I could
    be mistaken).

    I eventually figured this out - it was that the portal management agent hadn't been created yet, I had to create it.

  • Error while creating BP -Validity of MKK role must not be restricted

    Hi,
    'Validity of MKK role must not be restricted' message is coming when creating BP in the CIC0 environment. This is happening only to few users in production system. I didn't get any error message when I create BP.
    Appreciate your reply.
    Thanks
    Bala

    Hi Raj,
    Can u send the material  sap isu materials for beginner to my  user profile mail id
    Advance Thanks for help
    Highly points should be added
    Regards,
    srikanth.naga

  • Values in a DynamicConfiguration must not be null

    In File to RFC to File synchronous method without BPM , i need to populate the file name for the receiver file dynamically.
    So i have used UDF in RFC to File message mapping.
    Z_RFC                                               MT_RCV_FILE
    FILENAME                                          FILENAME
    ITAB_OUT----
    ITAB_OUT
       item        -
    item
          STR1   -
    STR
    Created a  UDF for FILENAME as below:
    FILENAME -
    > UDF -
    > FILENAME
    and coded as below:
    try{
    String FILENAME  =  " ";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FILENAME");
    FILENAME = conf.get(key);
    conf.put(key, FILENAME);
    return FILENAME;
    catch(Exception e)
         String exception = e.toString();
          return exception;
    when i test the mapping it shows an error :java.lang.NullPointerException
    and while doing a full test it shows :
    java.lang.IllegalArgumentException: Values in a DynamicConfiguration must not be null in SXMB_MONI
    can anybody guide me to solve this error.

    Hi Abhisek,
    I have changed it to FileName and when i do a end-to-end testing it shows
    Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value '20000000Test2222222220      Pass1')', probably configuration error in file adapter (XML parser error)'
    The strucute of receiver File:
    MT_RCV_FILE
         FILENAME          0 .....1
        ITAB_OUT           0......1
                  item            0.....unbounded
                      STR1      0......1
    In the  receiver CC i have given the following parameters:
    Target directory : /home/ftpusr/test/out
    File name scheme : *
    Content Conversion
    ITAB_OUT.fieldFixedLengths  30,255
    ITAB_OUT.endSeparator : 'nl'
    item.addHeaderLine  : 0
    item.fieldFixedLengths : 255
    item.endSeparator : 'nl'
    where could be the problem?

  • Net value of Credit memo must not increase, but accountingdoc must generate

    HI All
    This is my sales- return process
    Sales order has been created for
    Material : Ax001:   10 Qty : Total price : 100$   Per unit = 10$
    Sales order has been created :  for 10 units        (sales doc number:AAAAS)
    Billing has been done : 10 units for the value 100$
    Accounting documents posted : Credit :100$   Debit accout: 100$
    Returns sales order:
    This is done with reference to the sales order
    Return Sales order has been created with reference to sales order :  (sales doc number:AAAAS)
    Qty :1 Value of the product =10$   Material: Ax001
    A manual condition type is defined to reduce the value of the actual price .. The company is planning to give only 5$ for the return material
    Manual condition has been included in the Return saels order  Total net Value = 5$ qty = 1
    Credit memo has been created : for 5$
    Accounting doc: Credit account = 5$ debit account =5$
    Issue: The account team wants one more account document to be created for the original value of the product i.e 10$
    The net value in the billing document must not increase, but the account document must be created for the value=10$
    This is for nullifying the original value of the product from the book of accounts
    Solution tried : Manual condition for the original value =10$ keeping it as statically condition type : issue: account doc will not generate if it is statically . CND ref: 100% discount it did not work the net value in the order/billing is increasing
    Please let me know how to generate the Accounting document with out increasing the net value.. Using standard SAP. we can create a routine and we can do this .. but we are looking for the Standard SAP solution if any,.....
    Thanks for your help in Advance
    Chandra

    Hi Chandra,
    In your scenario create new condition type and update that condition type with accruals at control data 2 section and create relevant access sequence  and update the condition type in your return pricing procedure and create new account key one for regular posing and one for accruals and take help from FI /CO to create new two accounts one for regular updates  and one for accruals posting ,
    in your pricing procedure mark this condition as statistics relevant  it will create automatically accountancy document for reference,
    Try this and let me know if you have any questions.
    Regards
    Nishad

  • I've reset my PPAM before to get around Firmware lock, but I've upgraded to mountain lion and now need to do the same thing, but I can't reset the PRAM. I've heard of the chip that is on the post 2011 macs, but I must not have one? What to do?

    I've reset my PPAM before to get around Firmware lock, but I've upgraded to mountain lion and now need to do the same thing, but I can't reset the PRAM. I've heard of the chip that is on the post 2011 macs, but I must not have one? What to do? Also, I can not get start up chimes unless I have the factory startup disk in. Can the PRAM be reset with the factory startup disk in or must the mac boot from the hard drive? Need help.

    Help for forgotten passcode >   iOS: Forgotten passcode or device disabled after entering wrong passcode
    When you have access to your iPhone again, FaceTime is a pre installed app that cannot be removed.
    Try a search >  iOS: Understanding Spotlight Search

  • Null in Composite Primary Key and "Primary keys must not contain null"

    Hello all.
    I'm a newbie concerning to JPA/EJB3, but I was wondering if toplinks doesn't support composite primary keys with null in some field (something perfectly right in any RDBMS).
    I used JDeveloper (I'm using Oracle 10g database and JDeveloper 10.1.3.2.) wizards to generate JPA classes and I checked out generated files (with annotations), so they should be right (by the way, other O-R mappings for my model are working right, but this one).
    I'm getting the next error:
    Exception Description: The primary key read from the row [DatabaseRecord(
         TSUBGRUPOSLDI.CD_GRUP => 01
         TSUBGRUPOSLDI.CD_SUBGRUP => null
         TSUBGRUPOSLDI.CG_POBL => 058
         TSUBGRUPOSLDI.CG_PROV => 28
         TSUBGRUPOSLDI.DSCR => Sanidad)] during the execution of the query was detected to be null. Primary keys must not contain null.
    Compound primary key is (CD_GRUP, CD_SUBGRUP). No foreign keys, no joins (only a NamedQuery: "select o from ..."). It's the simplest case!
    I checked out that everything runs ok if there's no "null" value in CD_SUBGRUP.
    After some research (this and other forums) I'm beginning to believe that it's not supported, but not sure.
    Am I doing sth wrong? If not, what is the reason to not support this? Will it be supported in the future?
    Thanks in advance.

    Null is a special value and in many databases is not comparable to another null value (hence the isNull operator) and may pose problems when used to uniquely identify an Entity. TopLink does not support null values within a composite PK. As the nullable column is most likely not designated as a PK within your database table (many databases do not allow this) I recommend updating the Entity PKs to match that of the database.
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Purchase Order quantity must not Exceed Sales Order quantity

    Dear Experts
    My requirement is when i am creating PO in me21n and taking Document type as Domestic PO and giving account assignmnet as "C" Sales Order, must have to enter Material and quantity and must have to Give Sales Order number and item no in account assignmnet tab , the quantity i am entering in PO must not exceed my Sales Order quantity that is my requirement.
    Regards
    Abi

    Hi,
    You do not create a PO with reference to sales order. In PO you enter sales order number for reference. A purchase requsition can be created directly from Sales order or through MRP depending on the system settings. Then this PR can be converted to PO. here you can restrict the quantity. As in order to change the quantity in PR also you will have to change the quantity in sales order.
    Regards
    Raj

  • Sales Order quantity Must not exceed Purchase order quantity

    Dear Experts,
    My requirement is when i am creating a Purchase order giving referenece as Sales Order .. system must not allow the user to enter  more than Sales order quantity.
    Ex : Sales Order 1234
            Material : AAAA
            Quantity : 100
    while creating a Purchase order for Mat AAAA giving  reference of Sales order i.e 1234 and quantity 150 system must not allow user to enter more than sales order quantity . If user wants to create PO for 150 he must have to ammend the sales order from 100 to 150  is it possible.
    Kindly do the needful
    Regards
    abhi

    Dear Abhinav,
    First of all, Purchase Order will get created with reference to Purchase requisition (T. Code: VOV7 --> Item Cat.: TAS --> Tab: Transaction Flow --> Field: Automatic PO Creation), and not with reference to Sales Order.
    This is Purchase requisition, which gets created with reference to Sales Order; based upon settings in:
    T. Code: VOV6 --> Schd. Line Cat.: CS
    Order Type            NB    Purchase Requisition
    Item Category         5     Third-party
    Acct Assgt Cat.       X     All aux.acct.assgts.
    Now, coming to your requirement (based up on my inputs),
    My requirement is when i am creating a Purchase order giving referenece as Sales Order .. system must not allow the user to enter more than Sales order quantity.
    To Restrict Purchase requisition quantity in PO, then in T. Code: OMCQ
    Or, Path: SPRO > img > MM > Purchasing > Environment Data > Define Attributes of System Messages
    Here make following messages as Error;
    06 076 Materials of requisition & item & alr. ordered in full
    06 254 Order quantity greater than requisition quantity
    Now,  in Purchase Requisition, if it is created for 100 qty (with ref. to Sales Order) and if you adopt the same in Purchase Order and try to change the qty to 150, then system will not allow you change and throws the error.
    Best Regards,
    Amit

  • Theme editor doesn't show - DesignManager must not be null error

    Hi,
    I'm experiencing problem with Theme Editor & default portal themes. Problem was probably started by importing custom themes from older version of portal (current configuration is NW2004 SPS19, Java stack). After entering System Administration / Portal Display, theme editor doesn't show up and defaulttrace contains following error:
    #1#java.lang.IllegalArgumentException: DesignManager must not be null.
         at com.sapportals.portal.ssd.userInterface.InitialPage.<init>(InitialPage.java:74)
         at com.sapportals.portal.ssd.StyleSheetDesigner.doContent(StyleSheetDesigner.java:94)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    I've tried many things - delete custom themes (at first from Theme Archive, then from themes Integrity browser (...irj/servlet/prt/portal/prtroot/com.sap.portal.themes.integrity.browse) and finally I've found traces in the filesystem (I think it was .../irj/root/portalapps/com.sap.portal.design.urdesigndata/themes/customer)). So there should be no trace of custom themes in the system (as suggested in thread Theme Editor no showing content.), but the problem remains.
    And there's more I found. We have 2 same systems installed on one server (both have own Oracle database+NW 2004 SPS19). The other portal works fine and without any problems, even with the same themes imported - it didn't create any error so I wonder if the problem doesn't lie somewhere else.
    One more thing I noticed, which is different among these two portals, is the bahaviour of default themes - when I start ...irj/servlet/prt/portal/prtroot/com.sap.portal.themes.integrity.browse on both portals, the one which works, has also its and portal subnodes under every theme from SAP. On the other portal, only one theme shows all - the sap_chrome. Other themes contain only ur subnode. I've tried to compare filesystems of both portals (but only directries which I found through search for "sap_tradeshow"), but I haven't noticed any differences. What else could be different?
    I tried many things, but without any effect. Could anyone help me, please? I'm running out of ideas and thinking about reinstalling the portal, which isn't prefereble solution.

    Hi,
    It's really hard to say, where's the problem. I think you should reinstall it..., probably some components of your EP wasn't installed correctly.
    Regards,
    Juraj

Maybe you are looking for

  • Trying to capture HDV with a Canon HV30    CS4

    I am new to this HD video.Im trying to capture to PPRO cs4 and not sure what settings to use.When I first start out I have my new project set to HDV after that it takes me to new sequence panel there I have selected the preset HDV 1080p30 (Im hoping

  • I want firefox to open the home page when i open a new tab instead of a blank page.

    whenever i open a new tab, it shows me a blank page. i want firefox to go to my home page as soon as i click on new tab button.

  • Idea for a document tracking application

    I'm a graphic designer looking for a better way to track time. There is currently a website, http://www.rescuetime.com/ that comes close to doing what I want. It logs the time spent on the active window. What it doesn't do is log the document name, p

  • Muse CC won't Activate

    I have been haveing an issue with activating Abobe Muse CC.  It will not activate.  I have a Creative Cloud subscription that is up to date.  Other apps activate and open with no problem including Dreamweaver CC Photoshop CC Code Preview CC Illustrao

  • Canon 5D Mark III wont power up

    I just brought home my brand new 5D Mk III, charged the battery up, mounted the lens (24-105), inserted the CF card and then the battery.  Switched it on and no sign of life at all.  Removed the battery, lens and CF card and then re-installed the bat