Beware: conversion error with dates

When I converted my pdf to xlsx format, some dates in a table were not converted correctly. In the pdf file, the dates were in mm/dd/yyyy format, but if the day was between 1-12, Export PDF treated the date as if was in dd/mm/yyyy format. It couldn't do that for dates with day 13-31 because that would have been an invalid month so these dates were converted correctly. This problem does not occur when converting the pdf file to Word docx format.
Is this a known problem?

Hi,
Would you send your PDF document to [email protected] as an email attachment? 
I will check it from my end.Please add the link to this forum post for reference.
Regards,
Florence

Similar Messages

  • Error with Date Variable

    I am trying to create a process to import to import data using a date variable but when I use the date to get the data from SQL server I am getting a error.
    I have tried setting the variable as both a string and date - Select
    CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) and map it to the Variable. The date variable is working. It’s correct in the Watch and I am able to use the variable to get data from an Open Link database (row_date = ?)
    in the OLE DB Source query. I get a "Invalid character value for cast specification"
    error when doing the same thing to get data from an SQL Server OLE DB Source
    where the date field is DateTime (row_date = ?). I have tried making the variable as a date and string but get the same error regardless. To make it work, I have to duplicate the date
    calculation in the query - HAVING (row_date = CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) ) which works fine.
    HAVING (row_date = ?) gives the error with the Parameter mapped to the variable.
    Any suggestions as to how to make this work correctly?

    May I suggest to use style 111 instead of 101?
    From experience, yyyy/mm/dd date format will work most of the time for date conversion and
    It's due to different date format from mm/dd/yyyy to the system date format that SQL Server is using.
    Hope this helps.
    ~ J.

  • Report data binding error with date values

    I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
    that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
    my sql results to a CF Report Builder 7.02 PDF report and it works
    fine. If I dump the date values before I change them, they look
    like the following: {ts '2004-12-20 00:00:00'} . However I have
    tried a number of ways of manipulating the date before sending it
    to the report, but I continue to get errors. I don't care what
    format they go to the report in, since the report reformats them
    anyway. I checked to make sure that none of the dates were null.
    For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
    {ts '2004-12-20 00:00:00'} format when I dump the query results to
    screen. Where:
    ldCFPrcInputDate = 12/20/2004
    CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
    00:00:00'}
    ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
    00:00:00'}
    I get the error:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    coldfusion.runtime.OleDateTime -> Date
    Not using the CreateODBCDate function for example <cfset
    ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
    get:
    Report data binding error Unable to get value for field
    'prcinputdate' of class 'java.util.Date'.
    java.lang.String -> Date
    Here are some of my failed attempts:
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDateTime(#ldCFPrcInputDate#) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    #ldCFPrcInputDate# />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    Trim(createODBCDateTime(ldtmpdate)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate({05-07-2006}) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('{05-07-2006}') />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(05/07/2006) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate('05/07/2006')/>
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    CreateODBCDate(parseDateTime('05/07/2006')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime(05/07/2006)) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] =
    parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
    />
    <cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
    />
    I also did some googling without success. Any help is
    appreciated.

    You may want to make sure that the column is not included in
    the query variable list in your report cfr file.
    The newest version of the Report Builder, which may be
    installed on the server, no longer tolerates vars appearing in that
    list of they are not in the query itselft.

  • Error with data source creation

    Error during Data Source creation: weblogic.common.ResourceException: DataSource
    (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
    (oraclePool)
    I have already created oraclePool with the following properties:
    Name : oraclePool
    URL : jdbc:weblogic:oracle
    Driver: weblogic.jdbc.oci.Driver
    Properties:
    user=system
    server=myserver
    In weblogic-ejb-jar.xml file:
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
              <jndi-name>jdbc.GangsterDB</jndi-name>
              </resource-description>
         </reference-descriptor>
    In ejb-jar.xml file:
    <resource-ref>
              <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
    Do I need to make changes in my Entity Bean files? I have made a datasource called
    GangsterDB. I do not know the reason for this error. Please do let me know.
    Error during Data Source creation: weblogic.common.ResourceException: DataSource
    (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
    (oraclePool)
    Thank you
    Ronak Parekh

    I am still getting the same error:
    Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
    The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
    that the DataSource has been deployed
    successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    In my console, I have created a connection pool 'oraclePool' and 3 datasource
    'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
    'jdbc.JobDB'. I have also specified the target server and there seems to be no
    error. I have checked 'Monitor All Connection
    Pools' and oraclePool is running. I still do not understand the problem that I
    am getting and have no clue how to solve it.
    Thank you
    Ronak Parekh
    My weblogic-ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.GangsterDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.GangsterDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.OrganizationDB</jndi-name>
              </resource-description>
              </reference-descriptor>
              <local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>JobEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.JobDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.JobDB</local-jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    My ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
         "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <display-name>Business Component CMP 2.0</display-name>
         <enterprise-beans>
    <entity>
              <display-name>Gangster Entity Bean</display-name>
         <ejb-name>GangsterEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.GangsterHome</local-home>
    <local>com.sempire.builder.business_component.Gangster</local>
    <ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
         <abstract-schema-name>GangsterEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>nickname</field-name></cmp-field>
    <cmp-field><field-name>badness</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
         <display-name>Organization Entity Bean</display-name>
    <ejb-name>OrganizationEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
    <local>com.sempire.builder.business_component.Organization</local>
    <ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>OrganizationEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
                   <cmp-field><field-name>description</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
    <display-name>Job Entity Bean</display-name>
    <ejb-name>JobEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.JobHome</local-home>
    <local>com.sempire.builder.business_component.Job</local>
    <ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
    <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>JobEJB</abstract-schema-name>
                   <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>score</field-name></cmp-field>
                   <cmp-field><field-name>setupCost</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
         </enterprise-beans>
         <relationships>
    <ejb-relation>
    <ejb-relation-name>organization-memberGangsters</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>memberGangsters</cmr-field-name>
         <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>organization</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>gangsters-jobs</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>GangsterEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>jobs</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>JobEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>gangsters</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
              </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>organization-theBoss</ejb-relation-name>
         <ejb-relationship-role>
         <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
         <relationship-role-source>
              <ejb-name>OrganizationEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>theBoss</cmr-field-name>
                   </cmr-field>
              </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
         </relationships>
         <assembly-descriptor>
         <container-transaction>
         <method>
              <ejb-name>GangsterEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>OrganizationEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>JobEJB</ejb-name>
              <method-name>*</method-name>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    My weblogic-cmp-rdbms-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
    <weblogic-rdbms-jar>
         <weblogic-rdbms-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <data-source-name>GangsterDB</data-source-name>
              <table-name>GANGSTER</table-name>
              <field-map>
         <cmp-field>iD</cmp-field>
         <dbms-column>ID</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>name</cmp-field>
         <dbms-column>NAME</dbms-column>
         </field-map>
              <field-map>
                   <cmp-field>nickname</cmp-field>
         <dbms-column>NICKNAME</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>badness</cmp-field>
         <dbms-column>BADNESS</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <data-source-name>OrganizationDB</data-source-name>
              <table-name>ORGANIZATION</table-name>
              <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>description</cmp-field>
                   <dbms-column>DESCRIPTION</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>JobEJB</ejb-name>
              <data-source-name>JobDB</data-source-name>
              <table-name>JOB</table-name>
         <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>score</cmp-field>
                   <dbms-column>SCORE</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>setupCost</cmp-field>
                   <dbms-column>SETUPCOST</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-relation>
         <relation-name>organization-memberGangsters</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>memberGangsters---organization</relationship-role-name>
              <column-map>
              <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>gangsters-jobs</relation-name>
         <table-name>JOBS</table-name>
         <weblogic-relationship-role>
              <relationship-role-name>gangsters---jobs</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
         <weblogic-relationship-role>
              <relationship-role-name>jobs---gangsters</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>organization-theBoss</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>organization---theBoss</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution.
    The problem, in a nutshell:
    I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error problems. If I switch to primitive types, I don't get conversion errors. The built-in FloatConverter says (in the documentation at least) that it supports both primitives and boxed types. This was all working in EA4, though. I am discovering this problem as I migrate from EA4 to 1.0.
    The code is pretty straightforward:
    public class Bean implements Serializable {
    public float getProp() {...}
    public void setProp(float) {...}
    public Float getPropOld() {...}
    public void setPropOld(Float) {...}
    <!-- works -->
    <h:inputText id="floatinput" value="#{BeanInstance.prop}"/>
    <!-- doesn't work -->
    <h:inputText id="floatinputold" value="#{BeanInstance.propOld}"/>
    Any ideas? I have tried explicitly calling the FloatConverter but that gave the same problems.

    Okay, I figured out my problem.
    The JSF spec implies that f:convertNumber may be used inside an h:inputText tag. The early versions of Core JSF go further and show f:convertNumber being used inside an h:inputText tag in one of the examples. (Chapter 7, conversions).
    However, this has been the source of my problem. When using f:convertNumber, the converter would automatically determine the data type without regard to the data type in the backing bean. Hence, it would try to pass Longs or Doubles to the bean instead of Floats.
    I believe this may be an issue in the 1.0 FR release.

  • UISelectMany - Conversion error with HashMap Property

    Hi,
    I have a Backing Bean with a HashMap Property.
    public HashMap getItem()
    public void setItem(HashMap map)
    so I bind a Value of an UIInputText Component like that:
    <h:inputText id="txtname" value="#{MyBean.item['myKey']}" />
    this works pretty well.
    But when I try to do the same with an <h:selectManyCheckbox> Component I got a "Conversion Error".
    For what reason? I expected an Array or List Object.
    Thanks for help
    Ralph

    I solved the problem by creating a custom converter, which checks if the current valueBinding is null.
    If so, it replace the valueBinding with an empty ArrayList().
    public class MultiValueConverter implements Converter {
         public final static String CONVERTER_ID = "org.imixs.workflow.j2ee.faces.MultiValueConverter";
         public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException {
    // no changes
    return value;
         public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException {
    // Check if current value Binding is bind to an null-Object
    javax.faces.el.ValueBinding valueBinding=component.getValueBinding("value");
    if (valueBinding!=null && valueBinding.getValue(context)==null) {
    // replace binding with empty ArrayList
    valueBinding.setValue(context,new ArrayList());
    // no changes
    return value.toString();
    you can find the full code under www.imixs.org (an open source project for a EJB based workflow engine)

  • Critical error with data load

    Hello Gurus,
    I was trying to load data ffrom ODS to a Cube using DTP when I got the following error:
    Exceptions in Substep: End Routine - RSBK231
    The database returned a value containing an error
    Do you know what this error message means. It refers to a end routine and I had no syntaxt errors with the endroutine. It also worked fine with previous data loads.
    Any help in this regards is appreciated.
    Thanks
    Rishi

    Hi Rishi,
    There might be some syntactical error in your end routine e.g division by a zero. This is just an example. Try running the DTP in Debug mode (you will get the option under execute tab of DTP) and see what the end routine code is doing. There might be some exception which you need to take care of.
    Thanks..
    Shambhu

  • How to check a lot of conversion errors with one TRY-CATCH?

    Hi,
    I've to import a lot of data from a flatfile.
    To avoid short dumps when there are non-numeric data's for a numeric field in the file, I load every record in a structure that have only CHAR fields.
    Then I move this fields in a TRY-Catch block to the real fields like this:
    TRY.
        field1 = field_from_file1
        field2 = field_from_file2
        field3 = field_from_file3
    CATCH cx_sy_conversion_no_number INTO lr_exception.
        PERFORM fehler USING lr_exception.
    ENDTRY.
    This construct works until the first field has a conversion error. However I will test all fields to get a complete list of the errors. And I am to lazy to make a TRY-CATCH construct for hundred of move-statements.
    Is there a better trick to check the success of <b>all</b> move operation?
    Regards,
    Stefan

    Hi Stefan,
    sorry, the development system is down right now, so I could not test. But I'm convinced you can figure it out:
    You may specify the parameters of a method as TYPE REF TO DATA.
    Then, in the calling routine you may have
    data:
      anyrefsource type ref to data,
      anyreftarget type ref to data.
    GET REFERENCE OF p_source INTO anyrefsource.
    GET REFERENCE OF p_target INTO anyreftarget.
    call method try_conv
      exporting
        source = anyrefsource
        target = anyreftarget.
    and in the method:
    ASSIGN source->* TO <fs_source>
    and so on...
    BTW: I know you have to use typed parameters in OO. Can't you use "TYPE ANY"?
    regards,
    C.

  • LSMW: Codepage conversion error with a Unicode data file

    Hi all,
    I am currently developing a LSMW upload program which has to use a Unicode data file. The underlying system/target system is NOT a Unicode system. The data file also contains non-Latin2 characters.
    In the step "Specify Files", I have specified my Unicode data file and specified the codepage type "4110 - Unicode UTF-8".
    In the step "Read Data", then I get the runtime error "CONVT_CODEPAGE", exception "CX_SY_CONVERSION_CODEPAGE".
    I would expect that all non-Unicode characters are automatically transformed to "#", but the conversion progam breaks. The character transformation to "#" would be fine.
    I am really wondering why, at first, I am able to specify the Unicode codepage type, but then, the file cannot be converted correctly.
    What do I make wrong, what can I do to avoid the error?
    Thanks a lot in advance for helping me out...
    Regards,
    Klaus

    Hello,
    You need convert the file with the format UTF-8. In notepad you can choose this option.
    Regards,
    Oscar.

  • Error with date conversion

    Hi,
    I receive a date from an IDOC in the format 20061005160300. This date must be converted to insert it in an Oracle database. I wrote a little UDF which cuts the string to 8 characters and puts a TO_DATE(' before and a ','YYYY-MM-DDD') after it.
    Now I get an Oracle error because somehow there is a blank (after the TO_DATE') in the final string:
    <DATUM_VB hasQuot="No">TO_DATE(' 2006092','YYYY-MM-DD')</DATUM_VB>
    Here is my UDF:
    int length = date.length();
    String sub = new String();
    String before = new String("TO_DATE('");
    String after = new String("','YYYY-MM-DD')");
    if(length >= 8 && !date.equals("00000000"))
    sub = before+date.substring(0, 8)+after;
    else{
    sub = "";
    return sub;
    Do you have any idea why there is a blank in it? If I test the mapping there's no error and no blank...
    Regards
    Dominic

    Hi Dominic,
    Alternatively use Transform fn under Date Function..
    Double click on the built in fn and in the property area u have to key key source and target date Format
    give as follows..
    Source Date Format: yyyyMMddHHmmss
    Target Date Format: yyyy-MM-dd
    Use built in Concat fun further to construct ur To_date function.
    Regards,
    Sudharshan

  • Advanced CAN Frame to Channel Conversion: Error with LV 8.5.1

    Hello!
    I´ve tried to read in a DBC-file with the "Advanced CAN Frame to Channel Conversion Example" on a LabVIEW 8.5.0 system and it works fine.
    On a LabVIEW 8.5.1 System I get the error:
    Scan From String (arg 6) in CAN FtoC Parse Channels and Mode.vi->CAN FtoC Parse CANdb Messages and Channels.vi->CAN Channel Data Import.vi
    Does anybody know a solution for this error?
    Thank you for your help,
    demo66
    regards,
    demo66

    Hi!
    It is a problem of localized decimal point.
    In a german Windows, LabVIEW will use Komma as decimal point.
    So the Scan From String.vi will convert string 0,21 in a double but not 0.21. From the file dbc you receive the values with period "." that's why it create the error 85.
    You have 2 possibilities: change the localized decimal point in LabVIEW (Tools -> Options) or you say to the Scan From String.vi to use "." as a decimal point.
    Go to CAN FtoC Parse Channels and Mode.vi and search the 2 Scan From String.vi
    Add at the beginning of the Format String %.; so that the format String will use the "." as decimal point (see Attachement).
    After that the example will work.
    Best regards
    Ken
    Attachments:
    Scan From String.jpg ‏51 KB

  • PowerPivot refresh error with data feed from sharepoint list with empty exception information

    Hi,
    My Powpivot refreshing error seems to be different from what others already experienced.
    Scenario:
    Constructed an external data source in the format of Http://<server_IP>/sites/<mysitecollection>/_vti_bin/listdata.svc
    selected one table with some of the needed columns in the next step
    Create calculate colums etc.
    Create pivot tables etc.
    All worked well offline
    Upload the workbook into PowerPivot Gallery
    Reference it from a page through Excel Web Service webpart allowing manual refresh
    The refresh always reports failure with the named external data source
    I opend the log file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and located the following error messages:
    ASPPHOST::ShowEngineError: Out of line object 'DataSource', referring to ID(s) 'f8939b694cae', has been specified but has not been used。The following exception occurred while the managed IDbCommand interface was being used: .
    Please note in the above message, NO detailed exception message was given. In other words,
    the exception information is empty.
    I checked as many things as I possibly could includin the security accounts etc. All seem to be right. But this empty exception got me stuck here.
    What could possibly go wrong? Any help will be appreciated.
    Thanks.

    Hello,
    Here is a good article regarding Where to get information about data refresh failures for your reference, please see:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
    In addition, which credential option you're configured for the PowerPivot data refresh in SharePoint farm? You can go through the following articles regarding configure the PowerPivot data refresh:
    Configure the PowerPivot Unattended Data Refresh Account (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ff773327.aspx
    Configure Stored Credentials for PowerPivot Data Refresh (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ee210671.aspx
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Mapping conversion error in Dates

    Hello Experts,
    I am doing date conversion in Message Mapping from ECC date will come in YYYYMMDD for target i need to convert to YYYY_MM_DD for this i am using date transfer function.Issue is when date is coming like 20110908 it is converting properly like 2011-09-08
    But when from ECC date is coming like 00000000 then by default it converting to 0002-11-30 how this date is coming i am not understanding actually it should convert like 0000-00-00 .
    Please help me

    Hi,
    I am not quite sure why the conversion works like that. That said, the date 0000-00-00 is not a valid date, as that date has never existed. That may be the reason for the strange behaviour by PI.
    I suggest you add fixed-values conversion before your dateConvert step in the mapping. Here you check for date 00000000 and map it to e.g. 00010101.
    This should solve the issue, if you can live with a result date of 0001-01-01 in these cases. 
    Br,
    Kenneth

  • Error with data transfer in functional module

    Hi all,
    I need to upload file to the employee through BDS. (oaor transcation).  i am using functional module
    function zin_bds_dms_upload.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(P_CLASS) TYPE  BDN_CON-CLASSNAME
    *"     VALUE(P_OBJCT) TYPE  BDN_CON-OBJKEY
    *"     VALUE(P_DESCR) TYPE  BDN_CON-DESCRIPT
    *"     REFERENCE(P_PATH) TYPE  SAPB-SAPFILES
      data: begin of i_bds_conn occurs 10, " ITAB for the actual
             bdn_tab_i type  num08,
            client type mandt,
            classname type      seoclsname,
            classtype     type bds_clstyp,
            objkey  type  bds_typeid,
            log_system    type swo_typeid,
            loio_id   type char42,
            doc_ver_no    type num08,
            doc_var_id    type num08,
            doc_var_tg    type bds_var_tg,
            descript    type sdok_descr,
            langu   type spras,
            comp_id   type bds_compid,
            mimetype  type  bds_mimetp,
            crea_user   type sdok_crusr,
            crea_time   type sdok_crtst,
            chng_user   type sdok_chusr,
            chng_time   type sdok_chtst,
            contrep   type bds_conrep,
            docuclass   type sdok_prv_m,
            doc_type    type sdok_prv_s,
            expirytime    type sdok_prv_m,
            bds_docid   type sdok_prv_l,
            loio_id_to    type sdok_loid,
            rela_id     type      bds_relaid,
            state   type sdok_phsta,
            bds_status    type bds_state,
            stor_tab  type saearstat,
            bdn_tab_d     type bar_keep,
            note_type     type bds_state,
            objecttext type toasp-objecttext,
            objecttext2 type toasd-objecttext,
            objecttext3 type toasr-objecttext,
            ntext type tojtt-ntext,
    end of i_bds_conn.
      data: begin of bds_doctype_list occurs 10,
      mandt type mandt,
      classname type bapibds01-classname,
      contrep type bapibds01-contrep,
      docuclass type bapibds01-doc_class,
      docuclass_text type toasd-objecttext,
      doc_type type bapibds01-doc_type,
      doc_type_text type toasp-objecttext,
      appl_type type toadd-appl_type,
      appl_type_text(50) type c,
      standard type toadv-standard,
      check_box type toadv-standard,
      end of bds_doctype_list.
      data: file_extension type toadd-doc_type, " file-extension
      i_files type bapifiles occurs 1 with header line,
      i_signature type bapisignat occurs 1 with header line,
      logical_system type bds_conn00-log_system.
      data: classname_select type bdn_con-classname,
      classtype_select type bdn_con-classtype,
      objkey_select type bdn_con-objkey,
      mask(20) type c,
      answer type c,
      mimetype type toadd-mimetype,
      i_toadd type toadd,
      file_path type sapb-sapfiles,
      filename_all type sapb-sapfiles,
      file_path_memory(250) type c, " path für SAP memory
      file_path_length type i, " length of the file_path
      file_name type sapb-sapfiles.
      classname_select = p_class.
      classtype_select = 'BO'.
      objkey_select = p_objct.
      filename_all = p_path.
      get parameter id 'OAP' field file_path.
      if sy-subrc <> 0. " no file_path found.
        file_path = space.
      endif.
      concatenate ',.' '' ',.' '' '.' into mask.
    -- split filename -- *
      perform split_path(oaall) using filename_all file_path file_name.
    -- set new file_path to SAP memory -- *
      file_path_length = strlen( file_path ).
      if file_path <> space and file_path_length < 250.
        file_path_memory = file_path.
        set parameter id 'OAP' field file_path_memory.
      else.
        file_path_memory = space.
        set parameter id 'OAP' field file_path_memory.
      endif.
    -- check documentclass -- *
      perform get_file_extension using file_name
      file_extension.
    -- check file extension -- *
      if file_extension = space.
    -> if no docuclass is found from the document
    -> default docuclass from the doctype!
        file_extension = bds_doctype_list-docuclass.
      endif.
    -- get the mimetype of the docuclass -- *
      perform mimetype_get(oaall) using file_extension
      changing i_toadd.
      move i_toadd-mimetype to mimetype.
    -- fill file and signature structure -- *
      clear: i_files, i_signature.
      refresh : i_files, i_signature.
      i_files-doc_count = 1.
      i_files-directory = file_path.
      i_files-filename = file_name.
      i_files-mimetype = mimetype.
      append i_files.
      i_signature-doc_count = 1.
      i_signature-prop_name = 'BDS_DOCUMENTCLASS'.
      i_signature-prop_value = file_extension.
      append i_signature.
      i_signature-prop_name = 'BDS_CONTREP'.
      if bds_doctype_list-contrep = space.
        i_signature-prop_value = ' '.                           "#EC NOTEXT
      else.
        i_signature-prop_value = bds_doctype_list-contrep.
      endif.
      append i_signature.
      i_signature-prop_name = 'BDS_DOCUMENTTYPE'.
      i_signature-prop_value = bds_doctype_list-doc_type.
      append i_signature.
      i_signature-prop_name = 'DESCRIPTION'.
      i_signature-prop_value = p_descr.
      append i_signature.
      i_signature-prop_name = 'LANGUAGE'.
      i_signature-prop_value = sy-langu.
      append i_signature.
    -- create new document via KPro -- *
      call function 'BDS_BUSINESSDOCUMENT_CREATEF'
        exporting
          logical_system = logical_system
          classname      = classname_select
          classtype      = classtype_select
          client         = sy-mandt
          object_key     = objkey_select
        tables
          files          = i_files
          signature      = i_signature
        exceptions
          internal_error = 1
          others         = 2.
    endfunction.
    *& Form GET_FILE_EXTENSION
    try to get the extension of the uploaded file
    form get_file_extension using file_name file_extension.
    -- data declaration ------------------------------------------------ *
      data: length type i,
      single_c type c.
      data: begin of bds_doctype_list occurs 10,
      mandt type mandt,
      classname type bapibds01-classname,
      contrep type bapibds01-contrep,
      docuclass type bapibds01-doc_class,
      docuclass_text type toasd-objecttext,
      doc_type type bapibds01-doc_type,
      doc_type_text type toasp-objecttext,
      appl_type type toadd-appl_type,
      appl_type_text(50) type c,
      standard type toadv-standard,
      check_box type toadv-standard,
      end of bds_doctype_list.
      clear: single_c.
      length = strlen( file_name ).
      if length > 0.
        while length > 0.
          single_c = file_name+length(1).
          if single_c co '.'.
            length = length + 1.
            exit.
          else.
            length = length - 1.
          endif.
        endwhile.
        if length > 0.
          file_extension = file_name+length.
        else.
          file_extension = space.
        endif.
      else.
        file_extension = space.
      endif.
      if file_extension <> space.
        set locale language sy-langu.
        translate file_extension to upper case.              "#EC TRANSLANG
        set locale language space.
      endif.
    endform.                    "get_file_extension
    example  : class = PREL
    object = pernr_no
    desc =  'leav application'
    p_path = file_path
    I used this in abap program then it is uploading fine but when used in the web dynpro file is not uploading. On debugging it is showing error in function module SDOK_PHIOS_CHECKIN
    error key 5 ie error in transfer.
    So please suggest how to upload in web dynpro abap.
    Edited by: Bhavya belagal on Dec 22, 2010 11:55 AM
    Edited by: Bhavya belagal on Dec 22, 2010 12:09 PM

    Hallo Bhavya,
    Please do not post like this as it is not readable . Mostly when you describe it in a simple manner you would get more response.
    See this thread for answers from Thomas Jung [Re: Approach content repository other way then URL approach|Re: Approach content repository other way then URL approach]
    Wiki [http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass|http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass]
    Edited by: Baskaran Senthivel on Dec 22, 2010 2:42 PM

  • Excel 2013 Powerpivot datamodel error with DATE formula

    Hello forum users and Excel guru's alike.
    I have a question relating the datamodel in Excel 2013 Powerpivot. I am using a Dutch version of Excel (on Office 365) but formula's in Datamodel are all in English so I think most of you will understand the issue:
    What I want to do: Take a date and adjust this date to incorparate a number of months that is added in a other column.
    Example:
    Start of contract date: 24-5-2014 (this is a date field in the datamodel and it is called [StartContract])
    Contract duration in months: 10 (this is a number field in the datamodel and it is called [DurationInMonths])
    Output: 24-03-2015
    (this is the calculated field that doesn't work)
    My current formula looks like this:
    =DATE(YEAR([StartContract]);MONTH([StartContract]+[DurationInMonths]);DAY([StartContract]))
    It shows an error as soon as I hit Enter. The formula works fine when I replace [DurationInMonths] with the value "10" or when I leave out "+[DurationInMonths]". But that isn't an option!
    The following variation also doesn't work.
    =DATE(YEAR([StartContract]);MONTH([StartContract])+[DurationInMonths];DAY([StartContract]))
    Please, is there any one with a solution?
    Kind regards,
    Erik van Hurck

    Hi Tony,
    I have tried your solution, to no succes I am sad to say.
    I do agree that the formula works in Excel, but now switch over to the
    PowerPivot Data model and try the formula there. And it will repport an error:
    =DATE(year([StartDate]);month([StartDate]+[DurationInMonths]);DAY([StartDate]))
    is the formula I used in the Datamodel.
    The DurationInMonths field is:
    Whole numbers and formatted as: General
    The StartDate is:
    Auto (Date) and formatted as: Short Date
    For more Information I get this error:
    Cannot query internal supporting structures for column "EndDate" because they depend on a column, relationship, or measure that is not processed. please refresh or recalculate the model. Maybe this link will help further:
    http://office.microsoft.com/en-au/excel-help/upgrade-power-pivot-data-models-to-excel-2013-HA103356104.aspx

Maybe you are looking for

  • How to populate the condition tables of CRM 7.0

    Hello Friends, How to populate values in CND* tables , i assume these are the tables that hold the conditions. Thanks and Regards, Vasu

  • I'm having trouble dragging add-on icons to the add-on bar

    I just installed Firefox 4 on my Ubuntu (10.04) and am attempting to customize my toolbars. Specifically, I want to have all my add-on icons located on the add-on bar. However, nothing happens when I try dragging them to that bar. The only thing I wa

  • Mail account type change

    We have a user who recently got an ipad.  Until now she only accessed her email via a laptop with mail.app or via a browser.  Now she wants to access with the mobile device and keep the laptop, ipad and server email messages in sync. The email accoun

  • Applying different GPOs based on extensionattribute1

    Hello, I would like to make use of the extensionattribute fields for computer accounts in AD.  What I would like to do is apply a differnt GPO based on the contents of a particular field, for example, I would like to create three different GPOs with

  • Error in createOUIprocess

    hello friends! please help! I installed jre_1.1.6-v5-gilbc-x86.tar.gz in redhat linux 6.2, and when I use the command: which jre , it reply: /usr/local/jre/bin/jre It seems that I have install the jre right. But when I tar Oracle815EE_Intel.tar.gz an