Error when embedding a formula field in a text box in a subreport

I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
This field name is not known.
Details: errorKind
Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
Error in formula  optionStrike:
'{Command.OPTIONSTRIKETIME}'
This field name is not known.
Details: errorKind
If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
Has anyone else encountered this error?  If so, what can be done to avoid it?

Hello,
Thank you for the info.
Which driver are you using for the dataset?
If you are using ADO.Plus add this to your App.Config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Thank you
Don

Similar Messages

  • Error when converting a numeric field to XML

    Hi,
            When i run the Adobe intractive form,i am getting following exception
    "Error when converting a numeric field to XML"
    Anyone plz suggest
    Regards,
    vinoth

    Hi Vinoth Raja,
    For resolving the following exception
    "Error when converting a numeric field to XML"
    You have to follow the below link:-
    http://www.saptechies.com/error-when-converting-numeric-field-xml/
    May be it will help you
    Regards,
    Sushma Yadav

  • When I open my email in the text box it doesn't show anything until i hit the forward button.  Can anyone help?

    When I open my email in the text box it doesn't show anything until i hit the forward button.  Can anyone help?

    See if any of the following help.
    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Error when add a custom field to source 2LIS_12_VCHDR

    Hi Experts,
    I'm trying add a custom field to source 2LIS_12_VCHDR. The fields are in LIKP table's append. That are
    zz fields. I can see the fields in MCLIKP structure, but I can't see these fields in LBWE transacction when I try update the structure MCLIKP. I don't know if this last is important because when I replicate of the source the fields, they are visible in BW.
    The problem is when I try activate the transfer structure. I Can add the fields from the data source to the transfer structure but If try activate the source the error is:
    "Error when creating transfer structure /BIC/CCBA2LIS_12_VCHDR in source system XXXX"
    I'm forgetting some step?
    somebody know other way for do it?
    thanks for your help.
    Manuel.

    Hi
    May be the datasource is not active, do the following obviously in development
    goto LBWE and click on your datasource; system will ask you for a transport request number give it a name. now save the datasource.
    replicate and activate your t/r
    hope this helps
    Regards

  • SOAP Error When Referencing Indexed Picklist Fields

    You may receive the following error, or something similar, when trying to access the "Indexed Picklist" fields via webservices.
    <siebelf:errormsg>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</siebelf:errormsg>
    This error can be caused by searching for a picklist value that doesn't exist. In many cases, the picklist values are valid, but the developer is accessing the wrong picklist. This is a common mistake because the user interface, and WSDL files are a little different. Indexed Picklist 1 in the user interface is really IndexedPick0 in the WSDL definition file, not IndexedPick1 like many people would think.
    Indexed Picklist 1 = IndexedPick0
    Indexed Picklist 2 = IndexedPick1
    Indexed Picklist 3 = IndexedPick2
    Indexed Picklist 4 = IndexedPick3
    Indexed Picklist 5 = IndexedPick4
    Indexed Picklist 6 = IndexedPick5
    Below are the tests I ran when testing this issue, both SOAP requests and responses.
    ==========================================================================================================================================
    The value "Will" is a valid value for the indexed picklist 1 in the admin screen.... I receive the error because I should be looking in IndexedPick0, not IndexedPick1.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <OpportunityWS_OpportunityUpdate_Input xmlns="urn:crmondemand/ws/opportunity/10/2004">
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Hay man</OpportunityName>
    <IndexedPick1>Will</IndexedPick1>
    </Opportunity>
    </ListOfOpportunity>
    </OpportunityWS_OpportunityUpdate_Input>
    </soap:Body>
    </soap:Envelope>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</faultstring>
    - <detail>
    - <siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault">
    - <siebelf:error>
    <siebelf:errorsymbol />
    <siebelf:errormsg>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ==========================================================================================================================================
    Correct example and good response.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <OpportunityWS_OpportunityUpdate_Input xmlns="urn:crmondemand/ws/opportunity/10/2004">
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Hay man</OpportunityName>
    <IndexedPick0>Will</IndexedPick0>
    </Opportunity>
    </ListOfOpportunity>
    </OpportunityWS_OpportunityUpdate_Input>
    </soap:Body>
    </soap:Envelope>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns:OpportunityWS_OpportunityUpdate_Output xmlns:ns="urn:crmondemand/ws/opportunity/10/2004">
    - <ListOfOpportunity xmlns="urn:/crmondemand/xml/opportunity">
    - <Opportunity>
    <OpportunityId>1-UVW382</OpportunityId>
    <AccountId>1-SILNWP</AccountId>
    <CreatedDate>12/07/2006 08:58:52</CreatedDate>
    <CreatedBy>Will Braithwaite, 12/07/2006 08:58:52</CreatedBy>
    <ExternalSystemId />
    <IntegrationId>1-UVW382</IntegrationId>
    <ModifiedDate>07/13/2007 09:45:56</ModifiedDate>
    <ModifiedById>1-S79WT5</ModifiedById>
    <ModifiedBy>Will Braithwaite, 07/13/2007 09:45:56</ModifiedBy>
    <CreatedById>1-S79WT5</CreatedById>
    </Opportunity>
    </ListOfOpportunity>
    </ns:OpportunityWS_OpportunityUpdate_Output>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Post Author: ayla1209
    CA Forum: Data Connectivity and SQL
    I'm having the same error - did you ever get a solution?

  • Error when Create User Defined Field

    Hi all, i got an error when create UDF
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Here is part of my code
    oUserFieldMD.Name = fieldname
            oUserFieldMD.Description = fielddesc
            oUserFieldMD.Type = fieldtype
            oUserFieldMD.DefaultValue = defaultValue.ToString()
            If fieldtype <> SAPbobsCOM.BoFieldTypes.db_Date Then
                oUserFieldMD.Size = fieldlength
                oUserFieldMD.EditSize = fieldlength
            End If
            If fieldtype = SAPbobsCOM.BoFieldTypes.db_Float Then
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Price
            Else
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
            End If
            oUserFieldMD.TableName = tablename
            lRetVal = oUserFieldMD.Add()
            prgbar.Value = prgbar.Value + 1
            If (lRetVal <> 0) Then
                msgs.Add(tablename & " - " & fieldname & " : " & oCompany.GetLastErrorDescription())
            Else
                msgs.Add(tablename & " - " & fieldname & " : successfully created!")
            End If
    the error come when reach lRetVal = oUserFieldMD.Add()
    what is wrong with my code ?
    thanks.

    This could be a x64/x86 problem. Try following this thread
    [GetCompanyService|GetCompanyService] and recompile your code for the platform you need.

  • When converting from docx to pdf, some text boxes are missing. Why?

    I have a large docx file with many text boxes.  The boxes have fill and borders.  When I convert to pdf several text boxes are missing.  The text is there but the box is missing.  How can I prevent this from happening?

    Hi,
    Please share your file if possible so that I can look into the problem. Please use below link:
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    thank you.
    Hisami

  • Error when double clicking any field in Alv grid

    Hi All,
    I have created a custom container. To that custom container I am displaying an alv grid with all editable fields using oops concept.
    Hence when I am double clicking on any on the field of the table I am getting a dump " an exception condition ERROR raised in CL_GUI_ALV_GRID_BASE  in method SET_DRAG_DROP_ROWS".
    Kindly help

    Hi,
    Check the PF-STATUS. It seems that you have assigned F6 shortcut key for some event.
    Remove the F6 assignment & activate the pf-status.
    Best regards,
    Prashant

  • Error when creating a description field. MySQL syntax to use?

    I'm creating a form which has a description field in it. I created this form with many fields. However I then got an error and decided to limit the form to only 2 fields. These 2 fields (user and title) insert with no problem. However when I added the description field into the mix. I gat the same error I had previously gotten.
    Error:
    Internal error.
    Developer Details:
    tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc TEXT, job_id TEXT)' at line 1
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20080204 (client_id TEXT, name TEXT, desc TEXT, job_id TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    * tNG_insert.getRecordset
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset*
    I'm using the "Text" syntax for the field "desc" (description)
    What am I doing wrong? Do I need to define the table row in a different way?

    Hi,
    I am working on an image gallery using the tutorials.
    I used the sql
    SELECT *,
    rand() as random_number
    FROM image_img
    ORDER BY random_number DESC LIMIT 1
    on my default.php page but on preview i get the message
    You have an error in your SQL syntax near 'LIMIT 0, 10' at line 1
    I tried the solution above by removing the desc limit.
    I got the same prob.
    I will like to know how best to tackle this.
    Thanks
    Yomi

  • IOS Debug error when embedding non-CFF fonts

    We have a project where we are embedding fonts for some button skins as per Jason's blog (http://blogs.adobe.com/jasonsj/2011/08/embedding-fonts-in-flex-mobile-projects.html) - our skin uses StyleableTextFields for the label.
    When we debug on the iPad we get an error that seems to be occurring when one of the buttons with the embedded font skin is being initialized.  (Debugger stops on UIComponent.as line 7485)
    This is the output:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at _HOYSiPad_mx_managers_SystemManager/callInContext()[_HOYSiPad_mx_managers_SystemManager.a s:37]
        at mx.core::EmbeddedFontRegistry/getAssociatedModuleFactory()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\core\EmbeddedFontRegistry.as:469]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::getFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:12682]
        at mx.core::UIComponent/createInFontContext()[E:\dev\4.5.1\frameworks\projects\framework\src \mx\core\UIComponent.as:12740]
        at spark.skins.mobile.supportClasses::ButtonSkinBase/createChildren()[E:\dev\4.5.1\framework s\projects\mobiletheme\src\spark\skins\mobile\supportClasses\ButtonSkinBase.as:223]
        at spark.skins.mobile::ButtonSkin/createChildren()[E:\dev\4.5.1\frameworks\projects\mobileth eme\src\spark\skins\mobile\ButtonSkin.as:239]
        at net.hoys.display.skins.buttons::SecondaryButtonSkin_mobile/createChildren()[T:\Homework\S erver\HOYS Frontend Repository\HOYS-iPad\src\net\hoys\display\skins\buttons\SecondaryButtonSkin_mobile.as:100 ]
        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
        at mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UI Component.as:7166]
        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.5.1\frameworks\ projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.5.1\fra meworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
        at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
        at mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7189]
        at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\frameworks\projects\ spark\src\spark\components\Group.as:2037]
        at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:1628]
        at spark.components::Group/setMXMLContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark \components\Group.as:633]
        at spark.components::Group/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:573]
        at spark.components::SkinnableContainer/set mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\SkinnableContai ner.as:657]
        at spark.components::SkinnableContainer/set mxmlContent()
        at spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:1050]
        at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:1078]
        at spark.components::SkinnableContainer/createChildren()[E:\dev\4.5.1\frameworks\projects\sp ark\src\spark\components\SkinnableContainer.as:885]
        at spark.components::Application/createChildren()[E:\dev\4.5.1\frameworks\projects\spark\src \spark\components\Application.as:1480]
        at mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\ UIComponent.as:7624]
        at spark.components::Application/initialize()[E:\dev\4.5.1\frameworks\projects\spark\src\spa rk\components\Application.as:1334]
        at HOYSiPad/initialize()
        at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\4.5.1\frameworks\projects\fra mework\src\mx\managers\systemClasses\ChildManager.as:189]
        at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[E:\dev\4.5.1\framework s\projects\framework\src\mx\managers\systemClasses\ChildManager.as:359]
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:3063]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2849]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \preloaders\Preloader.as:542]
        at mx.preloaders::Preloader/timerHandler()
        at flash.utils::Timer/tick()
        at flash.utils::Timer/tick()
    We then reverted the button skins  back to one that we use for a web app the debugging runs fine - the web skin uses a embedded font where CFF is set to true.
    Is this possibly a bug with the SDK, debugging or something we aren't quite setting correctly?
    Any infomation or direction would be greatly appreciated.
    - Liz

    Well, I've now tried with the beta version AIR 3.9.0.880 in the new IOS 7, and this problem is still happening, unfortunately.
    My app compiled with -ipa-test-interpreter installs fine but with -ipa-debug-interpreter it doesn't install at all.
    The IPA is generated successfully but iTunes refuses to install it.
    I've filed a bug here. If you're experiencing the same problem, please leave a vote here:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3635356

  • Error when embedding the plugin inside java

    I have IE wrapped inside java, and when IE loads a page with java, I get the error message "Attachment to a running Virtual Machine failed." I guess the plugin gets confused by the allready running VM.
    Do I need to supply some hooks for the plugin?
    My code is a http://nothome.com/IEcanvas/

    My organization is also trying to embed IE 6.0 inside of a Java application using the IECanvas code, http://www.nothome.com/IECanvas/. That code was derived from work done at The Code Project, http://www.codeproject.com/java/javacom.asp.
    We are attempting to use the Java 1.4 release candidate with this code. Everything seems to work well, until IE attempts to load a Web page that has an imbedded Java applet that requires the Java Plugin. We have insured that IE is calling the exact same version of Java, version 1.4, when loading the plugin. Unfortunately, when the Java plugin starts loading, the error "Attachment to a running Virtual Machine failed" is presented in a dialog box titled "Java(TM) Plug-in 1.4 Fatal Error".
    After this IE asks if the user wishes to install the Java 1.4 plugin. Essentially, no Java 2 applets will work in IE once it is embedded in our Java application.
    I have done some research, and discovered that it should be possible to run more than one instance of the Java Virtual Machine in the same process space. I would like it if someone knows how to force the Java plugin to start a new Virtual Machine instance instead of trying to connect the the already running instance in the encompassing Java application.
    Thanks!
    Warren

  • Native SQL Update statement error when more than one field used

    Hi, I would make it simple. I update directly to a SQL server.
    1-
    When I update only one field works.
    LOOP AT IT_MAT.
    EXEC SQL.
    UPDATE Articulos SET PrecioSinImp = :IT_MAT-PRECIOSINIMP        WHERE Modelo = :IT_MAT-MODELO
    ENDEXEC.
    ENDLOOP.
    This give me sy-subrc = 0
    When I Try to update several fields doesnt works, any would can help me ?.
    LOOP AT IT_MAT.
    EXEC SQL.
      UPDATE Articulos SET PrecioSinImp = :IT_MAT-PRECIOSINIMP
                           Descripcion = :IT_MAT-DESCRIPCION
      WHERE Modelo = :IT_MAT-MODELO
    ENDEXEC.
    ENDLOOP.
    This give me dump SQL error 170.
    2- BTW, I have to leave this report program in a job so the data would be updated once a day in a job, so I have to update the existing data and add new one.
    I Was thinking doing something like this.
    LOOP AT it_table.
    UPDATE DQL TABLE
    IF sy-subrc <> 0.
    INSERT DQL TABLE
    ENDIF.
    ENDLOOP.
    This may works ??? because if this not work, I have to select single each one of the data in the SQL table, if it was founded UPDATE otherwise INSERT. And I dont like this aproach.
    Thx

    Hi Rodrigo,
    I feel that your requirement is as below:
    Depending on the criteria in the where clause, check whether the record exists or not.. If it does, then update the record with new values, else, create a new record..
    You can do the same as below:
    LOOP AT it_mat INTO e_mat. (e_mat of same structure as it_mat)
    MOVE : xxx TO e_mat-yyy... and so on (Only change the non-key values)
    MODIFY dbtable FROM e_mat.
    ENDLOOP.
    This code will create a new record if a record with the given key values in e_mat is not found, else, it will update the existing record with the new non-key values in the structure e_mat.
    Thanks and Best Regards,
    Vikas Bittera.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Error when the accrual formula is triggered

    Hi,
    I have created custom accrual formula. In this formula I am using the user defined fucntion which is registered in the 'Define Function' window. The registered function is using one context parameter and 2 ordinary parameters. The context used is the Person id.
    Now when I navigate to people-absence screen and click on accruals i get the following error:
    "APP-PAY-33615: The formula TEST_PTO_ACCRUAL could not be executed because the context PERSON_ID was not set.All the relevant context values must be set before a formula can be executed.
    Action: If this is custom code then please ensure that is sets all the appropriate context values.If this is not custom code then please contact your local support representative."
    The database function is as mentioned below:
    function test1_get_contract_dates
    P_Person_ID in number,
    p_calculation_date in date,
    p_flag in varchar
    return date
    as
    v_cont_end_date date;
    v_cont_start_date date;
    begin
    v_cont_end_date:=to_date('01-Dec-4712');
    v_cont_start_date:=to_date('01-Dec-4712');
    if p_flag = 'ED' then
    select nvl(ppa.DATE_TO,to_date('01-Dec-4712')) into v_cont_end_date from
    per_analysis_criteria pac,
    FND_ID_FLEX_STRUCTURES fifs,
    per_person_analyses ppa
    where ppa.ANALYSIS_CRITERIA_ID=pac.ANALYSIS_CRITERIA_ID
    and ppa.ID_FLEX_NUM=pac.ID_FLEX_NUM
    and pac.ID_FLEX_NUM=fifs.ID_FLEX_NUM
    and ppa.ID_FLEX_NUM=fifs.ID_FLEX_NUM
    and ID_FLEX_STRUCTURE_CODE like 'TEST_CONTRACT'
    and ppa.PERSON_ID=P_Person_ID
    and p_calculation_date between ppa.DATE_FROM and ppa.DATE_TO;
    return v_cont_end_date;
    else
    select nvl(ppa.DATE_FROM,to_date('01-Dec-4712')) into v_cont_start_date from
    per_analysis_criteria pac,
    FND_ID_FLEX_STRUCTURES fifs,
    per_person_analyses ppa
    where ppa.ANALYSIS_CRITERIA_ID=pac.ANALYSIS_CRITERIA_ID
    and ppa.ID_FLEX_NUM=pac.ID_FLEX_NUM
    and pac.ID_FLEX_NUM=fifs.ID_FLEX_NUM
    and ppa.ID_FLEX_NUM=fifs.ID_FLEX_NUM
    and ID_FLEX_STRUCTURE_CODE like 'TEST_CONTRACT'
    and ppa.PERSON_ID=P_Person_ID
    and p_calculation_date between ppa.DATE_FROM and ppa.DATE_TO;
    return v_cont_start_date;
    end if;
    exception
    when others then
    return v_cont_end_date;
    end test1_get_contract_dates;
    I also check the backend table ff_contexts, ff_formula_context_usages. The date is available in this tables.
    thanks,
    ramprasad

    Have you tested you plsql function outside apps, as an independent function?
    What is the hire date of your test person? Is it possible the function is called for a moment the person was not yet existing?
    Is person_id a valid context for a PTO fast formula? Can you check if it works fine for assignment id?

  • Error when sorting foreign key fields in a view

    Hello all
    I created a view and links to other views, and then created a table. In the table I put different attributes from the view and the views it is linked to. When I click the sort ascending or descending button in a column attribute that is in the original view, everything works fine. However if I click the same arrow button for a different column, one that is in a linked view, I get this error message.
    Definition OnlineTerminalId of type Attribute is not found in ObjektiView1.
    I do not understand why this does not work. It shows the values inside these linked views just fine. I did change names of some attributes in the database but I had the problem before then, and after I changed them all back so I doubt that is the issue.
    If anyone can help I would be much obliged

    Dino2dy wrote:
    Hmm, what I did is slightly different, but what my way does is give me the ability to create forms that change automatically when I click a row in a table, which I thought would be useful. I could do it your way too but I would have to do everything again from the beginning, which is something I am trying to avoid. There should be a way to fix this problem this way, as it would be kind of stupid to be able to show the data in the table but just not be able to sort or filter by it.You can still accomplish this by relating the combined VO with your children VOs using View Links, same as what you are doing now.
    Also that view would be HUGE as it is a single table that is connected to a lot of other tables via foreign keys, so my single view would cover 10 tables.Not necessarily. You don't have to include all Entities in your combined VO - just those that you want their attributes displayed on your table.
    Nick

  • Document Splitting Error when using "Difference Posting" field in F-28/F-32

    We use the "difference postings" field to post unapplied cash when we receive customer payments.  We can normally post this without issue, but occassionally we get the "Balancing field "Profit Center" in line item 002 not filled" message.  This only happens when applying cash to a large count of open invoices (to clear or to partially pay) and have a balance that will not be applied to a known invoice.
    I have looked extensively for configuration issues and I must be missing something.
    Thanks in advance,
    Kevin

    The difference postings and partial payments post to document type DZ which is configured properly.
    The config is set for PC splitting.
    While I have some cash gl accounts defaulted to a PC, I am trying to avoid defaulting the reconcilliation accounts to a PC at this point.  I will only do that if there is no other solution to this issue.  But that is a suggestion that I am fairly positive would work.
    Thanks,
    Kevin

