How to handle the #error in ssrs expression

hi 
Please any one help me to resolve this #error ,
I have a calculated filed in that expression i given a if condition like below 
data of column is coming like this 0 , 0.0 
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/( Fields!Column1.Value)))
how to handle the #error 
Please let me know any one 

Hi deepuk23,
According to your description, when you use the IIF() function in the report you got some error,right?
The issue can be caused by the column1 and column2 have different datatype, I assumed that one is integer and another is float, when the Column1 is 0 or null,  because IIF() function always evaluates both the true part and the false part, even
though it returns only one of them, it will throw out the error. 
To resolve the issue, you should use a nested IIF() function to avoid the zero-divisor in any rate like below:
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/(IIF(Fields!Column1.Value=0,1,Fields!Column1.Value))))
For more information, please refer to this article:
FAQ: Why does the “Attempted to divide by zero” error still happen?
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support

Similar Messages

  • How to handle the errors using RSRV tcode

    Hi all,
           Could any one give tell me how to handle the errors,(if possible give me some example errors)and correct the errors using RSRV tcode.
    Thanks & Regards,
    Aswini.

    Hello Aswini,
    For further details on RSRV go through the link:
    http://help.sap.com/saphelp_nw04/helpdata/en/92/1d733b73a8f706e10000000a11402f/frameset.htm
    Hope it helps
    Cheers
    SRS

  • How to handle the errors in transformations

    Hi
    I am using SOA, JDev 10.1.3.3.
    How to handle the exceptions in transformations.
    If any thing goes wrong in transformation then how to handle that situation.
    I am not getting any kind of instances like errored out..
    Please help me out
    Regards
    Pavankumar

    I think your issue is that your process is going into manual recovery.
    In the console click on the tab BPEL processes. There is a link on the left for manual recovery. Do you see your processes there?
    What happens if you put your transformation into a scope. The in that scope you have a catch All. In this catch All routine just do a terminate. This will error your process but you should see it appear in the console.
    cheers
    James

  • How to Handle the error message?

    Hi,
    Can any one help me in handling the error messages in application,
    In my application, I am having 2 buttons, one is display button, and the other is reset button. When we enter wrong inputs, it prompts an error message and again we I click on reset button the application goes back to its normal stage i.e. the error message will be disappears. These things will happen in the same page. I have tryed to know the any Id/Name of error message.
    So please help to handle error and skip that error then continue execute raming code.
    Thanks
    Buntty

    A few problems with this question that need clarification:
    You're using a GUI, but we have no way of knowing which one -- Swing? AWT? SWT? other?
    You ask how to fix your program flow and logic but don't show us the current state. Most of us can't read minds so a bit of code would be nice here.
    You mention "Page". What context is this in?
    A great resource that has helped me and will probably help you is an article entitled [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html] . It will tell you how to formulate your questions so that the folks here will be better able to answer them. Good luck.

  • How to handle the error handling..its urgent

    hi guys...
    how to handle the Exception using jsf. for example...in java program we try to connect the server...if server not connect then the exception occur like java.net.ConnectException.. i have to handle exception using jsf and display related error page...plz give me ur valuable words..its need is very urgent..
    advance thanx and with regards
    DJ

    Hi,
    1. create a new error bundle (myErrMsg) // copy from javax/faces/Messages.properties in jsf-impl.jar
    2. declare this bundle in your faces-config
    <application>
    <message-bundle>bundle.MyErrMsg</message-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>de</supported-locale>
    <supported-locale>fr</supported-locale>
    </locale-config>
    </application>
    3. handle the Exception in your backing bean
    ResourceBundle bdle = ResourceBundle.getBundle("bundle.MyErrMsg",this.getLocale());
    context.addMessage(clientId, new FacesMessage(severity, bdle.getString(key), null));
    4. add the tag messages in your jsp
    <h:messages layout="table" errorClass="TextError" infoClass="Text"/>

  • How to handle the error stag(error DTP)

    Hi Friends, i got some records in the error stag while loading data from Dayta source to Master data target and this is in the production. we didn't created the Error DTP in the production. How to delete the error reocrds from the error stag if we dont want to update it to the target.And the request is showing in yellow due to that iam not able to delete the dtp request from the target.
    any help...to proceed with this error.
    thanks in advance.

    HI
    You are not able to delete the DTP from target?
    Change the request to RED
    Double clicking on theTrafic signal... then manually change the request to RED and Then you will be able to delete it.
    Hope this help...
    Dev

  • File not reached ftp : How to handle the error

    Hi,
    I am doing idoc-file scenario. I need to place file on ftp server. Now if i give incorrect ftp details, the error canot be seen in SXI_MONITOR but in Adapterframework i can see the error.
    Can someone please let me know how this exception can be handled. I need to send mail notification notifying such errors.
    Thanks & Regards
    Vani

    Hi Vani,
    XI has 2 basic engines, the Integration Engine and Adapter Engine running inside the J2EE engine.
    The reason that you can see the error in Adapter but not in SXMB_MONI is that the processing of your Integration Engine has no errors in it.
    But, when the Adapter is trying to post the file into the Destination System, it errors out and so, the error in the Adapter Framework.
    Errors in the Adapter Engine can also be used to trigger alerts and send email.
    To create Alerts, Alert Rule, just check this blog,
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    It will help you in doing your entire Alert Configuration.
    Next,from SP14 onwards, activation of end to end monitoring is not needed for Alerting. Refer to this note 870232 for this info.
    Next, to test if your Alerts have been defined correctly, go to SE38. In the program , type RSALERTTEST and then click on EXECUTE button ( F8 ). In the next window, it will ask you for your ALERTCATEGORY. Just give the name of your ALERT CATEGORY and click EXECUTE.
    If you have configured your alerts correctly, you will receive a message that tells ALERT IS GENERATED and will give the ALERT ID.
    Now, go to your Run TIme workbench and then select ALERT INBOX and see if you have got the ALERT message in your ALERT INBOX.
    If this is working fine, then the last step, implement the note 913858.
    If you are below SP14, also check this blog,
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    Regards,
    Bhavesh

  • How to handle the errors in BDC Session method

    Hi All,
    I am uploading Material Master (MM01) records using BDC Session Method.my problem is when i am running the program, all the error records are going to flat file.how can i correcting the error records and after correction how can i re-process the error records.tell me with example.
    i have around 70,000 records in my flat file.

    Hi,
    I am attaching few threads.Hope these will help you.
    If there are any error records in session, all those error records will get poulated in log .SM35 and after the session is completed , u can see error records which can be corrected and reprocessed again
    We have the structures BDCLD and BDCLM, which will capture the log details inthe session. Firstly, sesssion should be processed. After that log will be created. Then caputure the information into an internal table using BDCLM and BDCLD.
    and refer the link.
    error correction in bdc session
    regards
    Madhu

  • How to handle the error ORA-04052

    We have two Oracle database servers Primary and Secondary, and a DBLINK from Primary to Secondary.
    We have a table EmployeeDetails in both the database.
    we have written a query to retreive data from both the database using DBLINK without any problem.
    When the SECONDARY database was shutdown,
    we get exception in the query.
    ORA-04052: error occurred when looking up remote object SYSTEM.EmployeeDetails@REMOTEDB
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12505: TNS:listener could not resolve SID given in connect descriptor.

    What kind of query is this? How is the "erroring" statement called?
    ORA-04052: error occurred when looking up remote
    object SYSTEM.EmployeeDetails@REMOTEDB While designing, do not use the system schema - use a separate schema for your app's objects !

  • How to handle the error when using Connection.setAutoCommit()

    I use Jboss's datapool to realize the connection to Sybase
    Database.And after connected to the database I wrote "con.setAutoCommit(false)" then the error occured.
    The error is "java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database. Please install the required tables as mention ed in the jConnect documentation."
    I think it is because there is something wrong with the
    configuration of the database but can not handle it .So please
    help me,thank you!

    I use Jboss's datapool to realize the connection to
    o Sybase
    Database.And after connected to the database I wrote
    "con.setAutoCommit(false)" then the error occured.
    The error is "java.sql.SQLException: JZ0SJ: Metadata
    a accessor information was not found on this database.
    Please install the required tables as mention ed in
    the jConnect documentation."
    I think it is because there is something wrong with
    th the
    configuration of the database but can not handle it
    .So please
    help me,thank you!Most likely it means that your either DB or JDBC driver doesn't
    support transactional approach, I mean: commit(), rollback() functions, so it reports setAutoCommit(false) as errorneous situation.
    Paul

  • How to handle the error: GP_CAT:1235:ERROR:Could not initialize random algorithm?

    Hello,all,
    My tuxedo server is running on the Solaris 8 platform.Sometimes the application
    services could not be started and the GP_CAT:1235 message was found in the ULOGs.
    Once I restart the service or reboot the machine, the service is OK. I wonder
    whether the parameter in /etc/system is properly set:
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=64
    set semsys:seminfo_semmap=1024
    set semsys:seminfo_semmni=1024
    set semsys:seminfo_semmns=1024
    set semsys:seminfo_semmnu=1024
    set semsys:seminfo_semmsl=1024
    set semsys:seminfo_semopm=128
    set semsys:seminfo_semume=256
    set semsys:seminfo_semvmx=32769
    set semsys:seminfo_semaem=16384
    set msgsys:msginfo_msgmap=800
    set msgsys:msginfo_msgmax=65536
    set msgsys:msginfo_msgmnb=84000
    set msgsys:msginfo_msgmni=10000
    set msgsys:msginfo_msgssz=64
    set msgsys:msginfo_msgtql=4096
    set msgsys:msginfo_msgseg=4096
    Any advice is wellcome.Thanks.
    Luo

    I haven't used VB with Illustrator, so I'm not sure what error is thrown. But, you need to put the On Error before the step that throws the error. Also, your file path should be in quotes.
    On Error GoTo ErrorHandler
    appRef.open("c:\test.eps")
    Exit Sub
    ErrorHandler:
    Msgbox "Error: " & Err.Description
    Note that you need to break before the ErrorHandler so that your error code doesn't run when there is no error (either exit the sub/function, or use another GoTo to break to another line. You can look at the 'Err' object for details on the error that occurred.

  • How to handle the error in Oracle9i Application Server?

    After installing the Oracle9i Application Server ,Oracle8i 1.7 Database,I visit the link"http://localhost" ,then click "Jsever (demo)". Then ,there appears "500 Internal Server err".
    The log file:
    mod_jserv.log
    [24/01/2002 09:25:32:031] (EMERGENCY) ajp12: connection fail
    [24/01/2002 09:25:32:031] (ERROR) an error returned handling request via protocol "ajpv12"
    Please help me.Any help appreciated!

    After installing the Oracle9i Application Server ,Oracle8i 1.7 Database,I visit the link"http://localhost" ,then click "Jsever (demo)". Then ,there appears "500 Internal Server err".
    The log file:
    mod_jserv.log
    [24/01/2002 09:25:32:031] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
    [24/01/2002 09:25:32:031] (EMERGENCY) ajp12: connection fail
    [24/01/2002 09:25:32:031] (ERROR) an error returned handling request via protocol "ajpv12"
    Please help me.Any help appreciated!

  • How to handle the error delta load?

    Hi Experts,
    We have a InfoCube include three InfoSource: 2LIS_11_VAITM, 2LIS_12_VCITM, 2LIS_13_VDITM.
    The delta load of 2LIS_12_VCITM failed on Oct 23,2006.  It blocked all of the latter data load, even though 2LIS_11_VATIM and 2LIS_13_VDITM load the data successfully.  And 2LIS_12_VCITM didn't do any load step after Oct 23, 2006.
    How should I do to fix this problem and make all of the data can be go into InfoCube correctly?
    Thanks,
    Lena

    Hi Jerome,
    Thanks so much for you help. Currently, the data loaded successfully.
    But I have another issue, because of the failed request status is red, it seems it blocked all of data to go into InfoCube (even though the delta load is successful). I can not see the new data in the InfoCube. And in the InfoCube manage, the "Request for Reporting Available" field for the successful request is null.
    How should I do?
    Thanks,
    Lena

  • How to handle the error " Table passed to EDI_STATUS_ADD_BLOCK is empty"

    Hi All,
    We are generating idoc for any material changes using change pointers.  Our requirement is the idoc should not generate for few plants.
    I have programed in the exit EXIT_SAPLBD11_001, in sucha a way that i am refreshing the table idoc_data for those few plants.
    But while generating idoc, am getting an error saying -   * " Table passed to EDI_STATUS_ADD_BLOCK is empty" . *
    Filtering at model view will not work( because I have 130 plants to be included and only 20 plants to be excluded ) .
    Is there negative filtering that can be done ? or any other way to overcome this error ?
    Please give your suggestions.
    Thank you,
    Kusuma

    Hi,
    You can achieve this by using the concept called BTE, BTE will help you to filter them. We have used that quiet successfully in my earlier project.
    BTE means Business Transaction Event.
    Thanks,
    Mahesh.

  • How to handle the error?

    An error has occurred. See error log for more details.
    com/adobe/thermo/importnativeartwork/importer/ArtImporterFileDialog$FileFilterType

    What kind of file were you importing? It might have been too complex to import and you might need to simplify it before importing.
    Chris

