Uncompiled PL/SQL Code error in Reports 6i

I have made a report using Report 6i. Have compiled, saved & run it several times. Very often, when I run it, I get the error message: "Uncompiled PL/SQL code".
Can anyone help me to get rid of this error?

hello,
there are some restrictions on calling specific packages from the database via a remote procedure call. DBMS_SQL is one of them. there is a built-in package called EXEC_SQL that enables you to manage dynamic SQL. use this instead of the database-packages ... for further information on the use of DBMS_* packages see the application developers guide of the database.
regards,
the oracle reports team

Similar Messages

  • Sql code error

    Hi,
    I am working with the Database Toolset for a Labview 7.1 application. I would like to know if it is possible to catch real server error code from SQL server 2000.
    Example: 
    for a code SQL = 1105, "Can't allocate space for object '???' in database ‘???' because the 'system segment is full …'” «,
    I get the Labview code error -2147217900.  I attemp for error code 1105....
    Thanks for any help.

    I really have no idea.
    The ADO hierarchy is probably at least partially documented on the MSDN site, so you might try reading up on it there.
    You might wish to consider whether you really want the original error codes. Part of the advantage of working with abstraction layers like ADO is that they allow you not to be dependant on a single source (in this case, a specifc DB). It might be preferable just to find out what the ADO error codes mean and use them. You can then make a utility out of this which will return standard error messages (although I'm a bit surprised that the NI VIs don't have this internally).
    One thing to note (although I understand this is only an example and it is probably irrelevant in this case) is that you're not closing the command object reference returned from the Execute method.
    Try to take over the world!

  • How I can get in Additional pl/sql code variables in Report?

    I develop sql Report
    with group functions and I can't insert there additional fields in SQL.So I think that I can insert or get bind variables and others by Additional Pl/SQL.Is it possible or not ?
    Example of Report
    can I insert here by additional PL/SQL ------------> COTTON
    department sum(price)
    usa-cotton-01 20000000 sum
    usa-cotton-02 30000000 sum
    usa-cotton-03 40000000 sum
    Thanks in advance.

    Hi,
    I did not understand your requirement. The additional plsql code section can be used for any additional coding like inserting or updating into a table in the DB or printing a single value from a table or printing multiple values using cursors. It can also be used to print the values of the p_arg_names and p_arg_values which are the bind variable names and values. But you cannot add columns to the main existing query.
    Thanks,
    Sharmila

  • Source Code error for Report Shipping

    Hello,
    This is regarding Report Shipping.
    As per SAP Report Shipping Implementation Guide
    for 4.1Settings for the SD Interface: Shipping Docu-ments
    Under  Environment, Health & Safety> Product Safety> Report Shipping> Basic Settings for Shipping from SD Documents> Material Safety Data Sheet/Sales and Distribution Interface> Settings for the SD Interface: Shipping Documents> Output Determination-->  Check Conditions.. it should be like below
    Routine number: <26>
    Description: Environmentally rlvt
    Active: X (set)
    Application: V2
    Source code:
      FORM KOBED_<Key>.
      SY-SUBRC = 0.
      CHECK KOMPB V2 -KZUMW IS INITIAL.
      SY-SUBRC = 4.
      ENDFORM.
      FORM KOBEV_<Key>.
      SY-SUBRC = 0.
      CHECK KOMPB V2 -KZUMW IS INITIAL.
      SY-SUBRC = 4.
      ENDFORM
    on the other had, i have check 2-3 standard Systems,
    same for Settings for the SD Interface: Shipping Documents> Output Determination>  Check Conditions..
    it is like below
    Routine number: <26>
    Description: Environmentally rlvt
    Active: X (set)
    Application: V1
    Source code:
      FORM KOBED_<Key>.
      SY-SUBRC = 0.
      CHECK KOMPB V1 -KZUMW IS INITIAL.
      SY-SUBRC = 4.
      ENDFORM.
      FORM KOBEV_<Key>.
      SY-SUBRC = 0.
      CHECK KOMPB V1 -KZUMW IS INITIAL.
      SY-SUBRC = 4.
      ENDFORM
    so which one is Correct? Implementation Guide or Standard Setting of System.
    Please guide me.
    Edited by: Amol Joshi on Dec 29, 2010 4:42 PM

    Hi Amol.
    Both are correct.
    The MSDS can be send with the sales order (V1) or with the delivery (V2), it depends of the logistic process configured in the system.
    In SD the delivery may or may not be configured.
    If the delivery is configured selects V2, in the other cases V1.
    Regards.
    JCD

  • Multiple SQL queries in additional PL/SQL code in Report

    Hello gurus,
    I have a form in my portal populated some searching parameters and these parameters inserted into some temporary tables such as name_temp, addr_temp. And then I have a report that run based on these parameters, I have added additional PL/SQL code in the report at the time after the header was displayed. The code is as follows:
    declare
    checkname varchar2(40);
    checkaddr varchar2(100);
    begin
    select emp.name into checkname from emp
    where name = (select name from name_temp);
    select personnel.addr into checkaddr from personnel
    where addr = (select address from addr_temp);
    end;
    The problem I have is always the first SQL statement was executed, but not the second one, nor the third one. Does PL/SQL only supports one SQL statement per call? Please help. Is there a better way to handle this case?
    Thanks.
    Vince

    Hello gurus,
    I have a form in my portal populated some searching parameters and these parameters inserted into some temporary tables such as name_temp, addr_temp. And then I have a report that run based on these parameters, I have added additional PL/SQL code in the report at the time after the header was displayed. The code is as follows:
    declare
    checkname varchar2(40);
    checkaddr varchar2(100);
    begin
    select emp.name into checkname from emp
    where name = (select name from name_temp);
    select personnel.addr into checkaddr from personnel
    where addr = (select address from addr_temp);
    end;
    The problem I have is always the first SQL statement was executed, but not the second one, nor the third one. Does PL/SQL only supports one SQL statement per call? Please help. Is there a better way to handle this case?
    Thanks.
    Vince

  • IF Condition in a PL/SQL Script give a report error.

    Hello, I’m German and I hope you can unterstand my Question.
    First, I work with the HTML DB Version 1.6.0.0.0.87 and the Oracle Version 9.2.0.6.
    I create a SQL Report, where a PL/SQL Script return the SQL Statement for the Report. This is my source-code, I have short it...:
    Declare
    sql_str varchar(2000);
    sql_str_select varchar(1000) :=' select dim_sparte …... ';
    sql_str_from varchar(1000) := ' from faktentabelle,dim_sparte ';
    sql_str_where varchar(1000):= ' where … and faktentabelle.zeit_id = :POPUP_ZEIT ';
    sql_str_groupby varchar(1000):= ' group by dim_sparte.name, faktentabelle.zeit_id ';
    Begin
    If ( (V('POPUP_NETZGEBIET') is not NULL) and (V('POPUP_NETZGEBIET') <>
    'Alle Netzgebiete')) THEN
    sql_str_select := sql_str_select || ' ,dim_organisationseinheit.netzgebiet_name ';
    sql_str_from := sql_str_from || ' , dim_organisationseinheit ';
    sql_str_where := sql_str_where || ' and faktentabelle ... and
    dim_organisationseinheit.netzgebiet_name = :POPUP_NETZGEBIET';
    sql_str_groupby := sql_str_groupby || ' , dim_orga .... ';
    End IF;
    sql_str:= sql_str_select || sql_str_from || sql_str_where || sql_str_groupby;
    htp.print(sql_str);
    Return sql_str;
    End;
    This Script include a IF-THEN condition. The Condition is true and the sql-String-Variables are updatet.
    I can get the string with htp.print() and the Statement is OK.
    The report get a Error “report error: ORA-1403: no data found”. If I copy the printet sql String in a new Report Region with SQL String, the Report is OK. When I write IF(true) instead of IF( Condition) the Report is OK, too.
    I try ist with Varibalen V(‘name‘) and with :name. It’s always the same problem. I can’t use IF-THEN-Else Conditions in a Script.
    Please help me and say me what is the problem???
    Thanks,
    Simona

    Hi Simona,
    In the sql region below the region source see that you have " Use Generic Column Names (parse query at runtime only)" check and not " Use Query-Specific Column Names and Validate Query".
    This error you usually get when you have a mismatch in your report heading.
    Vivek
    [email protected]

  • Error Accessing Report in SharePoint Integrated Mode (SQL Server 2008 with SharePoint 2007)

    I have installed reporting services with SharePoint Integration Mode, however, whenever I access the report, below error occurs:
    Report Server has encountered a SharePoint error. (rsSharePointError)
    Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
    Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)
    Checking through the Log Files, there is more detailed error message, but not sure what cause the error:
    library!ReportServer_0-2!4064!11/01/2010-15:00:39:: Call to GetPermissionsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
    library!ReportServer_0-2!4170!11/01/2010-15:00:39:: Call to ListParentsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
    library!ReportServer_0-2!4170!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
    System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       --- End of inner exception stack trace ---
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary()
       at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
       --- End of inner exception stack trace ---
    library!ReportServer_0-2!4064!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
    System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
       at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       --- End of inner exception stack trace ---
       at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
       at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
       at Microsoft.SharePoint.SPFile.OpenBinary()
       at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
       --- End of inner exception stack trace ---
    Any idea on how to resolve the issue?

    Hi Jin Chen,
    Thank you for your response. I have disabled all the Symantec End Point Protection Service, but problem persists..
    Further, I have checked through the ULS Log in SharePoint, there is more error reported there:
    11/03/2010 15:19:48.44 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   Database                      
    6f8g Unexpected
    Unexpected query execution failure, error code 282. Additional error information from SQL Server is included below. "The 'proc_GetTpWebMetaDataAndListMetaData' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be
    returned instead." Query text (if available): "{?=call proc_GetTpWebMetaDataAndListMetaData(?,'F77D6A37-F8D2-492C-911C-923C8A135DEB',?,NULL,1,?,?,6187)}"
    11/03/2010 15:19:51.46 ReportingServicesService.exe (0x3510)  
    0x4064
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    11/03/2010 15:19:51.69 ReportingServicesService.exe (0x3510)  
    0x1EEC
    Windows SharePoint Services   General                      
    8e2s Medium  
    Unknown SPRequest error occurred. More information: 0x80020009
    Do you have any idea based on the error above?

  • REP-1247: Report contains uncompiled PL/SQL.

    Hi learned friends
    I have created a batch script that runs rdf generates pdf reports for me at each eod run.
    The report errors out:
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    This is the command i execute:
    /udd001/app/oracle/product/dev60/bin/rwrun60 userid=/ report=/udd001/app/mu_tosd/ci/reports/GT0009R.rdf paramform=no destype=file batch=yes desformat=pdf mode=bitmap desname=/udd001/app/mu_tosd/ci/eodreport/GT0009R.pdf nonblocksql=no
    Now I have compiled all (Ctrl+Shift+K) successfully.
    Thanks a mil guys

    Hi,
    1) did you save the compiled reports?
    2) is the connect string you use to compile the reports with the same as the connect string you use when you run your reports in your batch?
    hope this helps,
    E.

  • 1247 Error - Uncompiled PL/SQL

    We migrated from reports 3.0 to 6.0, specifically Report Builder 6.0.8.8.3. Seems like every time I go in now and modify a report, it does something and when a user tries to run the report, they get a 1247 error - Report contains uncompiled PL/SQL. I go in and connect to my database, open the report, compile it, get no errors, save it, close report builder, same result. My compilations aren't saved. Somebody told me to save as .rep instead of .rdf. So I started converting all the reports. That was working fine till I got to one that told me I had uncompiled pl/sql. I repeated the above process, tried to convert it to .rep again, same problem. I downloaded the lastest version of designer from Oracle, it has the same report builder. Does anybody have a solution to this problem? Right now, we have to take our report to another office which uses Designer 2.5 and compile it there, then bring it back here so users can access the report.

    973636 wrote:
    Hi All,
    I have complied(ctrl+shift+k) one report through the Report Builder successfully.
    If i run this Report,i am getting error like below:
    "Re: REP-1247: Report contains uncompiled PL/SQL ".
    Could you please tell me the solutions to solve this and in which cases this report will give such type of error.
    Thanks,
    shekhar yadav.Please post the details of the applicationr release, database version and OS along with your reports builder version.
    Please see these docs/links.
    OERR: REP 1247 Report contains uncompiled PL/SQL. [ID 25423.1]
    A Custom Report Fails with REP-0736: There exist uncompiled program unit(s). [ID 369627.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=REP-1247&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Report contains uncompiled pl/sql..in Dev10g....

    Hi ,
    I have developed some reports which contains simple pl/sql code...
    Although i have compiled them numerous times... the next time when i try to run them again... this error is displayed......!!!!
    What can i do....?????
    Thanks,
    Sim

    Hi,
    a) saved the reports once compiled?Yes
    b) generated as .rep ?No. I run them as rdf.....
    Also, are these reports running on the same database as compiled against, if not then are all referenced objects on that database and if so are they all VALID?Yes... and all db object are valid....
    there may be an issue with inconsistent/missing librariesmissing lib ... where ??? in the reports ... in the database....????
    I am assuming that you have compiled these through 10g developer suite (reports builder) and not an earlier versionYes.... using Report10g (10.1.0.2)...!!!!
    So.. is this because i have not generated a .rep file....???? However , I do not run the .rep file... I run the .rdf file (either using the forms built-in proc web.show document or directly the .rdf from the report env).....
    Thanks....
    Sim

  • Encountered REP-1247: Report contains uncompiled PL/SQL

    Hi All,
    I am facing an issue where I have created a formula column inside the invoice RDF report but when I run the report this is errored with the below message ,I do have compile the formula column properly and i have also compiled the complete rdf properly .
    REP-0736: There exist uncompiled program unit(s).
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
    MSG-00100: DEBUG: AfterPForm_Trigger -
    REP-1247: Report contains uncompiled PL/SQL
    When I removed the formula column ,report is running succesfully .Any hint would be very helpfull ,please give your thoughts .Thanks in advance .
    Thanks
    Pratap

    Hi Paul
    This error usually means that the user that is running the report does not have the required privs on tables or packages used in the report. Solution: Open the report in reports builder. Set the runtime properties (Role) that is assigned to the report. Connect as the user running the report on the same database instance as your run environment. Compile the report (Shift-Ctrl-K). This should show you where the error lies.
    Regards
    Logan

  • REPORT WITH PL/SQL  CODE

    DECLARE
    SQ VARCHAR2(100);
    BEGIN
    SQ := 'SELECT * FROM EMP WHERE EMPNO=7788';
    RETURN SQ;
    END
    THE ABOVE PL/SQL CODE WORKING FINE
    BUT I NEED CONDITION BASED ON ENAME
    SQ:='SELECT * FROM EMP WHERE ENAME=''SCOTT'';
    IT IS GIVEING ERROR
    WHAT TO DO?

    Hi,
    You're missing the final quote - you have the quotes for SCOTT but not the one to close the SQ string:
    DECLARE
    SQ VARCHAR2(100);
    BEGIN
    SQ := 'SELECT * FROM EMP WHERE EMPNO=''SCOTT''';
    RETURN SQ;
    ENDAndy

  • Restricting the pl/sql error in report region(sql report)

    Hi,
    Is there any way to hiding pl/sql error in report region when we use generic column names*(Use Generic Column Names (parse query at runtime only)*
    ). and type is sql query else displaying alternative error message on that particular report region
    I am using apex 4.1 and 11g database
    Thanks
    Sagar.

    What kind of pl/sql error you are talking about?

  • Invalid Key code Error while installing crystal report server 11

    While installing crystal report server 11,i am facing an erro which says Invalid Key code Error.I had raised this issue to SAP customer support and attaching the conversation that we had.PLEASE HELP me to resolve the issue.
    MAILS--Dear Mohit,
    Thanks for the patience.
    We have received the below update from the Licensing Team.
    You received your permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    You did not purchase these licenses for Crystal Reports Server, but purchased it for Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but you elected to use version XI instead and received key .
    You would need to enroll the licenses in maintenance if you want to upgrade them.
    In case of any queries please create a ticket via the Service Market Place.
    Regards,
    Jessy
    Customer Interaction Center
    SAP Active Global Support
    Hello Jessy,
    The customer received their permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    They did not purchase these licenses for Crystal Reports Server, they purchased Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but they elected to use version XI instead and they received key .
    They cannot decide to upgrade now - they must enrol these licenses in maintenance if they want to upgrade them.
    Kind regards,
    Rosemary
    From: BOSAPASIA
    Sent: 29 September 2009 05:49
    To: Savage, Rosemary
    Subject: FW: Crystal Reports Server Installation Issue
    Importance: High
    HI Rose ,
    Need your assistance on the below issue.
    Customer purchased Crystal Report Server XI R2 in 2005. When he is trying to install it now, he is getting an Invalid Key code Error.
    He has provided us the Scanned copies of the Key code and the registration number.Can you please help and check if he can be provided with a Keycode.
    Regards,
    Jessy
    CIC Team Lead
    Customer Interaction Center
    Global Support Centre India
    SAP Labs India Pvt Ltd
    Hi,
    Providing you with the required details to proceed further
    Registration Number-
    Registration Email Address-taxmantra.support
    And also please find attached the scanned copy of the Registration key we got for the Crystal report server.
    Dear Mohitk,
    Thank you for your information.
    I checked with the concerned colleague and received the below update:
    Please check from where you got this key code. If from a paper, please scan it to us. Please let them track to the original paper or email.
    If you have registered the key code, please provide us the registration number or registration email address so that we will try to check for you.
    If you did not register before, as the promotion is over so the key code could not be replaced.
    I request you to kindly check the same at your end and revert with the details.
    Moreover, there are two ways for Crystal Report customer to get support.
    One is customer with bundled product such like BOE and under maintenance. These customers will have an S-user ID and password to log a case in service market place via http://service.sap.com/message
    A learning map was provided, listed on left column.
    The other is customer with only Crystal report product, the support is via SDN.
    http://service.sap.com =>Crystal Reports and Xcelsius Support=>Crystal Reports and Xcelsius Forums
    Customers can first check whether other customer has got the same issue and find the reply from our engineers.
    You may also post your own thread for support.
    Anything else I could help, please do not hesitate to contact again.
    Hi,
    I am providing you with the details required to resolve the issue related to Crystal report installation,for reference of the issue please refer the mail below.
    Please find attached the Scanned Document  containing the details as per the details required by you.
    Hope to see a quick resolution for the issue.
    Dear Mohit,
    Thank you for your e-mail.
    As discussed, I understand that youu2019ve procured Crystal Reports Server 11 in 2006. However youu2019re facing issues with key codes while reinstalling the same. We request you to kindly provide us with below details for further assistance.
    Your customer number:
    Your customer name and address:
    Purchase order number:
    Any other products purchased along with Crystal Reports Server 11
    Any S-User Id:
    Any old case ID:
    Please feel free to contact us if any further queries.
    Hi,
    I am raising this concern on behalf on Taxmantra project (Tata Consultancy Services noida).
    We have bought licensed Crystal Reports Server 11 near by 2006.We are trying to install the crystal server but while installing ,we have encountered with an error message that:-
    "The product key code you have entered is incorrect"
    We are facing the same issue in 2006,I am attaching with this email the conversations that was held in 2006 to get the correct key code.
    Please help us to resolve the issue as early as possible.
    My contact number:
    If you need any further information do let me know

    Ajit,
      By design, the product is not able to be installed under the superuser account.
    1.  Create a new user and specify a home directory for the user without a quota set.
    2.  Copy or move the installation files to a directory that the new user can read.  I suggest you move the installation files directly into the new user's home directory.
    3.  Logon as the new user (or su - newuser)
    4.  run the installation shell script using that new user's account.
    NOTE:  Ensure the system meets the requirements from the supported platforms documents.
    .Tony

  • SSRS VB Code error while deploying report -- There is an error on line 5 of custom code: [BC30201] Expression expected._

    Function MakeList(ByVal items As Object()) As String
        If items Is Nothing Then
          Return Nothing
    END if 
    Dim builder As System.Text.StringBuilder = 
          New System.Text.StringBuilder()
          builder.Append("<div>")
       For Each item As Object In items
          builder.Append("<div <ul>")
          builder.Append(item)
          builder.Append("</ul>")
       Next
       builder.Append("</div>")
       Return builder.ToString()
    End Function
    Function Length(ByVal items as Object()) as Integer
       If items is Nothing Then
          Return 0
       End If
       Return items.Length
    End Function

    Hi Wintersbay,
    According to your description, when you use the custom code in SSRS report, you got the error message.
    To solve the problem, please refer to the custom code below:
    Function MakeList(ByVal items As Object) As String
    If items Is Nothing Then
    Return Nothing
    END if
    Dim builder As System.Text.StringBuilder =
    New System.Text.StringBuilder()
    builder.Append("<div>")
    For Each item As Object In items
    builder.Append("<div <ul>")
    builder.Append(item)
    builder.Append("</ul>")
    Next
    builder.Append("</div>")
    Return builder.ToString()
    End Function
    Function Length(ByVal items as Object) as Integer
    If items is Nothing Then
    Return 0
    End If
    Return items.Length
    End Function
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

Maybe you are looking for