Business Event not triggering the SOA BPEL Process with OA Adapter

Hello Gurus,
I am working on Business event "oracle.apps.per.api.employee.create_employee" and the event is getting triggered when creating an employee from EBS.
The message has come till WF_BPEL_QTAB(I could seeit) and in "READY" status.We have a SOA BPEL Process that is subscribed to the event "oracle.apps.per.api.employee.create_employee" using OA Adapter.
The issue is that the SOA BPEL process is not getting triggered and it is not dequeing the message from WF_BPEL_Q.
Please let me know if I have missed any steps on SOA BPEL side.
Note: Agent Listener is up and running.
Thanks,
Sunil

Ofcourse, I subscribed to the business event using BPEL. Ideally the instances should be created and I should be able to receive the standard payload.
Yes the JNDIs are correct. We have other business events working in the same fashion and we are using same JNDI.

Similar Messages

  • Business Event not triggering the PLSQL procedure.. What to do?

    We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
    We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
    I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
    Business Event Subscription settings:
    System: ORDEBS.SYSTEM.COM
    Triggering Event
    Source Type:Local
    Event Filter: oracle.apps.gl.Journals.journal.approve
    Execution Condition
    Phase: 100
    Status: Enabled
    Rule Data: Message
    Action Type:Custom
    On Error: Stop and Rollback
    Action
    PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
    Priority: Normal
    Documentation (Not sure what value to be given for these. I went with the below values.)
    Owner: Company Name
    Owner Tag: Custom Schema
    Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
    select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
    Procedure:
    CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
    AS
    PROCEDURE Get_Attributes
    IS
    BEGIN
    INSERT INTO xx.xx_test_table VALUES ('From BE');
    COMMIT;
    END Get_Attributes;
    END XX_GL_APPROVE_BE_PKG;

    Thanks Alejandro. Now this is working.
    Changes i made:
    1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
    2. Changed the function signature to have standard parameters like:
    CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
    AS
    function subscription(p_subscription_guid in raw,
    p_event in out nocopy wf_event_t) return varchar2 is
    l_result varchar2(20);
    begin
    insert into xxvtv.xxvtv_test_table values ('From BE');
    commit;
    exception
    when others then
    wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
    wf_event.setErrorInfo(p_event, 'ERROR');
    return 'ERROR';
    end subscription;
    END XX_GL_APPROVE_BE_PKG;
    3. Changed the owner name and owner tag both to the custom schema name (XX)

  • BPEL process with DB adapter and FTP adapter

    Hi ,
    i need to read a table contents using DB Adpter after recieving the data i need to write a swich condition on column value of each record and dependin og the criteria i need to write the record in an appropriate file
    can any one help me out by giving any similar reference BPEL process
    regards,
    Anasuya Vemuri.

    Hi,
    Configure the DB Adapter as a service in your composite which does polling the table in the DB, there are many settings in polling, make your selection according to your business needs. Configure the FTP Adapter as a reference in the Composite. And use switch activity inside the BPEl if you want to check something like if else cases. And invoke the FTP Adapter and before that populate the invoke input variable values using assign activity copy operation. Make sure you create connection factories for both adapters and populate the important attributes for them in the SOA Admin Console.
    http://kr.forums.oracle.com/forums/thread.jspa?messageID=9784730
    Hope this helps....
    Thanks,
    N

  • BPEL process with FTP Adapter

    Hi,
    can we write static and dynamic data to file using FTP Adapter.
    for example:
    the file should be:
    the ABC file
    the total no of records:?
    Records:
    abc gskd dlfgpe
    asd fkgd sdfsd

    Hi,
    When you configure the FTP Adapter, you will be giving the location and also the name....
    But at run time, you can still replace them with the values you want....
    Go to the properties of invoke activity of FTP Adapter in BPEL....
    Find the properties, jca.ftp.FileName and jca.ftp.Directory; you can assign these properties from variables or expressions; it's all how want to do..you can design your flow in BPEL...
    And coming to the data contents; as yatan told, use the concat function in expression builder of copy operation in Assign activity and assign the same to the attribute of the FTP Adapter invoke input variable....
    Hope this helps...
    Thanks,
    N

  • How to send the output of the 1st BPEL process as a input to 2nd BPEL Proce

    Hi,
    I am working on OBPM 11G and my requirement is like below,
    From Mediator we need to call two different BPEL process. 1st one is Synchronous one and second one will be a one way interface. We need to call a java call out from Mediator and then give the output to the first BPEL process. The output from the first BPEL process has to be given to the second BPEL process with a filter condition.
    However we have achieved to call Java callout as well as call to two different BPEL process but facing issues in sending the output of the first BPEL process as a part of input to the second BPEL process.
    Any help on this would be appreciated.
    Bibhu

    Hi,
    Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
    Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
    But to answer your reoriginal question, some additional information is required.
    What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Transactions Routing randomly to the incorrect bpel processes..

    Hi,
    We are having a design scenario in B2B and BPEL Integration as mentioned below:
    1. For a given Business Action defined in B2B , for a given revision
    ---Business Protocol : EDI X12 over Generic Exchange
    ---Document Protocol EDI_X12
    -- we have a given document type lets say 214 and document type revision : 4010
    --- Now attached to this document type 214 we have defined two document definitions
    1 -- Document Definition 1 ,Default value as True .-- This has its .xsd and .ecs file uploaded to it
    (let say D1.xsd and D1.ecs).... Here the document routing id : D2 this comes as default value.
    2 -- Document Definition 2 , Default value as False -- This has the same .xsd and .ecs file as for the document definition 1 mentioned above. (let say D1.xsd and D1.ecs).... Here also the document routing id : D2. this is coming as default value
    Now we have two trading partners TP1 and TP2 defined in the system with their operational capabilities as mentioned below ...
    TP1 --> Oper. capability --> Document Definition 1 -- with its own document protocol parameter values
    TP2 --> Oper. capability --> Document Definition 2 -- with its own document protocol parameter values
    Now we have designed two different bpel processes with one Bpel Process1 configured to talk to the Document Definition 1 via the Partner Link --> WSIL Browser wherein we have selected this document definition.
    and another bpel process2 which is configured via Partner Link to talk to the Document Definition 2.
    Now the scenario here is that for both the trading partners the document type , document type revision is same.
    Also we are using the same xsd and ecs files for both of them for validation of the inbound edi document, but we two different bpel processes because the transaction and data processing to be done on the bpel side is completely different for these two TP's.
    This is what is happening when are putting two input edi files to the b2b ..one for each of the trading partners for this same transaction type/document type , b2b is processing the transactions successfully without any error messages but when the bpel process is getting trigerred , the transcations for the TP2 are getting passed to the Bpel process 1
    while transactions for the trading partner TP1 are getting passed to the Bpel process 2 (which we have designed exclusively for the trading partner TP2).
    Now is there any way we could resolve this edi transactions routing issue so that the transactions for document definition 1 for the Tp1 should get routed to the bpel process 1 only and the same happens for the transactions for document def 2 for the Tp2 get routed to the bpel process 2.
    Could someone please let us know if this achievable in any way and feasible as well.
    regards
    sachin.

    This is a simple and most common use case
    Host: Acme
    TP: Cisco
    Tp2: Intel
    Define Document Definition Def1 for host and override it while creating operation capability for Cisco and Intel with the appropriate value of Document routing ID.
    For e.g With Cisco Document Routing ID is def_cisco and for intel it is def_intel.
    Note : please do not define multipe document definition just override for TP's.
    Use appropriate consumer name in BPEl to get the message through Intel or cisco.
    HTH.
    Rgds,Ramesh

  • Invoke BPEL process with the webservice interface

    I'm using Oracle BPEL PM 10.1.2.x.
    Follow the example comes with the BPEL PM, i can invoke the BPEL process in a J2EE project (with the webservice interface). The example named "UseStockReviewSheet".
    Then i tried to invoke the BPEL process i designed with Eclipse BPEL Designer. The version of BPEL designer for Eclipse is 0.9.13.
    I failed and got following errors:
    09/03/17 16:55:53 com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.
    xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>变量/表达式结果为空.
    尝试读取/复制第 50 行的 xpath 变量/表达式 "bpws:getVariableData('input','payload
    ','/tns:CreditFlowRequest/tns:input')" 时, 发现为空。.
    请确保变量/表达式结果 "bpws:getVariableData('input','payload','/tns:CreditFlowRe
    quest/tns:input')" 非空。.
    </summary>}}
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.checkEx
    pressionFromValue(BPELAssignWMP.java:972)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFro
    mValue(BPELAssignWMP.java:504)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__execu
    teStatements(BPELAssignWMP.java:122)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:188)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3408)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1836)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:166)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:252)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5438)
    09/03/17 16:55:53 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1217)
    09/03/17 16:55:53 at com.collaxa.cube.engine.delivery.DeliveryService.hand
    leInvoke(DeliveryService.java:511)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.han
    dleInvoke(CubeDeliveryBean.java:335)
    09/03/17 16:55:53 at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.
    handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.message.invoke.Invok
    eInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eMessage(DispatchHelper.java:125)
    09/03/17 16:55:53 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.
    process(BaseScheduledWorker.java:70)
    09/03/17 16:55:53 at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage
    (WorkerBean.java:86)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenBeanInvocation.r
    un(MessageDrivenBeanInvocation.java:123)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenHome.onMessage(M
    essageDrivenHome.java:755)
    09/03/17 16:55:53 at com.evermind.server.ejb.MessageDrivenHome.run(Message
    DrivenHome.java:928)
    09/03/17 16:55:53 at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:186)
    09/03/17 16:55:53 at java.lang.Thread.run(Thread.java:534)
    <2009-03-17 16:55:53,640> <ERROR> <default.collaxa.cube.xml> com.oracle.bpel.cli
    ent.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-proce
    ss/}selectionFailure}
    messageType: {null}
    parts: {{summary=<summary>变量/表达式结果为空.
    尝试读取/复制第 50 行的 xpath 变量/表达式 "bpws:getVariableData('input','payload
    ','/tns:CreditFlowRequest/tns:input')" 时, 发现为空。.
    请确保变量/表达式结果 "bpws:getVariableData('input','payload','/tns:CreditFlowRe
    quest/tns:input')" 非空。.
    </summary>}}
    I can invoke my BPEL process in BPEL console, not in J2EE project. bpws:getVariableData('input','payload','/tns:CreditFlowRequest/tns:input')" is null.
    The error message contains some Chineses word. I'm new to BPEL, hope someone can give me a hint on how to solve this problem.
    Thanks a billion!
    --Sunny 2009-3-18

    Following is the java class invoking BPEL process with the webservice interface.
    package com.otn.samples;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.XMLType;
    import javax.xml.rpc.soap.SOAPFaultException;
    import org.apache.axis.client.Call;
    * @version 2.0 $Date: 07-mar-2005.05:07:45 $
    * @author Copyright (c) 2004 by Oracle. All Rights Reserved.
    public class CreditFlowClient
    private static QName SERVICE_NAME;
    private static QName PORT_TYPE;
    private static QName OPERATION_NAME;
    private static String SOAP_ACTION;
    private static String STYLE;
    private static String THIS_NAMESPACE = "http://samples.otn.com";
    private static String PARAMETER_NAMESPACE = "http://samples.otn.com";
    private String location;
    static
    SERVICE_NAME = new QName(THIS_NAMESPACE,"CreditFlow");
    PORT_TYPE = new QName(THIS_NAMESPACE,"CreditFlow") ;
    OPERATION_NAME = new QName(THIS_NAMESPACE,"creditFlowRequest");
    SOAP_ACTION = "initiate";
    STYLE = "wrapped";
    public void setLocation(String location)
    this.location = location;
    public void initiate(String ssn)
    try
    /* Create Service and Call object */
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService( SERVICE_NAME );
    Call call = (Call)service.createCall( PORT_TYPE );
    /* Set all of the stuff that would normally come from WSDL */
    call.setTargetEndpointAddress( location );
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, SOAP_ACTION);
    call.setProperty( Call.OPERATION_STYLE_PROPERTY , STYLE );
    call.setOperationName(OPERATION_NAME);
    call.addParameter(new QName(PARAMETER_NAMESPACE,"ssn"), XMLType.XSD_STRING, ParameterMode.IN);
    Object[] params = new Object[1];
    params[0] = ssn;
    /* Invoke the service */
    call.invokeOneWay(params);
    System.out.println( "CreditFlow BPEL process initiated" );
    catch (SOAPFaultException e)
    System.err.println("Generated fault: ");
    System.out.println (" Fault Code = " + e.getFaultCode());
    System.out.println (" Fault String = " + e.getFaultString());
    catch (JAXRPCException e)
    System.err.println("JAXRPC Exception: " + e.getMessage());
    catch (ServiceException e)
    System.err.println("Service Exception: " + e.getMessage());
    public static void main(String[] args)
    String ssn = "12-123-126";
    String location = "http://localhost:9700/orabpel/default/CreditFlow";
    CreditFlowClient client = new CreditFlowClient();
    if(args.length == 1)
         ssn = args[0];
    else if(args.length ==2)
    location = args[0];
    ssn = args[1];
    client.setLocation( location );
    client.initiate( ssn );
    -------------------------------------------------------------------

  • Getting the error while deploying the HelloWorld BPEL process

    Hi Folks...
    I installed the BPM of version soa_windows_x86_bpel_101310.
    I designed and rebuilt the HelloWorld BPEL process in Jdeveloper10.13.1. It is executed with out any errors.
    I tried to deploy it in BPEL console 10.1.3.1.0. Then I got the following error
    Missing process descriptor file. The process deployment descriptor file "bpel.xml" has not been packaged in the BPEL archive "bpel_41030.tmp". Please generate the BPEL archive again using the "bpelc" tool and redeploy the process. The BPEL archive "bpel_41030.tmp" may have been generated with an older version of "bpelc"
    Can any body help me how to rectify the error in BPEL console.
    Thanks in advance...
    Gopal.

    Hi Gopal,
    Did you find any solution? I am having same problem...while compiling it compiles with 1 warning and am able to deploy from jdeveloper not from bpel server.
    Warning: TopLink found problems in bpelProccessName. Please ensure that these are corrected before deployment.
    Thanks

  • Issue about Invoking a BPEL Process with the Generic Java API

    I Invoking a BPEL Process with the Generic Java API and apache axis or axis2
    it turn up a error as follow:
    org.apache.axis2.AxisFault: ORABPEL-08021
    Cannot find partner wsdl.
    parnterLink "BPELProcess1" is not found in process "BPELProcess1" (revision "v2008_11_17__38943").
    Please check the deployment descriptor of the process to find the correct partnerLink name.
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
         at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
         at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
         at wf.Test_axis2_callws.main(Test_axis2_callws.java:41)
    i can't solve it !
    what's problem ???
    anyone use java code to invoke bpel process successfully..can show me some example?
    thanks
    chan

    Hi,
    Check below link may help you solve your problem.
    http://www.activevos.com/cec/samples/content/sample-invoke/doc/index.html
    Regards

  • Bpel is not showing all DEPLOYED bpel processes

    Hi,
    The data is not transfering after refresh the instance.When i click tab BPEL processes it is not showing all DEPLOYED bpel processes it shows only two process that is
    TaskActionHandler
    TaskManager
    Thanks
    Edited by: userpat on May 24, 2010 7:09 AM
    Edited by: userpat on May 24, 2010 7:11 AM

    The issue is resolved as below.
    Change the directory to the dir of individual process suitcase dir and run the bellow command
    $ORACLE_HOME/bpel/bin/bpelc.sh -rev 1.0 -deploy default

  • Which business event is triggered when terminate employee?

    Hi,
    I need to know which business event is triggered when press terminate button in end employment form.
    Edited by: 969359 on Mar 18, 2013 5:36 AM

    It must be oracle.apps.per.api.person.delete_person or oracle.apps.per.api.person.update_person.
    Please check.
    FYI: Both of these events are disabled at the instance I was checking. So makes sure they are enabled before you test the events.
    Regards,
    Peddi
    Edited by: Peddi on Mar 18, 2013 3:31 PM

  • How can I display event notes on the relevant event in week/day view?

    Hi folks,
    I'm looking for a way to display the event notes on the actual event in week or day view.
    This will greatly help plan out my week (especially for repetitive events with custom notes for each occurrence).
    I can understand that Apple ommitted this feature to avoid clutter on short-duration events perhaps?
    Clicking on the event (or using the Inspector) to see the notes is not an option. I need an overview that can be viewed at a glance or even printed.
    Looking forward to your suggestions...
    Trev

    Hi Trev,
    With iCal as it is the only suggestion I have would be to add the full text to the title of the events.
    FYI, this is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know about this I suggest you send them feedback.
    Best wishes
    John M

  • WS14000133 not supporting the Back&forth processing , back to purchaser but

    Dear Geeks,
    we have SRM 5.5
    i am using the sap standard template WS14000133 for the n-step approval and implemented the Badi BBP_WFL_APPROV_BADI. Everything is working fine . the issue is when the requistioner is logged in to the SAP SRM portal all the features are available except the "Back to Purchaser" and "Back to manager" pushbutton are not visible on the screen.
    I suppose which indicates that the Workflow or the SRM portal is not supporting the Back & Forth processing where the requistioner has the facility to send the Workitem back to the approver who has made changes the shopping cart.
    Can anyone please help me  in finding a way to enable the above pushbuttons to be visible in the SRM portal screen.
    Regards,
    Altaf

    Hi,
    The issue is not with the Approve,Reject,submit or resubmit icons or buttons.
    for the workflows which support back and forth processing there will be two extra buttons visible on portal screen.
    1. Back to purchaser  visible to the Approver
    2. Back to Manager visible  to the Requisitioner/creator of the shopping cart.
    so this two buttons/ icons are not visible in SRM portal screen.
    And this is the basic standard functionality provided by the SAP . here is the part of the documentation which supports the above statements.
    "Back & Forth Processing
    This property enables the creator and the current approver to change the document during approval.
    Using the pushbutton Back to Purchaser, the approver can send the document back to the creator so that changes can be made. The purchaser/creator makes the changes and uses the pushbutton Back to Manager to send the changed document back to the last approver who then continues the approval process. (Depending on the type of authorization, the approver can also make changes, for example, and then notify the creator of the change using the back & forth procedure.)"

  • How do we pass the Business Event Data in the EBS business Events subscription Testing?

    HI,
    How do we pass the Business Event Data in the EBS business Events subscription Testing?
    --Khaleel

    Hi,
    Just to add what Dianne has said, whenever you are carrying out any configuration/ customising, you have to test all the related scenarios. For this you have to take help of the End Users who are in a better position to carry out this testing. If the affecting modules like FI, MM, SD, are many, then you also have to see how the cross-module enties are flowing.
    Regards,
    amit

  • TS3999 My iPad is not syncing calendar events via iCloud that I enter on my iPhone 5, but events entered on the iPad are syncing with the iPhone.

    My iPad is not syncing calendar events via iCloud that I enter on my iPhone 5, but events entered on the iPad are syncing with the iPhone.

    On you phone, go to Settings>Mail,Contacts,Calendars>Default Calendar and make sure you have selected a calendar listed under your iCloud account as your default.  If not, make this change, then enter a new event on your phone and see if it syncs properly now.
    If your settings are already correct, or if after changing them it still isn't syncing properly, make sure all the calendar events on your phone are in your iCloud calendar.  If not, enter any missing events either on your iPad, or on icloud.com from your computer.  Then, after your iCloud calendar is up to date, go to Settings>iCloud on your phone and turn Calendars to Off.  When prompted, choose Delete from My iPhone.  After a minute or so, turn Calendars back to On to sync your iCloud calendar back to your phone.  Then try adding a new event on your phone and see if it syncs properly now.

Maybe you are looking for