Error creating Form Column Properties

Hi all. I got a problem creating Form Additional Column Properties through OIM API.
The point is next:
I got an instance of Oracle Identity Manager 11g R1 (11.1.1.5)
I'm making a tool for some OIM objects automatic generations, in particular it should create OIM Forms Definitions.
It creates a form with some columns and one of columns has *"ITResourceLookup" Type*. In order to make form active this column should have propertie "Type" set. It points to ITResource Definitions.
The trouble is that API method don't know such type of propertie 'Type'.
Here is the sample of code i'm using
tcFormDefinitionOperationsIntf formServ = oimClient.getService(tcFormInstanceOperationsIntf.class);
// creating main form
Map map = new HashMap();
map.put("SDK_NAME","SOMENAME");
map.put("SDK_DESCRIPTION", "Form Description");
map.put("SDK_FORM_DESCRIPTION", "Form Description");
map.put("SDK_TYPE","P");
formServ.createForm(map);
//finding created form def key
map.clear();
map.put("Structure Utility.Table Name", "UD_SOMENAME");
tcResultSet forms = formServ.findForms(map);
if (forms.isEmpty()){
log.warn("Some troubles :( Can't find created form SOMENAME");
return;
forms.goToRow(0);
long formDefKey = forms.getLongValue("Structure Utility.Key");
int formVersion = forms.getIntValue("Structure Utility.Latest Version");
int i=1;
for (String mainAttr : connSchema.getAttributes()) {
formServ.addFormField(formDefKey, formVersion, mainAttr.replaceAll("__KEY__", ""), "TextField", "String", 64, i, "", "0", false);
i++;
//adding it resource field
long itResFieldKey = formServ.addFormField(formDefKey, formVersion, "Server", "ITResourceLookupField", "long", 0, i, "", "0", false);
formServ.addFormFieldProperty(itResFieldKey, "Required", "true");
formServ.addFormFieldProperty(itResFieldKey, "Type", serverDefKey.toString()); *<----------------------------------------------------- Here we have exception*
formServ.activateFormVersion(formDefKey, formVersion);
The exception is:
ERROR,07 ноя 2012 16:16:21,252,[ru.iserb.icfconnectorgenerator.OIMObjectsGenerator],tcPropertyNotFoundException
Thor.API.Exceptions.tcPropertyNotFoundException
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl_1035_WLStub.addFormFieldPropertyx(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
     at $Proxy4.addFormFieldPropertyx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfDelegate.addFormFieldProperty(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.security.Security.runAs(Security.java:41)
     at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
     at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
     at $Proxy5.addFormFieldProperty(Unknown Source)
     at ru.iserb.icfconnectorgenerator.OIMObjectsGenerator.createForms(OIMObjectsGenerator.java:400)
     at ru.iserb.icfconnectorgenerator.OIMObjectsGenerator.generate(OIMObjectsGenerator.java:181)
     at ru.iserb.icfconnectorgenerator.mainFrame.btn_GenOIMObjectsActionPerformed(mainFrame.java:718)
     at ru.iserb.icfconnectorgenerator.mainFrame.access$1200(mainFrame.java:19)
     at ru.iserb.icfconnectorgenerator.mainFrame$13.actionPerformed(mainFrame.java:215)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     at java.awt.Component.processMouseEvent(Component.java:6288)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
     at java.awt.Component.processEvent(Component.java:6053)
     at java.awt.Container.processEvent(Container.java:2041)
     at java.awt.Component.dispatchEventImpl(Component.java:4651)
     at java.awt.Container.dispatchEventImpl(Container.java:2099)
     at java.awt.Component.dispatchEvent(Component.java:4481)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
     at java.awt.Container.dispatchEventImpl(Container.java:2085)
     at java.awt.Window.dispatchEventImpl(Window.java:2478)
     at java.awt.Component.dispatchEvent(Component.java:4481)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
     at java.awt.EventQueue.access$000(EventQueue.java:84)
     at java.awt.EventQueue$1.run(EventQueue.java:602)
     at java.awt.EventQueue$1.run(EventQueue.java:600)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
     at java.awt.EventQueue$2.run(EventQueue.java:616)
     at java.awt.EventQueue$2.run(EventQueue.java:614)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: Thor.API.Exceptions.tcPropertyNotFoundException
     at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.addFormFieldProperty(tcFormDefinitionOperationsBean.java:3432)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB.addFormFieldPropertyx(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
     at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
     at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy460.addFormFieldPropertyx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
     at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl.addFormFieldPropertyx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:523)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
     at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
The propertie "Required" is set to True, so no troubles here. But propertie "Type" is not accepted by server.
If we comment the line with setting propertie 'type' we cannot activate form, it is needed to be set. If we try, we got next exception:
ERROR,07 ноя 2012 16:32:15,109,[ru.iserb.icfconnectorgenerator.OIMObjectsGenerator],tcAPIException
Thor.API.Exceptions.tcAPIException: Required properties have NOT been set for the following field(s) : Required properties have NOT been set for the following field(s)
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl_1035_WLStub.activateFormVersionx(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
     at $Proxy4.activateFormVersionx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfDelegate.activateFormVersion(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.security.Security.runAs(Security.java:41)
     at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
     at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
     at $Proxy5.activateFormVersion(Unknown Source)
     at ru.iserb.icfconnectorgenerator.OIMObjectsGenerator.createForms(OIMObjectsGenerator.java:436)
     at ru.iserb.icfconnectorgenerator.OIMObjectsGenerator.generate(OIMObjectsGenerator.java:181)
     at ru.iserb.icfconnectorgenerator.mainFrame.btn_GenOIMObjectsActionPerformed(mainFrame.java:718)
     at ru.iserb.icfconnectorgenerator.mainFrame.access$1200(mainFrame.java:19)
     at ru.iserb.icfconnectorgenerator.mainFrame$13.actionPerformed(mainFrame.java:215)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     at java.awt.Component.processMouseEvent(Component.java:6288)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
     at java.awt.Component.processEvent(Component.java:6053)
     at java.awt.Container.processEvent(Container.java:2041)
     at java.awt.Component.dispatchEventImpl(Component.java:4651)
     at java.awt.Container.dispatchEventImpl(Container.java:2099)
     at java.awt.Component.dispatchEvent(Component.java:4481)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
     at java.awt.Container.dispatchEventImpl(Container.java:2085)
     at java.awt.Window.dispatchEventImpl(Window.java:2478)
     at java.awt.Component.dispatchEvent(Component.java:4481)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
     at java.awt.EventQueue.access$000(EventQueue.java:84)
     at java.awt.EventQueue$1.run(EventQueue.java:602)
     at java.awt.EventQueue$1.run(EventQueue.java:600)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
     at java.awt.EventQueue$2.run(EventQueue.java:616)
     at java.awt.EventQueue$2.run(EventQueue.java:614)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: Thor.API.Exceptions.tcAPIException: Required properties have NOT been set for the following field(s) : Required properties have NOT been set for the following field(s)
     at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.activateFormVersionData(tcFormDefinitionOperationsBean.java:213)
     at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.activateFormVersion(tcFormDefinitionOperationsBean.java:130)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB.activateFormVersionx(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
     at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
     at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy460.activateFormVersionx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
     at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl.activateFormVersionx(Unknown Source)
     at Thor.API.Operations.tcFormDefinitionOperationsIntfEJB_r9z3jf_tcFormDefinitionOperationsIntfRemoteImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:523)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
     at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Desing console can set such propertie. But how should i set it through API?
Does anyone have ideas how should i solve this problem?

Hi,
regarding the SQL error, my suggestion is to find a way to replicate it on demand (for example if it happens always when you update a certain field) and enable tracing, in this way you can get more detailed information on the error (when you enable the trace
CRM will slow down and the log is big, for this is better to enable it just for logging when you have the error)
hope it helps
My blog: www.crmanswers.net -
Rockstar 365 Profile

Similar Messages

  • Error creating forms context

    Does anyone know why this C code, when executed from UNIX command line works, but won't work as a host command from a form. I am running 9iAS release 2, on AIX. I have tried using a shell script in which I set all necessary environment variables before running the command. The shell script works from command line, but not from the form. Here's the C code......
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = (ub4)0;
    if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context\n");
    exit(1);
    /* Load the form module into memory */
    if ( d2ffmdld_Load(ctx, &form, argv[1], FALSE) !=
    D2FS_SUCCESS )
    fprintf(stderr, "Failed to load form : %s\n", argv[1]);
    exit(1);
    /* Get the name of the form module */
    if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
    fprintf(stderr, "Error getting the name of the form.\n");
    else
    /* print the name of the form, then free it */
    printf("The name of the form is %s\n", form_name);
    free(form_name);
    /* Destroy the in-memory form */
    if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
    fprintf(stderr, "Error destroying the form module\n");
    /* Close the API and destroy context */
    d2fctxde_Destroy(ctx);

    You could as well use this sample code
    #include <stdio.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc, char *argv[])
         d2fctxa ctx_attr;
         d2fctx *ctx;
         d2ffmd *form;
         d2fcnv *pd2fcnv;
         d2fgra *pd2fgra;
         text *form_name;
         /* Check arguments */
         if ( argc != 2 )
              fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
              exit(1);
         /* Create Forms API context */
         ctx_attr.mask_d2fctxa = (ub4)0;
         if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
              fprintf(stderr, "Error creating Forms API context\n");
              exit(1);
         /* Load the form module into memory */
         if ( d2ffmdld_Load(ctx, &form,(text*) argv[1]) != D2FS_SUCCESS )
              fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
              exit(1);
         /* Get the name of the form module */
         if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
              fprintf(stderr, "Error getting the name of the form module\n");
         else
              /* Print the name of the form, then free it */
              printf ("The name of the form is %s\n", form_name);
              free(form_name);
         if ( d2ffmdsv_Save(ctx, form, (text *)argv[1])
         != D2FS_SUCCESS )
         fprintf(stderr, "Could not save the form\n");
         /* Destroy the in-memory form */
         if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
         fprintf(stderr, "Error destroying form module\n");
         /* Close the API and destroy context */
         d2fctxde_Destroy(ctx);
         return 0;

  • Error creating form bean (STRUTS)

    Hi
    I am new to STRUTS framework, On starting I am getting this error "Error creating form bean". What would be the solution, can anybody suggest ?

    I am new to STRUTS framework, On starting I am
    m getting this error "Error creating form bean". What
    would be the solution, can anybody suggest ?This seems to be an error with struts-config.xml. Post your code if you need any further help.
    ***Annie***

  • Error creating form based on a table

    This is wierd. I am running WebDB2.2
    and up until now it has been no problem
    creating forms from tables. But now in
    this schema called SUMI I am unable to
    create a form based on a table. I get
    the error below. I have assigned SUMI
    almost every possible permission
    (DBA, WebDeveloper) so I
    don't think it is a permissions issue.
    Any ideas? Thanks in advance. Marvin.
    ---Error Message--
    14/Aug/2001:13:12:28
    ORA-06550: line 5, column 7:
    PLS-00302: component 'FORM_NOTWORK' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    ORA-06550: line 5, column 7:
    PLS-00302: component 'FORM_NOTWORK' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    VARIABLES IN FORM NOT IN PROCEDURE:
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    null

    I am bumping this up. Can anybody help or
    at least point me in the right direction?
    Thanks!

  • Error in Form Handler Properties?

    Hi
    I've got at strange error in the Form Handler Properties window. When I open an Event Handler I have inserted earlier it gives me this:
    Library oand Function fields are empt. If I try to open the optionset on Library its empty?
    When I close down the form again it gives me this really "informative" error:

    Hi,
    regarding the SQL error, my suggestion is to find a way to replicate it on demand (for example if it happens always when you update a certain field) and enable tracing, in this way you can get more detailed information on the error (when you enable the trace
    CRM will slow down and the log is big, for this is better to enable it just for logging when you have the error)
    hope it helps
    My blog: www.crmanswers.net -
    Rockstar 365 Profile

  • Error creating Form

    HI
    I ve a serious problem.It's little lengthy but please have a patience and read it.
    I have created a link between two database schemas say 'a' and 'b'.In schema 'b' i created a synonym for a table(emp_master) in schema 'a'.Then I want to create a Form based on this synonym for emp_master but I am not able to create it.
    I get error saying -
    An unexpected error occurred: ORA-03116: invalid buffer length passed to a conversion routine
    ORA-02063: preceding line from PRODH1.WORLD (WWV-16016)
    (Prodh1.world is my link name ).
    I checked the error log but it's not explanatory.
    Can you help me..I am not able to proceed.
    Thanks,
    Swati

    Hi Swati,
    Are U sure U want to create a link between 2 different schemas? Aren't they 2 different instances? U don't need a link betwwen 2 schemas...
    Also, I talked to my DBA and she thinks you may talk to your support personnel.
    Wish U luck...
    Alex
    null

  • Error creating policy with context

    When I try to create a policy:
    BEGIN
    ctx_ddl.create_policy('sdoscan.ec_prd_prditmname','sdoscan.ec_prd_summ.prditmname','','','','','','','','','','CTXSYS.DEFAULT_STOPLIST','');
    COMMIT;
    END;
    I get this error:
    ORA-20000: ConText error:
    DRG-10503: Unknown message id 10503
    ORA-06512: at "CTXSYS.DRUE", line 180
    ORA-06512: at "CTXSYS.CTX_DDL", line 1348
    ORA-06512: at line 2
    Does anyone know what this means and / or how to fix it?

    You could as well use this sample code
    #include <stdio.h>
    #include <stdlib.h>
    #include <malloc.h>
    #include <d2fctx.h> /* Forms API context */
    #include <d2ffmd.h> /* Form module header file */
    int main (int argc, char *argv[])
         d2fctxa ctx_attr;
         d2fctx *ctx;
         d2ffmd *form;
         d2fcnv *pd2fcnv;
         d2fgra *pd2fgra;
         text *form_name;
         /* Check arguments */
         if ( argc != 2 )
              fprintf(stderr, "USAGE: %s <filename>\n", argv[0]);
              exit(1);
         /* Create Forms API context */
         ctx_attr.mask_d2fctxa = (ub4)0;
         if ( d2fctxcr_Create(&ctx, &ctx_attr) != D2FS_SUCCESS )
              fprintf(stderr, "Error creating Forms API context\n");
              exit(1);
         /* Load the form module into memory */
         if ( d2ffmdld_Load(ctx, &form,(text*) argv[1]) != D2FS_SUCCESS )
              fprintf(stderr, "Failed to load form module: %s\n", argv[1]);
              exit(1);
         /* Get the name of the form module */
         if ( d2ffmdg_name(ctx, form, &form_name) != D2FS_SUCCESS )
              fprintf(stderr, "Error getting the name of the form module\n");
         else
              /* Print the name of the form, then free it */
              printf ("The name of the form is %s\n", form_name);
              free(form_name);
         if ( d2ffmdsv_Save(ctx, form, (text *)argv[1])
         != D2FS_SUCCESS )
         fprintf(stderr, "Could not save the form\n");
         /* Destroy the in-memory form */
         if ( d2ffmdde_Destroy(ctx, form) != D2FS_SUCCESS )
         fprintf(stderr, "Error destroying form module\n");
         /* Close the API and destroy context */
         d2fctxde_Destroy(ctx);
         return 0;

  • Getting error while creating form and report on webservice: ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.

    i am using the following description to create a web service reference:
    web reference :REST
    Name :Yahoo Map
    URL :http://local.yahooapis.com/MapsService/V1/mapImage
    HTTP Method: GET
    Basic Authentication: No
    Add Parameter:
    Name       Type
    appid        String
    location    String
    Output Format: XML
    XPath to Output Parameters : /Result
    Output Parameter:
    Name       Path       Type
    Url          /text()      String
    Then i tried to create form and report on webservice:
    Web Service Reference Type: Yahoo Map
    Operation: doREST
    All the fields i keep as default
    I tick the checkbox (url)in report Parameter
    After clicking next whereever required i click create button
    I get the following error
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    Please someone help to solve this as i need to fix it urgently.

    i exported the application from apex.oracle.com and imported it to our environment
    import went fine, but when I ran the IR page I got
    ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
    evidently the problem is a lack of public execute on DBMS_LOB, which is used in the generated IR source.
    while waiting for the DBA to grant privs on DBMS_LOB, changing the dbms_lob.getlength call to length() fixes the IR.
    however, i am not getting the download link on the associated form page... changed templates, that's not the issue -- we'll see if that's a dbms_lob issue as well

  • APEX:Getting error while creating form and report on webservice: ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.

    I am using Apex 4.2.2.00.11
    am using the following description to create a web service reference:
    web reference :REST
    Name :Yahoo Map
    URL :http://local.yahooapis.com/MapsService/V1/mapImage
    HTTP Method: GET
    Basic Authentication: No
    Add Parameter:
    Name       Type
    appid        String
    location    String
    Output Format: XML
    XPath to Output Parameters : /Result
    Output Parameter:
    Name       Path       Type
    Url          /text()      String
    Then i tried to create form and report on webservice:
    Web Service Reference Type: Yahoo Map
    Operation: doREST
    All the fields i keep as default
    I tick the checkbox (url)in report Parameter
    After clicking next whereever required i click create button
    I get the following error
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    Please someone help to solve this as i need to fix it urgently.

    336554,
    Looks like there is a 127-column limit on the number of report columns supported when using that wizard. Do you have more than that?
    57434

  • Error while Creating form on remote Database

    Hi All
    I m getting error while creating form on remote database thru
    Database link
    Line/Column Error
    7099/21 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7099/9 PL/SQL: SQL Statement ignored
    7749/16 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7749/9 PL/SQL: SQL Statement ignored
    and statement at line specified is insert statement. and at end
    of insert statement Returning caluse is there as follows
    RETURNING ROWID INTO "_ROWID";
    This returning clause is causing error. Does anybody knows how
    to handel it??
    Thanks
    Yogesh

    Yogesh
    I haven't seen the ora-03116 problem.
    What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
    Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
    You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
    I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
    data database: D grants to P (local schema) on table T
    public syn T = D.T (sys) (get the right schema)
    portal dbase : public db link to data database connecting as P
    public syn T = T@dblink (sys) (over the link)
    P is a schema created in both databases.
    Test is: P in portal dbase can "select * from T" and gets the right data.
    I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
    Hope this helps
    Greg

  • Error while creating a column in master

    Hi all,
    I am using the sap business one 8.8 version.
    I am getting an error while creating a user defined column for a master table.
    The error code is -104.
    The method I had used for creating a master table is as follows.
    *#region Create Table*
            public static bool CreateTable(string TableName, string TableDescription, SAPbobsCOM.BoUTBTableType TableType, SAPbouiCOM.Application oApplication, SAPbobsCOM.Company oCompany)
                SAPbobsCOM.UserTablesMD oUserTableMD;
                int intRecCode;
                bool boolResult = false;
                oUserTableMD = (SAPbobsCOM.UserTablesMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables);
                try
                    if (!oUserTableMD.GetByKey(TableName))
                        oUserTableMD.TableName = TableName;
                        oUserTableMD.TableDescription = TableDescription;
                        oUserTableMD.TableType = TableType;
                        intRecCode = oUserTableMD.Add();
                        if (intRecCode == 0)
                            boolResult = true;
                catch (Exception e)
                    oApplication.MessageBox(e.Message, 1, "Ok", "", "");
                finally
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTableMD);
                    GC.Collect();
                return boolResult;
            #endregion
    ==================================
    The following is the code for creating a column in the above master
    private static void AddField(string TableName, string ColumnName, string ColDescription, SAPbobsCOM.BoFieldTypes FieldType, int Size, SAPbobsCOM.BoFldSubTypes SubType, string ValidValues, string ValidDescription, string
    SetValidValues, SAPbouiCOM.Application oApplication, SAPbobsCOM.Company oCompany)
    int intLoop;
                string[] strValue, strDesc;
                SAPbobsCOM.UserFieldsMD oUserFieldsMD;
                SAPbobsCOM.Recordset oRecordSet;
                oUserFieldsMD = (SAPbobsCOM.UserFieldsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
                oRecordSet = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                try
                    oRecordSet.DoQuery("SELECT COUNT(*) FROM CUFD WHERE TableID = '" + TableName + "' AND AliasID = '" + ColumnName + "'");
                    if (Convert.ToInt16(oRecordSet.Fields.Item(0).Value) == 0)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
                        oRecordSet = null;
                        strValue = ValidValues.Split(Convert.ToChar(","));
                        strDesc = ValidDescription.Split(Convert.ToChar(","));
                        if (strValue.GetLength(0) != strDesc.GetLength(0))
                            throw new Exception("Invalid Values");
                        oUserFieldsMD.TableName = TableName;
                        oUserFieldsMD.Name = ColumnName;
                        oUserFieldsMD.Description = ColDescription;
                        oUserFieldsMD.Type = FieldType;
                        if (FieldType != SAPbobsCOM.BoFieldTypes.db_Numeric)
                            oUserFieldsMD.Size = Size;
                        else
                            oUserFieldsMD.EditSize = Size;
                        oUserFieldsMD.SubType = SubType;
                        oUserFieldsMD.DefaultValue = SetValidValues;
                        for (intLoop = 0; intLoop <= strValue.GetLength(0) - 1; intLoop++)
                            oUserFieldsMD.ValidValues.Value = strValue[intLoop];
                            oUserFieldsMD.ValidValues.Description = strDesc[intLoop];
                            oUserFieldsMD.ValidValues.Add();
                        if (oUserFieldsMD.Add() != 0)
                            UpdateLastErrorDetails(-104, oCompany);
                catch (Exception e)
                { oApplication.MessageBox(e.Message, 1, "Ok", "", ""); }
                finally
                    if (oRecordSet != null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
                        oRecordSet = null;
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD);
                    GC.Collect();

    Hi,
    I am newly using BI publisher . I am using 10.1.3.4.0 . I am just trying to create a report in test name. that is the first step to create a report where i am getting error. I am using default RPD paint , where all the user and Groups are defined .

  • Unable to load the following resource: Error: too many columns- form won't

    Hi ..
    Can you please suggest on the following error, which i am facing the issue while opening data form in Hyperion Planning 11.1.1.4 .
    Unable to load the following resource: Error: too many columns- form won't
    Regards,
    Vasu

    It is something around 256 if I am not mistaken, I dread to think what a form with 700 columns is like to work with.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Strange error while creating form/report pages [ORA-20001]

    While creating two new pages with a form and report on it, I've got a strange error. I tried to create the pages several times, but I always got the same error:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (FLOWS_030000.WWV_FLOW_SHORTCUT_IDX1) violated
    Error creating query and update.
    Return to application.
    I'm using the wizard to get the pages, like I did many times before (without problems), but this time it will not work!
    Greetings,
    Jan

    Below is a view or sql query i want to create in XE to show users report on startdate,end date,road name,etc,i am having a problem making this view work when i put the code in the sql script. Kindly help me with this if you can please. Thanks. CREATE OR REPLACE FORCE VIEW "RESULTS_DETAILS_VIEW" ("STARTDATE","ENDDATE","ROAD","NAME","STATUS","TYPE","UTILITIES","DATES","LUTON",
    AS SELECT
    d.Startdate,
    d.EndDate,
    l.Road,
    u.Name,
    ws.Status,
    wt.Type,
    cb.startdate,
    cb.enddate,
    cb.road,
    cb.utility,
    cb.type,
    cb.status
    FROM
    Dates d,
    Luton l,
    Utilities u,
    WorkStatus ws,
    WorkType wt,
    Comb cb
    WHERE cb.startDate = d.StartDate
    AND cb.endDate = d.EndDate
    AND cb.road = l.Road
    AND cb.utility = u.Name
    AND cb.type = wt.Type
    AND cb.status = ws.Status
    WITH READ ONLY
    /

  • Row Currency Error in ADF Create Form

    Hi. Can anybody help me with this simple problem. I have been reading through the threads, and I tried the solutions, but it doesn't work.
    I am having this error:
    JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[-14 ]
    I have one page, with a form. The form was created by dragging a view from the Data Control. The primary key is of type DBSequence. the client side validation is disabled, so errors created are done by the ADF Model validation, since the fields has the af:validator in them.
    I clicked the submit once, it shows the error, for the required values. Without doing anything, I clicked the submit for a second time. I get the said error about the currency, as well as errors for required fields. Funny thing is, after clicking the submit button twice, besides the error, the control fields disappear. Its like its a new record.
    Can someone help? Thanks in advance.

    This is what I found out when asking our team that prepares the patches...
    As you know the patches are generic and as a result can be applied to other platforms that JDeveloper is supported on. However the .bat that comes in the patch is for Windows only, but for other platforms you can most times copy the script from the file and replace the windows commands with their equivalent, for the required OS. Of course, ensuring to follow the patch readme instructions and to test the customized script to ensure the updates are applied correctly.
    Open the bat file in a text editor and you should be able to see what files are being replaced and/or installed, and in what locations.
    For example, in the bat look for windows commands such as 'copy', 'move', 'del' (most of the scripts are failry easy to understand what is going on). Take a backup and replace the windows commands e.g. on unix/linux to 'cp', 'mv', 'rm'
    The windows commands in the bat file can be changed to the required operating system's equivalent commands. Change manually of using the text editor's search & replace functionality.
    If the customer isn't confident or comfortable doing that Support can help out.

  • Can you create forms that automatically calculate columns of numbers? Example of such form would be

    I am trying to recreate a loan application form which includes several columns of numbers which need to totaled, currently we are using a Word document, but are starting to find that it is cumbersome and very limiting. It was suggested that we check out Adobe forms as a possible solution.

    In FormsCentral, you can use formulas in the response table to add together values in a response. For an example of this, you can fill out this form:
    https://adobeformscentral.com/?f=nAo5QQeg5J2NDfXYlZW4fw
    And you can see the response table for that form here:
    https://formscentral.acrobat.com?d=nAo5QQeg5J2NDfXYlZW4fw
    I've created two columns that use different labels to add together the number fields in the form. You can mouse over a cell in those columns to see the formulas used.
    Hope that helps!

Maybe you are looking for