Report Designer error i VS 2013 - "Data at the root level is invalid."

Hi,
I am trying to create rdlc file programmatically. Using Memory Table as dataset. Here is my code
' For each field in the resultset, add the name to an array listDim m_fields AsArrayList
  m_fields = NewArrayList()
  Dim i AsIntegerFor i = 0 To tbdataset.Tables(0).Columns.Count - 1
      m_fields.Add(tbdataset.Tables(0).Columns(i).ColumnName.ToString)
  Next i
  'Create Report 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' Open a new RDL file stream for writingDim stream AsFileStream
  stream = File.OpenWrite("D:\MyTestReport2.rdlc")
  Dim writer AsNewXmlTextWriter(stream, Encoding.UTF8)
  ' Causes child elements to be indented
  writer.Formatting = Formatting.Indented
  ' Report element
  writer.WriteProcessingInstruction("xml", "version=""1.0"" encoding=""utf-8""")
  writer.WriteStartElement("Report")
  writer.WriteAttributeString("xmlns", Nothing, "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition")
  writer.WriteAttributeString("xmlns:rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner")
  writer.WriteStartElement("ReportSections")
  writer.WriteStartElement("ReportSection")
  writer.WriteElementString("Width", "11in")
  writer.WriteStartElement("Body")
  writer.WriteElementString("Height", "5in")
  writer.WriteStartElement("ReportItems")
  writer.WriteStartElement("Tablix")
  writer.WriteAttributeString("Name", Nothing, "Tablix1")
  writer.WriteElementString("Top", ".5in")
  writer.WriteElementString("Left", ".5in")
  writer.WriteElementString("Height", ".5in")
  writer.WriteElementString("Width", (m_fields.Count * 1.5).ToString() + "in")
  writer.WriteStartElement("TablixBody")
  ' Tablix Columns
  writer.WriteStartElement("TablixColumns")
  ForEach fieldName In m_fields
      writer.WriteStartElement("TablixColumn")
      writer.WriteElementString("Width", "1.5in")
      writer.WriteEndElement() ' TableColumnNext fieldName
  writer.WriteEndElement() ' TablixColumns' Header Row
  writer.WriteStartElement("TablixRows")
  writer.WriteStartElement("TablixRow")
  writer.WriteElementString("Height", ".25in")
  writer.WriteStartElement("TablixCells")
  ForEach fieldName In m_fields
      writer.WriteStartElement("TablixCell")
      writer.WriteStartElement("CellContents")
      writer.WriteStartElement("Textbox")
      writer.WriteAttributeString("Name", Nothing, "Header" + fieldName)
      ' writer.WriteAttributeString("CanGrow",  True)' writer.WriteAttributeString("Keeptogether", True)
      writer.WriteStartElement("Paragraphs")
      writer.WriteStartElement("Paragraph")
      writer.WriteStartElement("TextRuns")
      writer.WriteStartElement("TextRun")
      writer.WriteElementString("Value", fieldName)
      writer.WriteStartElement("Style")
      writer.WriteElementString("TextDecoration", "Underline")
      writer.WriteElementString("PaddingTop", "0in")
      writer.WriteElementString("PaddingLeft", "0in")
      writer.WriteElementString("LineHeight", ".5in")
      ''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
      writer.WriteEndElement() ' Style
      writer.WriteEndElement() ' TextRun
      writer.WriteEndElement() ' TextRuns
      writer.WriteEndElement() ' Paragraph
      writer.WriteEndElement() ' Paragraphs
      writer.WriteEndElement() ' TexBox
      writer.WriteEndElement() ' CellContents
      writer.WriteEndElement() ' TablixCellNext
  writer.WriteEndElement() ' TablixCells
  writer.WriteEndElement() ' TablixRow'writer.WriteEndElement() ' TablixRows          Do not close Rows tag here colse it after details'End of Headers'Details Rows'writer.WriteStartElement("TablixRows")         Since Rows tag in header is not closed not need to open fresh tag
  writer.WriteStartElement("TablixRow")
  writer.WriteElementString("Height", ".25in")
  writer.WriteStartElement("TablixCells")
  ForEach fieldName In m_fields
      writer.WriteStartElement("TablixCell")
      writer.WriteStartElement("CellContents")
      writer.WriteStartElement("Textbox")
      writer.WriteAttributeString("Name", Nothing, fieldName)
      '  writer.WriteAttributeString("CanGrow", True)'  writer.WriteAttributeString("Keeptogether", True)
      writer.WriteStartElement("Paragraphs")
      writer.WriteStartElement("Paragraph")
      writer.WriteStartElement("TextRuns")
      writer.WriteStartElement("TextRun")
      'writer.WriteElementString("Value", fieldName)
      writer.WriteElementString("Value", "=Fields!" + fieldName + ".Value")
      writer.WriteStartElement("Style")
      writer.WriteElementString("TextDecoration", "Underline")
      writer.WriteElementString("PaddingTop", "0in")
      writer.WriteElementString("PaddingLeft", "0in")
      writer.WriteElementString("LineHeight", ".5in")
      ''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)
      writer.WriteEndElement() ' Style
      writer.WriteEndElement() ' TextRun
      writer.WriteEndElement() ' TextRuns
      writer.WriteEndElement() ' Paragraph
      writer.WriteEndElement() ' Paragraphs
      writer.WriteEndElement() ' TexBox
      writer.WriteEndElement() ' CellContents
      writer.WriteEndElement() ' TablixCellNext
  writer.WriteEndElement() ' TablixCells
  writer.WriteEndElement() ' TablixRow
  writer.WriteEndElement() ' TablixRows'End of Details Rows
  writer.WriteEndElement() ' TablixBody
  writer.WriteStartElement("TablixRowHierarchy")
  writer.WriteStartElement("TablixMembers")
  writer.WriteStartElement("TablixMember")
  ' Group
  writer.WriteElementString("KeepWithGroup", "After")
  writer.WriteEndElement() ' TablixMember' Detail Group
  writer.WriteStartElement("TablixMember")
  writer.WriteStartElement("Group")
  writer.WriteAttributeString("Name", Nothing, "Details")
  writer.WriteEndElement() ' Group
  writer.WriteEndElement() ' TablixMember
  writer.WriteEndElement() ' TablixMembers
  writer.WriteEndElement() ' TablixRowHierarchy
  writer.WriteStartElement("TablixColumnHierarchy")
  writer.WriteStartElement("TablixMembers")
  'writer.WriteStartElement("TablixMember")ForEach fieldName In m_fields
      writer.WriteStartElement("TablixMember")
      writer.WriteEndElement() ' TablixMemberNext' writer.WriteEndElement() ' TablixMember
  writer.WriteEndElement() ' TablixMembers
  writer.WriteEndElement() ' TablixColumnHierarchy
  writer.WriteElementString("DataSetName", "tbdataset")
  writer.WriteEndElement() ' Tablix
  writer.WriteEndElement() ' ReportItems
  writer.WriteEndElement() ' Body
  writer.WriteStartElement("Page")
  ' Page Header Element
  writer.WriteStartElement("PageHeader")
  writer.WriteElementString("Height", "1.40cm")
  writer.WriteStartElement("ReportItems")
  writer.WriteStartElement("Textbox")
  writer.WriteAttributeString("Name", Nothing, "Textbox1")
  writer.WriteStartElement("Paragraphs")
  writer.WriteStartElement("Paragraph")
  writer.WriteStartElement("TextRuns")
  writer.WriteStartElement("TextRun")
  writer.WriteElementString("Value", Nothing, "ABC CHS.")
  writer.WriteEndElement() ' TextRun
  writer.WriteEndElement() ' TextRuns
  writer.WriteEndElement() ' Paragraph
  writer.WriteEndElement() ' Paragraphs
  writer.WriteEndElement() ' TextBox
  writer.WriteEndElement() ' ReportItems
  writer.WriteEndElement() ' PageHeader
  writer.WriteEndElement() ' Page
  writer.WriteEndElement() ' ReportSection
  writer.WriteEndElement() ' ReportSections' DataSources
  writer.WriteStartElement("DataSources")
  writer.WriteStartElement("DataSource")
  writer.WriteAttributeString("Name", Nothing, "tbdata")
  writer.WriteStartElement("DataSourceReference")
  writer.WriteEndElement() ' DataSourceReference
  writer.WriteEndElement() ' DataSource
  writer.WriteEndElement() ' DataSources'DataSet
  writer.WriteStartElement("DataSets")
  writer.WriteStartElement("DataSet")
  writer.WriteAttributeString("Name", Nothing, "tbdataset")
  writer.WriteStartElement("Query")
  writer.WriteElementString("DataSourceName", Nothing, "tbdata")
  'writer.WriteElementString("CommandText", Nothing, "/* Local Query */")
  writer.WriteElementString("CommandText", Nothing, "TableDirect")
  writer.WriteEndElement() ' Query'Fields
  writer.WriteStartElement("Fields")
  ForEach fieldName In m_fields
      writer.WriteStartElement("Field")
      writer.WriteAttributeString("Name", Nothing, fieldName)
      writer.WriteElementString("DataField", fieldName)
      writer.WriteElementString("rd:TypeName", fieldName.GetType.ToString)
      writer.WriteEndElement() ' FieldNext
  writer.WriteEndElement() ' Fields' rd datasetinfo
  writer.WriteEndElement() ' DataSet
  writer.WriteEndElement() ' DataSets
  writer.WriteEndElement() ' Report' Flush the writer and close the stream
  writer.Flush()
  stream.Close()
  'Convert to StreamDim myByteArray AsByte() = System.Text.Encoding.UTF8.GetBytes("D:\MyTestReport2.rdlc")
  Dim ms AsNewMemoryStream(myByteArray)
  'Supply Stream to ReportViewer
  ReportViewer1.LocalReport.LoadReportDefinition(ms)
  ReportViewer1.LocalReport.Refresh()When I open rdlc in designer I get following error"Data at the root level is invalid."When I run the aspx I get following error
