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.

Similar Messages

  • Report Data Binding Error with CFREPORT

    I'm getting this error on my production server but not my
    testing server when I try to print a report:
    Report data binding error Unknown column name :
    PK_RegistrationID.
    The thing is, the column PK_RegistrationID is not in the
    query I'm passing to the cfreport file. And it's not in the
    cfreport fiile itself. It is used in other cfreport files in my
    application. I'm wondering if this has anything to do with the
    version of cfreport on the production server.

    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.

  • Report data binding error

    I have created a banded report split into departments. Each
    recore has a value associated with it. The report runs fine if I
    dont try to sub-total each departments vale, but if I add a
    calculated field to the banding, I get the following error:
    Report data binding error Error evaluating expression :
    textField_2 Source text : calc.Department_Total.
    Variable calc.Department_Total is undefined.
    The calculated field is simply the sum of the values, with an
    initial value of 0 and set to reset when the group changes on the
    department. I am using the same data type for the calc field as it
    automatically gave for the original Value field (Big Decimal)
    Any ideas?
    Dave H

    Does anyone have any ideas about this, Its getting a bit
    critical now. Has anyone else been able to do sums that calculate
    on group changes?? The sum total works for the report, jusyt not
    the bands. I desparate here, pulling my hair out.
    Regards
    Dave H

  • Report data binding error unknown column name

    Hi,
    I am having a problem with the new 7.02 update of Report
    Builder. The issue is it's not finding my SQL query.
    I have wrote my query initally in the advance mode, and it
    doesn't seem to reconize it. Is there an issue with this?
    I did manage to fix one of my reports by using the basic mode
    and selecting all my tables and seting my linkage and criteria.
    I have other computers that i have not updated to 7.02 and
    they do not have this issue. Below is the error:
    Error Occurred While Processing Request
    Report data binding error Unknown column name : work_phone.
    Please try the following:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 13-Jul-06 02:33 PM
    Stack Trace (click to expand)
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Unknown column name : work_phone.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:420)
    at
    coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    This report works in 7.01. So all query variables match with
    a variable in the SQL select statement.
    Anyone have any Ideas??
    Thanks,
    Daniel

    Thank you very much for help.
    The "Unknown column name " is a field still used in my
    report, so I can't remove it.
    After I clear the query in the report and reopen the report
    and apply the same query back to it, I get different error message:
    Element TASKNUM is undefined in QUERY.
    The error occurred in : line 1
    -1 : Unable to display error's location in a CFML template.
    I know for sure this "Element TASKNUM is undefined in QUERY."
    is defined in query. each time it complains something different. I
    get really confused.
    Thanks again.
    Yueming

  • Client-Auth reports: HTTP4031: Unexpected error receiving data: -5938

    I am trying to deploy the clientcert sample applcation that comes with the platform edition of SunOne V7.
    I have used openssl as a CA and have created client and server certs.
    I get the following problem.
         Sun ONE Application Server - HTTP Status 403 Error
         Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
         Type: Status Report
         Message: Access to the requested resource has been denied.
    As can be seen from the server.log below, some form of authentication succeeds:
         [12/Aug/2004:08:56:11] FINE ( 2392): X.500 name login succeeded for : CN=tweekes, O=tester, C=ie
    Note, common name is that of my client cert.
    However there is a severe error:
         [12/Aug/2004:08:56:09] SEVERE ( 2392): for host 169.254.111.12 trying to GET /cert, Client-Auth reports: HTTP4031: Unexpected error receiving data: -5938
    Also, HTTPS works with server side authentication and I signed both client and server certs with same private "CA" certification.
    Question: Do I need any special extentions in the certs for use with SSL?
    Thanks in advance.
    server.log fragment:
    [12/Aug/2004:08:56:09] FINE ( 2392): for host 169.254.111.12 trying to GET /cert, ntrans-j2ee reports: directory listing for context "/cert"
    [12/Aug/2004:08:56:09] FINE ( 2392): Attaching to JVM thread service-j2ee-4
    [12/Aug/2004:08:56:09] FINE ( 2392): context = StandardEngine[null].StandardHost[server1].StandardContext[cert]
    [12/Aug/2004:08:56:09] FINE ( 2392): contextPath = /cert
    [12/Aug/2004:08:56:09] FINE ( 2392): wrapper = null
    [12/Aug/2004:08:56:09] FINE ( 2392): servletPath = null
    [12/Aug/2004:08:56:09] FINE ( 2392): pathInfo = null
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: Process request for '/cert'
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: Checking for SSO cookie
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: SSO cookie is not present
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Security checking request GET /cert
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Checking constraint 'SecurityConstraint[clientcert security test]' against GET --> true
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Subject to constraint SecurityConstraint[clientcert security test]
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Calling checkUserData()
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: User data constraint has no restrictions
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Calling authenticate()
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Looking up certificates
    [12/Aug/2004:08:56:09] FINEST ( 2392): Requesting client certificate from core.
    [12/Aug/2004:08:56:09] SEVERE ( 2392): for host 169.254.111.12 trying to GET /cert, Client-Auth reports: HTTP4031: Unexpected error receiving data: -5938
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: No certificates included with this request
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Failed authenticate() test
    [12/Aug/2004:08:56:09] FINE ( 2392): for host 169.254.111.12 trying to GET /cert, ntrans-j2ee reports: directory listing for context "/cert"
    [12/Aug/2004:08:56:09] FINE ( 2392): Attaching to JVM thread service-j2ee-5
    [12/Aug/2004:08:56:09] FINE ( 2392): context = StandardEngine[null].StandardHost[server1].StandardContext[cert]
    [12/Aug/2004:08:56:09] FINE ( 2392): contextPath = /cert
    [12/Aug/2004:08:56:09] FINE ( 2392): wrapper = null
    [12/Aug/2004:08:56:09] FINE ( 2392): servletPath = null
    [12/Aug/2004:08:56:09] FINE ( 2392): pathInfo = null
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: Process request for '/cert'
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: Checking for SSO cookie
    [12/Aug/2004:08:56:09] FINE ( 2392): SingleSignOn[server1]: SSO cookie is not present
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Security checking request GET /cert
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Checking constraint 'SecurityConstraint[clientcert security test]' against GET --> true
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Subject to constraint SecurityConstraint[clientcert security test]
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Calling checkUserData()
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: User data constraint has no restrictions
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Calling authenticate()
    [12/Aug/2004:08:56:09] FINE ( 2392): Authenticator[cert]: Looking up certificates
    [12/Aug/2004:08:56:09] FINEST ( 2392): Requesting client certificate from core.
    [12/Aug/2004:08:56:11] FINEST ( 2392): Processing login with credentials of type: class sun.security.x509.X500Name
    [12/Aug/2004:08:56:11] FINE ( 2392): Processing X.500 name login.
    [12/Aug/2004:08:56:11] FINEST ( 2392): Certificate realm setting up security context for: CN=tweekes, O=tester, C=ie
    [12/Aug/2004:08:56:11] FINE ( 2392): X.500 name login succeeded for : CN=tweekes, O=tester, C=ie
    [12/Aug/2004:08:56:11] FINE ( 2392): Authenticator[cert]: Authenticated 'CN=tweekes, O=tester, C=ie' with type 'CLIENT-CERT'
    [12/Aug/2004:08:56:11] FINE ( 2392): SingleSignOn[server1]: Registering sso id '6264FF86CB3151E572951CB77D0C515F' for user 'CN=tweekes, O=tester, C=ie' with auth type 'CLIENT-CERT'
    [12/Aug/2004:08:56:11] FINE ( 2392): Authenticator[cert]: Calling accessControl()
    [12/Aug/2004:08:56:11] FINEST ( 2392): PRINCIPAL : CN=tweekes, O=tester, C=ie hasRole?: staffmember
    [12/Aug/2004:08:56:11] FINEST ( 2392): PRINCIPAL TABLE: {staff=[staffmember], C=ie, O=tester, CN=tweekes=[staffmember]}

    The below one is the correct configurations
    <If $uri =~ "/my(/passo.*)">
    NameTrans fn="restart" from="$uri" uri="/my/jsp$1"
    </If>
    <Object ppath="/my/jsp/passo/*">
    PathCheck fn="get-client-cert" dorequest="1"
    </Object>

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

  • Unable to find information on WS data binding error on WLS 9.2.03 startup

    Frustratingly, when I Google for "WS data binding error" I get 'old' links to BEA forum issues which may help but these are nowhere to be seen on the read-only copies now on Oracle forums here :- http://forums.oracle.com/forums/category.jspa?categoryID=202.
    The link I'm looking for is:-
    forums.bea.com/thread.jspa?threadID=600017135
    Is there anywhere I can get access to this information or should I just post new items on the new WLS forum?
    Many thanks.
    p.s. the errors I am trying to research are as follows:-
    <WS data binding error>could not find schema type '{http://xmlns.oracle.com/apps/otm}Transmission
    <WS data binding error>Ignoring element declaration {http://xmlns.oracle.com/apps/otm}Transmission because there is no entry for its type in the JAXRPC mapping file.

    Check this..
    http://docs.oracle.com/cd/E10291_01/doc.1013/e10538/weblogic.htm
    you can ignore those warnings
    The following data type binding warnings and errors are displayed during deployment and start of Decision Service (Business Rules) Applications. These errors and warnings can be ignored.
    <WS data binding error>could not find schema type '{http://www.w3.org/2001/XMLSchema}NCName
    <WS data binding error>could not find schema type
    '{http://websphere.ibm.com/webservices/}SOAPElement
    java.lang.IllegalStateException
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalElementNode.
    getSchemaProperty(AnonymousTypeFinder.java:253)

  • How to declare a bind variable with 'date' data type in command prompt?

    how to declare a bind variable with 'date' data type in command prompt?
    sql>variable q date;
    when i execute it show list of datatypes

    Hi,
    As Lokanath said, there are no DATE bind variables.
    You can use a VARCHAR2 bind variable, and convert it to a DATE in your SQL statment.
    If you're using SQL*Plus, consider a substitution variable. It won't be as efficient as a bind variable, but it will be as convenient.
    For example:
    DEFINE  first_entrry_date = "DATE '2010-06-20''
    SELECT   ...
    WHERE   entry_date >= &first_entry_date
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Client-Auth reports: HTTP4031: Unexpected error receiving data

    I noticed that the below error logged in errors log
    trying to GET /my/jsp/passo/, Client-Auth reports: HTTP4031: Unexpected error receiving data (End of file)
    I configured obj.conf for the above one
    <If $uri =~ "/my(/passo.*)">
    NameTrans fn="restart" from="$uri" uri="/ap/jsp$1"
    </If>
    <Object ppath="/my/jsp/passo/*">
    PathCheck fn="get-client-cert" dorequest="1"
    </Object>
    Please correct me if i am wrong in the configuration. If i removed those lines it is started working. but i am not sure this will enforce the request to provide certificate from the client.
    I highly be appreciated if any one responded.

    The below one is the correct configurations
    <If $uri =~ "/my(/passo.*)">
    NameTrans fn="restart" from="$uri" uri="/my/jsp$1"
    </If>
    <Object ppath="/my/jsp/passo/*">
    PathCheck fn="get-client-cert" dorequest="1"
    </Object>

  • Error on console : WS data binding error, weblogic 9.2

    Hi ,
    Any idea why we getting these kind of errors on console when we deploy Ears on Weblogic server 9.2 .
    Here we are using Producer Consumer concept (wsrp).
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}releaseSessionsResponse because there is no entry for its type in the JAXRPC mapping file.
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}initCookieResponse because there is no entry for its type in the JAXRPC ma
    pping file.
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}getPortletPropertyDescriptionResponse because there is no entry for its ty
    pe in the JAXRPC mapping file.
    same like this many
    Regards

    Hello,
    I've never seen those errors before, but I would guess that you are missing some library modules from your web-app's WEB-INF/weblogic.xml or ear's APP-INF/weblogic-application.xml. Are you seeing these errors on the producer or the consumer?
    Kevin

  • Report Desinger: Binding error for characteristic / Key Figure

    Hi,
    I am getting the error "Binding error for characteristic: Reference to characteristic".
    I have created a report using a query and I have to change the query as per requirement, removed a characteristic.
    Now when I execute a report, getting Data binding error.
    Does system not changes the report if we change the provider query?
    How can this issue be handled apart from deleting existing report and creating a new one?
    Appreciate your help in advance.
    Regards,
    Amit

    Amit,
    First, try doing a save as on your report and save it under a new name. Delete the old one, then re-save it as the same name as before. Then, go in and clear cache so that it will re-build all references in the query. This should remove the error and you won't have to rebuild anything.
    Cheers,
    Rusty

  • Report file name error with Chinese Date format

    Hello,
    I am seeing an error at
    step Write UUT report in the standard model files.  This step is
    calling the API method save on the object Runstate.Report.
    The issue occurs on computers using chinese localization with the date in the report file name.
    Is this a known issue?  Is there a way to modify the filename before calling the above method to eliminate the problem?
    Solved!
    Go to Solution.

    An Error Message is attached. 
    WE have seen this on both Vista and XP.  We are using TestStand version 4.1.1.  I am not sure about the localization, but I have seen this on computers from Taiwan, Korea and Japan.  
    If I put a breakpoint in the Model file at the Write UUT Report Step, you can see Chinese Characters in the time portion of the file name.
    If you change the report name to not include the time and date, the error does not occur.
    We have seen this with ASCII and xml.  With XML, the error also occurs at the step "Add Root Tags to XML Report"
    Attachments:
    FileNameError.JPG ‏134 KB

  • Using a repeater in a custom FileInfo Panel --data binding error

    When I developed a custom FileInfo panel in Flex Builder 3, I could use an array to populate a checkBox control inside a repeater, and it worked.
    Now, using Flash Builder 4, data binding with <mx:Repeater> doesn't seem to work, resulting in an empty fileInfo panel.
    When I remove the dataProvider from the <mx:Repeater> tag, my panel displays, but without the repeater. How can I specify the dataProvider in a different way that works?
    Thanks
    The code:
    <fi:XMPForm
              xmlns:mx="http://www.adobe.com/2006/mxml"
              xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
              label="TestPanel2_1" xmlns:s="library://ns.adobe.com/flex/spark" >
         <!-- Each namespace prefix that is used within an xmpPath-attribute,
              MUST BE registered at the top of EACH panel where it is referenced -->
         <fi:XMPNamespaces>
              <fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
         </fi:XMPNamespaces>
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable] public var newArray:Array =["One", "Two", "Three", "Four", "Five"];         
              ]]>
         </mx:Script>
         <fi:XMPFormItem>
              <mx:VBox id="primaryFrame" width="800">    
                   <mx:Repeater id="myRep" dataProvider="{newArray}">
                        <mx:Label text="{myRep.currentItem}"/>                  
                   </mx:Repeater>
              </mx:VBox>
         </fi:XMPFormItem
    </fir:XMPForm>

    Okay, I may have been making a rookie mistake. I see online reports that you can't bind an array to a repeater (even though it has worked for me).
    I've added the following variable to make my array an array collection:
    [Bindable] public var newArray2:ArrayCollection = new ArrayCollection(newArray);
    After changing the binding of the repeater to the new array and running the build, the fileInfo panel still does not function.
    Any thoughts?

  • 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.

  • 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