Maybe you are looking for

  • Word Crashes when trying to open file from network

    This is a very similar issue like this thread http://social.technet.microsoft.com/Forums/sv-FI/officeitpro/thread/95bc7898-e92d-4e47-8f73-390dba53e851 I cannot open any document from any network share, mapped drive or network place- Word Immediately

  • Libjava.so not found error?

    I have installed j2sdk1.4.0 beta 3 on solaris 2.6. When I run "java" from command line the following error will occur unless the current directory is the "$JDK_HOME/bin" or this directory is specified as the prefix of "java", such as "$JDK_HOME/bin/j

  • Transacoding Blue Ray project in Encore CS4 gives error!

    I am transcading a high def (AVCHD) project fo a Blue Ray image on my hard disk. The transcaoding runs for about 6 hours and when done it gives me the following error: Blue-ray Error:"device not ready", Code:"3", Note: "File can not open.(G:\MyDojo\c

  • Intercompany Purchase Order-Accounting Entries.

    HI Guys, could anyone please guide me what is the process for doing intercompany PO and what are the accounting entries generated as a result of it.Thanks Regards Shaun

  • Getting navigational state in a new template

    Hi everyone, we are creatign a "cleaner" print specific template that will open up in a new window. But we need to pass on the user selections and navigation. This the scenario: -User opens normal template and navigates table + makes selections. -Whe