An error occurred during local report processing.
The definition of the report '' is invalid.
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas.
Details: Data at the root level is invalid. Line 1, position 1.
Can anybody guide me?

Hi RACES,
Based on your description, I'm afraid that it is not the correct forum for this issue, but maybe I could help you find a more appropriate forum.
If it is related to the Visual Studio Report Controls, you could select this forum:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsreportcontrols
But if it is the SSRS issue, maybe this forum would be better for you:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Release Management 2013 Server Web Site throwing "Data at the root level is invalid..." error after applying RM 2013 Update 4

    I upgraded our RM Server from 2013 Update 2 to Update 4. During smoke testing, I discovered that the RM approval website would get stuck and display a loading wheel when showing the list of releases. After rebooting the server and uninstalling and reinstalling,
    I eventually got it to load the web site just fine, however the windows event log is displaying thousands of instances of the same error (about once a second).
    Timestamp: 4/2/2015 2:25:05 PM
    Message: Data at the root level is invalid. Line 2, position 1.: \r\n\r\n   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
       at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
       at Microsoft.TeamFoundation.Release.Common.ExtensionMethods.XmlExtensionMethods.ToXDocument(String value, Boolean preserveWhitespace)
       at Microsoft.TeamFoundation.Release.Common.Helpers.WebServiceHelper.ExtractWebMethod(String pathInfo, Stream inputStream)
    Category: General
    Priority: -1
    EventId: 0
    Severity: Error
    Title:
    Machine: [Server Name]
    Application Domain: /LM/W3SVC/2/ROOT-1-130724725961138960
    Process Id: 3448
    Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe
    Win32 Thread Id: 1136
    Thread Name:
    Extended Properties:
    This is quite concerning because it leads me to think something else is wrong.  I read somewhere else that .Net Framework 4.5.1 is required for RM, but the system requirements on MSDN don't mention that.  Any help greatly appreciated.
    Specs:
    RM Server: Windows 2012 R2
    Release Management 2013 Update 4
    Connect to TFS Server 2013 Update 2
    We are not using HTTPS:

    Hi Joe519,
    Thanks for your post.
    And thank you for sharing  the experience here. 
    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The SharePoint list query is not valid: Data at the root level is invalid. Line 1, position 1. (rsSPDataProviderError)

    Hi there,
    All my reports are throwing below error in a sharepoint site configured with Access services. Does anyone have a clue what's causing it?
    An error has occurred during report processing. (rsProcessingAborted)
     Query execution failed for dataset 'Default'. (rsErrorExecutingCommand)
     The SharePoint list query is not valid: Data at the root level is invalid. Line 1, position 1. (rsSPDataProviderError)
    Thanks
    Manvir

    Hi Manvir,
    For troubleshooting your issue, please go to C:\Inetpub\wwwroot\wss\VirtualDirectories\ find your Web Application (represented by a port number), then delete an unknown folder created by sharepoint, namely vti_cnf from all the folders and sub-folders in
    your web application.
    Reference:
    http://forums.asp.net/t/985790.aspx?Data+at+the+root+level+is+invalid+Line+1+position+1
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Smartview Error: Unknown error in HFMProviderData at the root level is invalid. Line1,postion1.

    Hi Everyone,
    Please provide me a solution for this.
    One of the users is encountering the above issue when he connects the Smartview templates, we have implemented the steps in which specified as per "Hyperion Financial Management for SmartView Error "Unknown Error in HFMProviderData at the root level is invalid. Line 1, position 1" (Doc ID 1361427.1)"
    but unfortunately still the same user facing with same error when he tries to connect HFM app over template and after implemeted the steps as per above Oracle Doc ID, there is no "UserMbrSel" USERPARAMS existing on checks at HFM schema level.
    Quick response much appriciated and Many thanks in advance.
    Regards
    KK

    Hi KK,
    You may want to review below archived discussions regarding the same issue:
    https://community.oracle.com/message/10287197
    https://community.oracle.com/message/9701674
    ~ KK

  • Problems creating an SSIS package: adding a script task causes data at root level is invalid error

    I am trying to create my first SSIS package using SQL 2012 Server Data Tools which will invoke a script task.  I added the script task, put in the code, and when I try to test out the package, I get a "data at the root level is invalid" error
    message.  I tried creating a new project from scratch, did a build and run w/in the IDE (with no code behind), worked ok.  Added the script task (with no code behind), and I get the same error.
    Can someone please point me in the right direction? 

    Are you sure it is not XML?
    How would I repro the issue?
    Please share all the steps, but I think the code has an issue.
    Arthur My Blog

  • Report error "Failed to retrieve data from the database."

    Post Author: tknorst
    CA Forum: .NET
    I have an application using CR XI R2, and on certain users computers when they try to run a report they get the following error:
    Failed to retrieve data from the database.Details: [Database Vendor Code: 229]Failed to retrieve data from the database.Error in File C:\DOCUME1\turkj\LOCALS1\Temp\WhseEmpJobAndActivityByUserAndDate {22DA2F53-4391-4307-9F2A-0E3C3EBE2198A}.rpt
    The report uses SQLOLEDB (ADO) and integrated authentication - it runs fine on the development machine.
    I found very little info on this error on the web (google) - so I hope someone here has an idea.

    You need to make sure that those systems can get conneted to the database that is supposed to return data. To check that create a udl in clients machine.
    Also do not change the schema of he report.

  • Crystal Report Runtime Error 9.0.Could not open the report

    Hi,
    Getting the Crystal Report Runtime Error 9.0.Could not open the report while Run on Launch Application. Actually in Launch Application, created a link for exe which is having crystal reports. We can open the Crystal Reports from the exe outside B1.
    Note: SAP 2007, Crystal Report 2008 is using.Normally can open crystal report.
    Any help to fix the error is appreciated.
    Thanks & Regards,
    Parvatha Solai.N

    Hi,
    Please post screen shot of error message here.
    Thanks & Regards,
    Nagarajan

  • SQL Service Broker 2012: the connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)'

    Anyone can help with the below issue please? Much appreciated.
    We have about 2k+ messages in sys.transmission_queue
    Telnet to the ports 4022 is working fine.
    Network connectivity has been ruled out.
    The firewalls are OFF.
    We also explicitly provided the permissions to the service account on Server A and Server B to the Service broker end points.
    GRANT
    CONNECT ON
    ENDPOINT <broker> <domain\serviceaccount>
    Currently for troubleshooting purposes, the DR node is also out of the Availability Group, which means that we right now have only one replica the server is now a traditional cluster.
    Important thing to note is when a SQL Server service is restarted, all the messages in the sys.transmission queue is cleared immediately. After about 30-40 minutes, the errors are continued to be seen with the below
    The
    connection was
    closed by the
    remote end,
    or an
    error occurred while
    receiving data:
    '64(The specified network name is no longer available.)'

    We were able to narrow down the issue to an irrelevant IP coming into play during the data transfer. We tried ssbdiagnose runtime and found this error:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>SSBDIAGNOSE -E RUNTIME -ID 54F03D35-1A94-48D2-8144-5A9D24B24520 Connect to -S <SourceServer> -d <SourceDB> Connect To -S <DestinationServer> -d <DestinationDB>
    Microsoft SQL Server 11.0.2100.60
    Service Broker Diagnostic Utility
    An internal exception occurred: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    P  29830                                 Could not find the connection to the SQL Server that
    corresponds to the routing address tcp://XX.XXX.XXX.199:4022. Ensure the tool is connected to this server to allow investigation of runtime events
    The IP that corresponds to routing address is no where configured within the SSB. We are yet unsure why this IP is being referred despite not being configured anywhere. We identified that this IP belongs to one of nodes other SQL Server cluster, which has
    no direct relation to the source server. We failed over that irrelevant SQL Server cluster and made another node active and to our surprise, the data from sys.transmission_queue started flowing. Even today we are able to reproduce the issue, if we bring
    back this node [XX.XXX.XXX.199] as active. Since, its a high business activity period, we are not investigating further until we get an approved downtime to find the root cause of it.
    When we get a approved downtime, we will bring the node [XX.XXX.XXX.199] as active and we will be running Network Monitor, Process Monitor and the SSB Diagnose all in parallel to capture the process/program that is accessing the irrelevant IP.
    Once, we are able to nail down the root cause, I will share more information.

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • "...an error occurred while sending data from the iPhone" - caused by latest iPhone update today?

    I've been syncing my iPhone to my (non-apple) desktop for several months without difficulty.
    Today I accepted the latest upgrade to my iPhone software.
    Since it installed, it will not sync.
    It gives the error message "iTunes could not sync calendars to the iPhone "Steve's iPhone" because an error occurred while sending data from the iPhone."  After rebooting the desktop, the error repeats, and it's now in hour 2 of the continuing message "Syncing Steve's iPhone (Step 2 of 2) - Finishing sync"
    Has anyone else run into this Undocumented Feature of the latest upgrade?
    As bugs go, this is pretty serious for those of us who depend on syncing the iPhone and desktop for our business!
    Thanks to anyone who can help!
    Steve Callender

    Tried rebooting the phone, and now it works.
    Guess there's 2 lessons here -
    Boot again when installing new SW, even if the phone reboots itself during installation, and
    Boot to see if that fixes a problem before posting it.
    Steve

  • Incoming IDOC Error "No batch input data from the screen SAPMV45A 4001"

    Hello ,
    The Incoming IDOC with Message type 'ORDERS' is triggering the error message "No batch input data from the screen SAPMV45A 4001" with message no 00344 . There is an SAP note 785000 to handle this type of error message which has been already implemented. Still we are encountering few IDOC error's  at the time of sales order creation. The IDOC reaches status 51 throwing the error which is again reprocessed through BD87 .
    We are unable to replicate the similar scenerio in Development & Testing systems as it works fine.
    Can any one kindly advise how to eliminate the error "No batch input data from the screen SAPMV45A 4001" message at the time of Incoming IDOC processing.
    Thanks in advance.
    Best Regards
    Sateesh

    Dear Sateesh
    Check this link where the same topic was discussed
    [ VA01/VA02: batch-input error in IDoc processing|http://www.sapfans.com/forums/viewtopic.php?f=21&t=313032]
    thanks
    G. Lakshmipathi

  • F.81 reverse postings error 00 065: Enter date in the format __.__.____

    Hi When we run F.81 in some cases we get the error:
    00 065: Enter date in the format __.__.____
    In the header from the document I don't see difference with the working one's
    How we can solve this?

    Hi,
    Did you have an upgrade sometime back.
    During upgrade to 604, a field is activated, in the active screen variant. T-code OLMRLIST with following input:
    Transaction "****"
    Screen variant ******
    Program "*******"
    Screen "****"
    Then deactivating the "with contents" checkbox on "reference date"-field.....and problem was solved
    This what I've done when I encountered teh same problem sometime back.
    Good Luck,
    Raghu

  • W3c valid site, initially no error reported by developer toolbar. But upon right click (giving the validation menue), the the toolbar reports two errors: width and height. Despite the fact that every page is validated! On the forum for the toolbar, this i

    w3c valid site, initially no error reported by developer toolbar. But upon right click (giving the validation menue), the the toolbar reports two errors: width and height. Despite the fact that every page is validated! On the forum for the toolbar, this is said to be a Browser error. So, how can this be fixed? I'm using FF 3.6.6
    == This happened ==
    Every time Firefox opened
    == after update from 3.5?

    Hi Sara,
    Can you give us the URL of the page you're having problems with and of the forum thread you mentioned?
    Thanks!

  • 大家帮帮忙呀,真是苦恼呀!The date for the prompt 'startDate' is invalid. (WIS 10706)

                   IInfoObject report = (IInfoObject) objects.get(0);
                   IWebi webi = (IWebi) report;
                   // u83B7u5F97u63D0u793Au53C2u6570
                   di = getReportEngine().openDocument(report.getID());
                   di.refresh();
                   // u8BBEu7F6Eu53C2u6570
                   if (params != null)
                        Prompts prompts = di.getPrompts();
                        int promptNum = prompts.getCount();
                        for (int j = 0; j <= promptNum - 1; j++)
                             Prompt p = (Prompt) prompts.getItem(j);
                             if(params.get(p.getName())!=null)
                                  //u68C0u6D4Bu662Fu5426u5E26u6709u7A7Au5B57u7B26
                                  String temp[]=(String[])params.get(p.getName());
                                  boolean falg=false;
                                  for(int len=0;len<temp.length;len++)
                                       if(temp[len]==null)
                                            falg=true;
                                       else if("".equals(temp[len].trim()))
                                            falg=true;
                                  if(falg)
                                       continue;
                                  //u5BF9u65E5u671Fu6570u7EC4u8FDBu884Cu8F6Cu6362
                                  if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
                                       String formatStr=p.getInputFormat();
                                       for(int x=0;x<temp.length;x++)
                                            temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
                                  System.out.println(p.getName()+"u503C  "+temp[0]);
                                  p.enterValues(temp);
                        PromptsUtil.populateWebiPrompts(di.getPrompts(), webi);
                   // u540Eu7F00u540Du79F0
                   if (format !=EXCEL && format != PDF && format !=Webi)
                        throw new Exception(" u751Fu6210u62A5u8868u5B9Eu4F8Bu683Cu5F0F,u53EAu63A5u6536EXCEL,PDF,Webiu683Cu5F0Fu53C2u6570!");
                   webi.getWebiFormatOptions().setFormat(format);
                   ISchedulingInfo scheduleInfo = report.getSchedulingInfo();
                   scheduleInfo.setType(0);
                   //u662Fu5426u53D1u9001u90AEu4EF6
                   if(isSendMail)
                        doSendMail(scheduleInfo,report,
                                  format,message,title,recipientAddresses,CCAddresses);
                   //u8BBEu7F6Eu81EAu5B9Au4E49u503C
                   if(properties!=null && !"".equals(properties))
                        report.properties().setProperty(CUSTOMVALUE,properties);
                   scheduleInfo.setRightNow(true);
                   // u751Fu6210u5B9Eu4F8B
                   getIInfoStore().schedule(objects);
    上述代码片段为BO生成实例的过程,程序不会出错。但BO报表历史记录中,提示:The date for the prompt 'startDate' is invalid. (WIS 10706)
    刚开始认为:日期格式错误,我便加上了
    if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
           String formatStr=p.getInputFormat();
           for(int x=0;x<temp.length;x++)
                  temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
    需且验证日期格式,正是p.getinputFormat()所要求的格式,可BO历史记发中,生成实例还是报上述错误。
    Edited by: pyantking on Jul 27, 2009 2:39 PM

    Hello Anh,
    With XI 3.1 some significant fixes were delivered to address issues like you describe : create a query with QaaWS Designer using date input parameters (prompts) with a given locale, then edit (with QaaWS Designer) the query under another different locale, where dates are set with a different format.
    AFAIK QaaWS queries keep the locale under which they were created, fixes were aimed at translating input parameters in the right format so errors like the one you describe should not be encountered.
    i suggest you get in touch with the SAP BusinessObjects tech support with your issue, so we will be able to investigate further in conjunction with QaaWS dev team and work out a fix, if this turns out to be a bug.
    BTW, Have you considered upgrading to a more recent Service Pack? Business Objects Enterprise XI 3.1 SP3 is now available since 2010 Q2 (no guarantee, though, that this issue would be solved with this SP)
    Hope that helps,
    David.

  • Crrystal Reports using ADO.  How do you Change the Isolation Level?

    Post Author: jmetaxas
    CA Forum: Data Connectivity and SQL
    Crrystal Reports using ADO.  How do you Change the Isolation Level?  I found a knowledge base article that allows you to change it for ODBC.   But nothing on ADO.  I kicked around changing the reports to ODBC but even then the keys described in the article do no exist.  Any suggestions?
    Thanks,
    John Metaxas

    T-Bob wrote:
    I want to make sure that points 2&3 are at the same level, so I can just move the envelope region between them up and down to change the volume. Any quick way to do this to speed up my process?
    Specifically to address this point: if you mouse over the audio levels' rubber band segment BETWEEN your points 2) and 3) until the cursor changes to an up/down adjustment arrow ⬍, and move it up/down, it will adjust BOTH the levels at 2) and 3), maintaining the relative difference between them (or, if points 2) and 3) start at the same level, this adjustment will keep them equal as you drag them both up/down together in one action.)
    As usual, much easier to DO it, rather than describe it!

Maybe you are looking for

  • Acrobat won't open w/o launching another program?

    I want to combine multiple files into a single PDF document. I open acrobat, and when I select the "Combine multiple files" option it tells me I cannot launch Acrobat unless I launch a component program, like Photoshop, first. however Photoshop is al

  • Dhcp conection problem[solved]

    i changed my network connection from pppoe to dhcp.accordingly i make d necessary change in /etc/rc.conf file in its networking section. for ex...eth0="dhcp" INTERFACES=(eth0) routes=(!gateway) after all that my network is still out of reach.plz help

  • Add new field in selection-screen and output dynamically

    hi gurus,   i need to add field in selectio-screen. i need to validate the field with existing fields. i need to add this in alv grid output list dynamically. thanks & regards,    kgn9.

  • My video clips are rotated left on my harddrive.

    After I synced my video clips and pics to my harddrive my video clips are opening up rotated LEFT. How do I fix / correct the view and how do I prevent this from happeing in the future? Please advise.

  • BufferedReader cannot resolve symbol

    Hi, I need some help with a java program which reads xml files to a specified location, running it on a UNIX machine using Java 1.4.1. I modified the code to include the BufferedReader class, but it keeps complaining about not being able to resolve s