Maybe you are looking for

  • Sales order creation using BAPI_SALESORDER_CREATEFROMDAT2

    Hi, I'm using the bapi 'BAPI_SALESORDER_CREATFROMDAT2' to create sales order. I need to pass the COST CENTER value to the header data of the sales order. The salesheader structure of the bapi does not support this field. How do I go about it? I need

  • MultiMedia Center for Think Offerings for Windows XP and 2000 -- will not install on Windows 7

    MultiMedia Center for Think Offerings for Windows XP and 2000 -- will not install on Windows 7  in compatibility mode or any other way. I receive error " can not open \device\memory" and then " This program can not run on his hardware. Thinkcenter E

  • Unable to extend table tablespace

    when I use SQL*LOADER to load a data file into my ORACLE table, the erro message as follow: "ORA-01653: unable to extend table JLQ.DETAIL by 210 in tablespace USERS" JLQ.DETAIL is my table name . how should I do to overcome it ? thanks. regards. null

  • Lost my full screen option in imovie09?

    I can no longer go to full screen mode for some reason? It just stopped working? Used to be able to hit command G and it would take me there. Now it just beeps when I hit it. Also the full screen tab on the bottom left of window no longer works? It w

  • Phone shutting down at different % remaining everytime

    My 5s is shutting down at odd percentages each time.  50%  30%20%, and then when I recharge right away it is up 20% from where it shut down.  Battery usage is saying low signal for phone and iMessage using at least 30% in short periods.  Help, I can'