Cannot search for "@" symbol when using search function

I am trying to create a calculated column which extracts the domain part of an email address. My problem is that no type of search formula (SEARCH or FIND) seems to be able to recognise the "@" symbol so I get an error stating that
"The search TEXT provided to function 'SEARCH' could not be found in the given text"
Even more bizarre is that if I do just a general search in my table (CTRL + F from inside Powerpivot) it cannot find @ symbols either. Could someone please explain why PowerPivot cannot search for the @ symbol (I haven't tested others) and whether there
is a solution?
The formula I was trying to use was:
=SUBSTITUTE(A1, LEFT(A1,FIND("@",A1)),"")
Obviously with A1 replaced by the column name of where my email data is stored.
Any help would be much appreciated.
Thanks.

Both FIND() and SEARCH() should find the "@" in PowerPivot.
I have done it many times.
You probably have one row in your data set that doesn't contain "@".  That will cause the error you describe and if one row in a Calculated Column causes an error, every row has an error if you do nothing to account for it.
Try wrapping your formula in an IFERROR([Your Formula], BLANK()).
This should allow it to run successfully on valid rows and will show a blank on any rows that are causing problems.
Once you identify the problem row (or rows) you can make a decision about how to deal with it.

Similar Messages

  • When using TODATE function MDX query is not correctly generated

    Essbase 9.3.1.2 and OBIEE 10.1.3.4.1.
    When using TODATE function MDX query is not correctly generated.
    This leads to unexpected values not only on cumulative columns in report (generated with TODATE), but also other columns (calculated with AGO function or directly read from cube) have incorrect values.
    The problem occurs when you filter on a column that is not in the select list. If you filter on just one level of dimension, results are fine. You can filter on multiple dimensions as long as you filter on just one level of each dimension.
    If you filter on two or more levels of one dimension, than results are not correct. In some cases results for TODATE column are all zeros, in some cases it is a random value returned by Essbase (same random value for all rows of that column), and in some cases BI Server returns an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Essbase Error: Network error [10054]: Cannot Send Data (HY000).
    Here is generated MDX code:
    With
    set [Grupe proizvoda2] as '{[Grupe proizvoda].[N4]}'
    set [Grupe proizvoda4] as 'Generate([Grupe proizvoda2], Descendants([Grupe proizvoda].currentmember, [Grupe proizvoda].Generations(4), leaves))'
    set [Segmentacija2] as '{[Segmentacija].[RETAIL]}'
    set [Segmentacija4] as 'Filter(Generate({[Segmentacija2]}, Descendants([Segmentacija].currentmember, [Segmentacija].Generations(4),SELF), ALL), ([Segmentacija].CurrentMember IS [Segmentacija].[AFFLUENT]))'
    set [Vrijeme3] as '{[Vrijeme].[MJESEC_4_2009]}'
    member [Segmentacija].[SegmentacijaCustomGroup]as 'Sum([Segmentacija4])', SOLVE_ORDER = AGGREGATION_SOLVEORDER
    member [Accounts].[MS1] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],2,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS2] as '(ParallelPeriod([Vrijeme].[Gen3,Vrijeme],1,[Vrijeme].currentmember), [Accounts].[Trosak kapitala])'
    member [Accounts].[MS3] as 'AGGREGATE({PeriodsToDate([Vrijeme].[Gen2,Vrijeme],[Vrijeme].currentmember)}, [Accounts].[Trosak kapitala])'
    select
    { [Accounts].[Trosak kapitala],
    [Accounts].[MS1],
    [Accounts].[MS2],
    [Accounts].[MS3]
    } on columns,
    NON EMPTY {crossjoin ({[Grupe proizvoda4]},{[Vrijeme3]})} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [NISE.NISE]
    where ([Segmentacija].[SegmentacijaCustomGroup])
    If you remove part with TODATE function, the results are fine. If you leave TODATE function, OBIEE returns an error mentioned above. If you manually modify variable SOLVE_ORDER and set value to, for example, 100 instead of AGGREGATION_SOLVEORDER, results are OK.
    In all cases when this variable was modified in generated MDX, and query manually executed on Essabse, results were OK. This variable seems to be the possible problem.

    Hi,
    Version is
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Sorry, in my last post i forgot to mention that i already created a function based index but still it is not using because, there is a UNIQUE constraint on that column.
    Thanks

  • IPhone4S display unknown symbol when use USSD

    please when i used iPhone4S display unknown symbol when use USSD ???
    NOT : i dont know why cose as same time i have iphone 4 and used same carrier but  its WORK FINE AND show ussd

    iPhones no officially support USSD but I can sure it is support USSD because my friend's iPhone is work with USSD.
    I and my friend using same carrier same iPhone4S same codes,no JB but my friend's iPhone is work with USSD,only my iPhone cannot work with USSD.
    Thank for all answer,no need answer for me already because I just now send to apple store,they check is phone problem,so now claim warranty,need to wait 2 week to get back new iPhone =.="

  • 10.9.4: Graphical errors when using OSX functions like Mission Control, Spotlight

    Device: MBP 15" Retina 2.3 GHz Intel i7
    OSX: 10.9.4
    Monitor: 27" Thunderbolt Display
    Issue: When using OSX functions like Mission Control (Expose) and spotlight, I frequently get graphical errors that remain on the desktop unless I reset the computer. I can resolve the issue by adding a new desktop and dragging my windows over.
    This happens almost every day.

    You have installed all these non-Apple system modifications:
    Kernel Extensions: ?
      [loaded] at.obdev.nke.LittleSnitch (4052 - SDK 10.8) Support
      [loaded] com.nvidia.CUDA (1.1.0) Support
      [loaded] com.promise.driver.stex (5.2.7 - SDK 10.9) Support
      [not loaded] com.silabs.driver.CP210xVCPDriver (3.0.0d1) Support
      [not loaded] com.silabs.driver.CP210xVCPDriver64 (3.0.0d1) Support
      [not loaded] com.wacom.kext.pentablet (5.2.6) Support
      [not loaded] com.wacom.kext.wacomtablet (6.3.8 - SDK 10.9) Support
    Litlle snitch has been a bad actor for some users.
    You do not have any CUDA Hardware, so the CUDA Driver is not needed.
    I do not know what siLabs driver thinks it may be driving.
    You left the door open:
    Gatekeeper: ?
      Anywhere

  • Certain LinkedIn functions are not working. Browser keeps on looping, for instance when using the search function

    I go to LinkedIn and type in a name in the search box, for instance "Peter" and hit enter.
    Normally, this will return with a list of people with the first name "Peter", listed according to degrees connectivity.
    Instead the web site never loads the next page. It appears that it keeps loading the page over and over again, but with no result.
    In the end I have to press back or use another browser (Safari) to load the page and use the search function.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Bypass Firefox's Cache
    Use Command+Shift+r to reload the page fresh from the server. Any difference? If not...
    2. Clear Firefox's Cache Completely
    Edit > Preferences > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    3. If needed, remove your linkedin.com cookies
    While viewing a page on the site:
    Tools > Page Info > Security > "View Cookies"
    Remove each cookie then try reloading the page. You probably will need to log in again. Does that help?

  • Error when using VML functions of Intel MKL v9.0 with LabVIEW 8.2.1

    Hi,
    I have created a DLL in Visual Studio 2005 which uses functions from the Intel Math Kernel Library (MKL) v9.0. The DLL works perfectly when I run it in VS 2005, but when I use it in the LabVIEW environment, I receive the error 1097 [An exception occurred within the external code called by a Call Library Function Node.].
    It seems that the VML function vdPowX(), which raises each element of a vector
    to the constant power, creates an access violation reading at location 0x00000000.
    Unhandled exception at 0x0652d545 (OptimisationDLL_Intel.dll) in LabVIEW.exe: 0xC0000005: Access violation reading location 0x00000000.
    When I trace it with VS2005, it seems to read at 0x00 when they check for the mode of the function (HA or LA) to see if the function will uses High Accuracy or Low Accuracy. You can reproduce the bug by simply trying to read the Mode with the Intel Function vmlGetMode().
    I'm not sure why I only get the crash in LabVIEW and not in VS2005. The other function from the MKL that I use, daSum(), works correctly in VS2005 and LabVIEW. It doesn't have an accuracy mode since it's not in the VML family, that's probably why.
    I've included the source code in C that causes the crash when the DLL is used in LabVIEW (Corellation_Intel.c).
    When you attach the LabVIEW process to Visual Studio Debug mode, the execution stops at eax,dword ptr [edx+ecx*4]:
    _mkl_vml_core_w7_vml_GetMode:
    023D528C  mov         ecx,dword ptr [__tls_index (240EA0Ch)]
    023D5292  mov         edx,dword ptr fs:[2Ch]
    023D5299  mov         eax,dword ptr [edx+ecx*4]
    Anyone had this kind of error or have any idea what I might have done wrong? I uses mkl_c.lib and libguide.lib libraries in the i32 of Intel MKL.
    Thanks a lot for your help and feel free to contact me if you need more information.
    Regards,
    Mat
    Attachments:
    Corellation_Intel.c ‏2 KB

    Dear Mat,
    While more details are desirable to give precise answer I guess that I know the origins of the problem. VML functions are thread-safe. VML engineers use Mircosoft TLS mechanism to maintain thread safety of VML global variables. The TLS use is different for static and dynamic case. This implies that it is impossible to use MKL static library which contains TLS stuff to build dynamic library. Indeed, your DllMain function must have VML TLS initialization/processing/finalization stuff (for details see http://msdn2.microsoft.com/en-us/library/ms686997.​aspx). In case VML TLS stuff is absent in your DllMain routine you will see Access Violation on any attempt to access VML global variables.
    VML engeneers are seeking for possible solutions/workarounds. Thus far they don't see any elegant way of solving this with existing technologies. Specifically, _mkl_vml_core_w7_vml_GetMode routine does access one of VML global variables.
    There is a possibility to build custom VML DLL from static MKL library using MKL Builder Tool. The limitation is that the built DLL cannot contain non-MKL stuff (recalling DllMain issue, MKL Builder Tool cannot put into DllMain routine user's stuff).
    Feel free to go to Intel MKL web forum or contact Intel Tech Support in case you have additional questions.
    I will keep you informed.
    Regards,
    Sergey Maidanov
    Intel Corporation

  • How to skip authorisation for infotype when using dynamic selection ?

    Hi folks,
    I have a problem here.
    When im using dynamic selection screen, i cannot skip authorisation for subtypes of an infotype. Eg. if my record for 0185 have records that do not have authorisation for the subtypes. Dynamic selection will filter away this record and will not get me into the Get Peras as id i use to run has authorisation configured. IT will skip out of Get Peras.
    However, if im not using dynamic selection screen, i will use the normal pnpce fields, i will be able to get the record, as i do my authorisation check using function module in the get peras, and i did not declare 0185 in the infotypes.
    May i know if there is any solution to this problem as dynamic selection screen is a standard...
    Thanks,
    lihui

    hi,
    however i cannot skip authorisation for the whole pernr as i need the authorisations for the processing reports.
    Currently the case is like this..
    i have a authorisations for infotype 0185. i have 2 subtypes records such as ZA and ZB. the user does not have authorisation to read ZB but has authorisation to read ZA.
    However, when use dynamic selection, it will skip out the pernr.
    If the pernr 0185 records has only ZA subtype but no ZB subtype, it will not skip this pernr when using dynamic selection.
    Anymore idea how to overcome this?

  • Documentation for RS_EU_CROSSREF (where-used list function module)

    Hi,
    I'm trying to understand how to use the "RS_EU_CROSSREF" function module.
    It corresponds to the where-used list function you find in so many SAP screens.
    I need to use it in a program, but I can't find any good documentation about it.
    I'd like something that tells me what values I have to fill in parameters.
    For example, how to search form "TEST_FORM" in all programs ? or even in a given program, I didn't get how to restrict the search to a program...
    Thank you for any help,
    Quentin

    Hi Gurpreet Singh,
    table cross does not find any function modules although I know for sure that there are function modules calling the function module.
    Please post an example of how to find function modules calling a function module with RS_EU_CROSSREF.
    /Elvez

  • OpenCV SEGFAULT when using imshow functions

    Hello,
    recently, when I run my OpenCV application on archlinux, I get a segfault when using  OpenCV's imshow() functions for displaying the video output. This still worked some weeks ago and I did not change my code since then.
    The error is related to GTK+ which causes the segfault after OpenCV uses the gtk_init() function.
    This is the stacktrace:
    #0  0x00000000006328a0 in signal ()
    #1  0x00007ffff1dff264 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
    #2  0x00007ffff1524427 in g_option_context_parse ()
       from /usr/lib/libglib-2.0.so.0
    #3  0x00007ffff1dff80e in gtk_parse_args ()
       from /usr/lib/libgtk-x11-2.0.so.0
    #4  0x00007ffff1dff869 in gtk_init_check ()
       from /usr/lib/libgtk-x11-2.0.so.0
    #5  0x00007ffff1dff899 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0
    #6  0x00007ffff6a1fa38 in cvInitSystem ()
       from /usr/lib/libopencv_highgui.so.2.4
    #7  0x00007ffff6a20163 in cvNamedWindow ()
       from /usr/lib/libopencv_highgui.so.2.4
    #8  0x00007ffff6a20cfd in cvShowImage ()
       from /usr/lib/libopencv_highgui.so.2.4
    #9  0x00007ffff6a1c7f7 in cv::imshow(std::string const&, cv::_InputArray const&) () from /usr/lib/libopencv_highgui.so.2.4
    #10 0x00000000004187e0 in StereoMatrix::displayImages (this=0x7fffffffd6ff)
        at /home/user/mtdev/src/StereoMatrix.cpp:51
    #11 0x000000000041861a in StereoMatrix::generateStereoMat (
        this=0x7fffffffd6ff, input=..., resizeMat=false)
    I'm running the recent version of OpenCV from the repositories:
    extra/opencv 2.4.6.1-3
    Apart from that my system is also up-to-date.
    Can anyone reproduce this error or has an idea what causes it?
    Thanks

    Hi Thanks for the response
    Still beavering away at this but have made sizeable progress since this post.
    First off I ma looking for solutions within CVI and not LabView but I often find that if there is a solution in Labview then there is often one in CVI so my question becomes.....does Labview allow for capture of a 10 bit image? That is my biggest stumbling block.
    My solution so far involves writing a C wrapper dll for the existing C++ SDK that is supplied with these cards in Visual studio then using it within CVI.
    This works but has been allot of work and as disappointed as I would be to find that there is a simpler solution I would be happy to simplify the code involved in my overall project - and also to put details of the best solution on the forums for others that may be trying to do the same thing!
    Another disadvantage to the curretn method is it is a little slow - I am constantly looking at way of speeding up aquisition of the images. I have no solid numbers but I'd estimate I am working in the region fo around 10 frames a second when working with 10 bit images.
    For 8 bit images the best solution I have found is to make use of the IPP library that is provided by Intel. This hasgreat functions for taking the raw data from the card and presenting it in various ways at high speed. I have written 1 application with this that pulls the informaiton in real time but only at 8 bit as unfortunately there is no 10 bit option.

  • DBMS_XMLQuery behavior when using stored function within cursor select

    Consider the following SQL Statement
    select t1.id
    , t1.name
    , cursor ( select t2.id
    from tab t2
    where t2.t1_id
    = t1.id
    and validate(t2.xyz,:bd1)
    = 1
    from tab t1
    where t1.id = :bd2
    DBMS_XMLQuery is used to create a context and to bind the appropriate values. In this case 'validate' is a stored function. I get the following error message upon execution:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Issuing a similar statement in SQL*Plus works fine. I was wondering whether this is a known issue when using a stored function in the cursor select statement in the context of DBMS_XMLQuery or whether I'm doing something wrong.

    Hi Jan,
    This problem has been identified and fixed. The fix should be available in the next release. Thank you for bringing this up to our attention.
    visar

  • ESB problem when use merge function in master/detail relationship

    I have some problem with the merge function in database adapter.
    details:
    I have 2 tables in master/detail relationship, both have GUID column as a primary key (GUID generated by ESB).
    'car_group' table
    pk : guid
    unique : group_no, datadate, datatime
    ===============================
    guid, group_no, datadate, datatime, group_detail
    ===============================
    1, 1, 01/01/2008, 09:00, groupdetail01
    2, 1, 01/01/2008, 10:00, groupdetail02
    'car_group_detail' table
    pk : guid
    fk : car_group_guid link to car_group.guid
    ==================
    guid, car_group_guid, detail
    ==================
    1, 1, detail01
    2, 1, detail02
    3, 2, detail03
    4, 2, detail04
    I used a file adapter as a input, here is an example text file
    M, 1, 01/01/2008, 09:00, groupdetail01
    D, detail01
    D, detail02
    M, 1, 01/01/2008, 10:00, groupdetail02
    D, detail03
    D, detail04
    Because I used merge function so I need to specify the columns that will be a condition for the insert/update,
    but I have generate GUID as a primary key in the tables, I can't used it, so in toplink I map my unique key as a primary key.
    The insert operation work fine but when update is required (for example, try to change 'group_detail' column of the master table in text file),
    an SQLException thrown, the log file shown the adapter try to update the GUID column of master table but the constraint not allowed.
    And yes, cause of GUID generate everytime so ESB try to update this column also, but I don't want to do like that, I need something
    like when update operation required, just ignored the GUID column.
    I try to mark read-only to the GUID column in Toplink mapping file but still have the same problem, it still generate UPDATE statement
    with the GUID column, and also I try to let the database trigger to generate GUID instead of ESB function, but it not works in master/detail
    relationship (I think the Toplink manage the relationship, is it right ?)
    Please advise, thanks for advance.

    somebody please help, thanks !!!

  • How do I turn off the requirement to press control when using a function key

    When using my wireless keyboard, it requires me to press controls to use the function keys (F3, F5, F70.) However, this makes it so some of my games controls won' work,(For example, in Minecraft I can't access the debug menu.) Is there any way to disable this.Thank you for your support

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info in Finder (or just Show Info)
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Error when using CONVERT_OTF function module

    Dear Friends,
    In many of our reports we are using the function module CONVERT_OTF to send the output as a mail the users.
    But after the latest patch update we have came across a new problem. Mail is getting triggered and we can also see the icon or
    the file in mail. But when we are opening the file we are getting the message that "THERE WAS AN ERROR OPENING THIS
    DOCUMENT. THE FILE IS DAMAGED AND COULD NOT BE REPAIRED.
    Earlier this program has been working fine from last 2 years but after updating the patch in the of August 2009. This problem we are
    facing. All our mails are not working.
    Thanks
    Vamshi
    Edited by: Rob Burbank on Sep 7, 2009 3:12 PM

    Dear Clemens,
    Thank you for the immediate response. I have checked the program in Debug Mode. When we are passing the data to the CONVERT_OTF the output table of the function module is showing the data in some Unicode format in the tables OTF and LINES.
    Out of the FM is in completely special characters and this is after updating the latest patch.
    We are using Release 700 Level 19 and Service Package SAPKA70019.
    Thanks and Regards
    Vamshi Sreerangam
    Edited by: vamshi sreerangam on Sep 8, 2009 5:54 AM

  • ORA-03001 "unimplemented feature" error for SQL when using view

    Our ERP allows us (IT staff) to create Information Access Layers which are basically views. These can be "live" where the view is like your tradiitonal one or non-live, where a table of data is replicated on a schedule and a view is available over that table.
    The following SQL runs fine with a non-live IAL but gives an ORA-03001 error when using a live one.
    Any ideas why please? We are using 9.2.0.6
    Thanks
    with
    d_list as
    select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
    from
    ifsinfo.cust_ord_salescodes
    where
    site LIKE 'OKM' || '%'
    and
    line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
    AND
    line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
    AND
    sub_division = 'GAS'
    AND
    line_item_no <= 0
    AND
    line_status != 'Cancelled'
    group by
    territory, customer_name, order_no, catalog_desc
    select
    d_list.territory,
    d_list.customer_name,
    d_list.order_no,
    d,
    0 as sum_value,
    d_list.v
    from
    (select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
    d_list
    where
    s_list.order_no=d_list.order_no
    order by
    d_list.territory, d_list.customer_name, d_list.order_no,d
    /Note: If I run the following it is fine, but obviously does not provide what I want:
    with
    d_list as
    select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
    from
    ifsinfo.cust_ord_salescodes
    where
    site LIKE 'OKM' || '%'
    and
    line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
    AND
    line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
    AND
    sub_division = 'GAS'
    AND
    line_item_no <= 0
    AND
    line_status != 'Cancelled'
    group by
    territory, customer_name, order_no, catalog_desc
    select
    d_list.territory,
    d_list.customer_name,
    d_list.order_no,
    d,
    0 as sum_value,
    d_list.v
    from
    --(select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
    d_list
    --where
    --s_list.order_no=d_list.order_no
    order by
    d_list.territory, d_list.customer_name, d_list.order_no,d
    /

    Thanks David. The actual SQL is as follows:
    with
    p_list as
    (select * from
    (select 'OKM'     p_company,
         'GAS'     p_subdiv,
         '01/06/2007' p_startdate,
         2     p_months,
         3000     p_minval,
         DECODE(UPPER('OKM'),'OKM','DD/MM/YYYY','KMI','DD/MM/YYYY','OIA','MM/DD/YYYY') p_datefmt
    from dual)
    d_list as
    select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
    from
    ifsinfo.cust_ord_salescodes,
    p_list
    where
    site LIKE p_company || '%'
    and
    line_date_entered >=TO_DATE (p_startdate,p_datefmt)
    AND
    line_date_entered <ADD_MONTHS (TO_DATE (p_startdate,p_datefmt),p_months)+(1-1/(60*60*24))
    AND
    sub_division = p_subdiv
    AND
    line_item_no <= 0
    AND
    line_status != 'Cancelled'
    group by
    territory, customer_name, order_no, catalog_desc
    select d_list.territory, d_list.customer_name, d_list.order_no, d, decode(lag(d_list.order_no) over (order by d_list.territory, d_list.customer_name, d_list.order_no),d_list.order_no,0,s_list.sv) as sum_value, d_list.v  from
    (select d_list.order_no, sum(V) sv from d_list, p_list having sum(V) > max(p_minval) group by d_list.order_no) s_list,
    d_list
    where
    s_list.order_no=d_list.order_no
    order by
    d_list.territory, d_list.customer_name, d_list.order_no,d
    /the mystery is why it works for a view over a table (created by SQL A) but not a view (which is SQL A).
    The actual VIEW is:
    SELECT
         SUBSTR(co.contract,1,3)                         company,
         co.contract                               site,
         co.order_no                              order_no, 
         co.order_id                              order_type_code,
         co.currency_code                         currency_code,
         ROUND(1/col.currency_rate,x_curr_rounding_dp)          currency_rate,
         co.customer_po_no                         customer_po_no,
         co.date_entered                              head_date_entered,
         co.authorize_code                         coordinator,
         NVL(co.market_code,coc.market_code)               customer_market_code,
         NVL(co.district_code,x_def_district_code)          customer_district_code,
         co.customer_no                              customer_no,
         ifsapp.cust_ord_customer_api.get_name(co.customer_no)     customer_name,
         co.state                              head_status,
         decode(co.state,'Cancelled','N','Invoiced/Closed','N','Y')
    head_open_status,
         ROUND     (
              ifsapp.customer_order_api.get_total_base_price(co.order_no)
              ,x_rounding_dp)                         total_order_value,
    -------     co.salesman_code                         head_salesman_code,
         col.line_no                              line_no,
         col.rel_no                              rel_no,
         col.line_item_no                         line_item_no,
         NVL(col.part_no,x_def_inv_part)                    inventory_part_no,
         col.catalog_no                              sales_part_no,
         col.catalog_desc                         catalog_desc,
         col.date_entered                         line_date_entered,
         col.catalog_type                         sales_part_type,
         col.planned_ship_date                         line_planned_ship_date,
         col.planned_delivery_date                         line_planned_delivery_date,
         col.promised_delivery_date                         line_promised_delivery_date,
         col.real_ship_date,
    -------     col.ref_id                              line_salesman_code,
         col.state                              line_status,
         decode(col.state,'Cancelled','N','Invoiced/Closed','N','Y')
    line_open_status,
         nvl(col.ref_id,co.salesman_code)               salesman_code,
         nvl(col.C_Salesman_Region_Code,sps.region_code)          region_code,
         nvl(col.C_Salesman_Division,sps.division)          division,
         nvl(col.C_Salesman_Sub_Division,sps.sub_division)     sub_division,
         nvl(col.C_Salesman_Territory,sps.territory)          territory,
         NVL2     (
              ifsapp.customer_group_api.get_description(co.priority),co.priority,coc.cust_grp
              )                              customer_group_code,
         NVL(col.discount,0)                          discount_percentage,
         NVL(col.order_discount,0)                     order_discount_percentage,
         (1-NVL(col.discount,0)/100) *
         (1-NVL(col.order_discount,0)/100)               discount_factor,
         1-(1-NVL(col.discount,0)/100) *
         (1-NVL(col.order_discount,0)/100)               less_discount_factor,
         ROUND     (
              (DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
              ,x_rounding_dp)                         line_discount_amount,
         ROUND     (
              greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
              ,x_rounding_dp)                         rem_line_discount_amount,
         col.buy_qty_due                              buy_qty_due,
         col.qty_invoiced                         qty_invoiced,
         greatest(
              col.buy_qty_due-col.qty_invoiced,0
              )                              qty_remaining,
    qty_shipped,
         greatest(
              col.buy_qty_due-col.qty_shipped,0
              )                              qty_not_shipped,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)
              ,x_rounding_dp)                         unit_line_price,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)-
              ROUND     (
                   (DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
                   ,x_rounding_dp)     
              ,x_rounding_dp)                         unit_line_price_less_disc,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)
              ,x_rounding_dp)                         total_line_price,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)-
              ROUND     (
                   (DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
                   ,x_rounding_dp)     
              ,x_rounding_dp)                         total_line_price_less_disc,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)
              ,x_rounding_dp)                         rem_total_line_price,
         ROUND     (
              DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)-
              ROUND     (
                   greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
                   ,x_rounding_dp)
              ,x_rounding_dp)                         rem_total_line_price_less_disc,
         NVL(co.commission_percentage,0)                    commission_percent,
         1-NVL(co.commission_percentage,0)/100               commission_factor,
         NVL(co.commission_percentage,0)/100               less_commission_factor,
    col.cost
    FROM
         ifsapp.customer_order_line                    col,
         ifsapp.customer_order                         co,
         ifsapp.sales_part_salesman                    sps,
         ifsapp.cust_ord_customer                    coc,
         (select
              2                               x_rounding_dp,
              6                               x_curr_rounding_dp,
              '9999999'                         x_def_inv_part,
              'Domestic'                         x_def_district_code
          from
          dual)                                   constants
    WHERE
         col.order_no=co.order_no
    AND
         co.customer_no = coc.customer_no
    AND
         (NVL(col.ref_id,co.salesman_code) = sps.salesman_code or sps.salesman_code is null)
    ------AND
    ------     co.state != 'Cancelled'
    ------AND
    ------     col.state !='Cancelled'
    ------AND
    ------     col.line_item_no <=0I suspect it is the level of complexity that Oracle cannot handle. I have seen notes about Oracle errors with views generating that ORA 03001, maybe I should log it with Oracle...

  • Charge for texts when using iMessage

    Why am I charged for texts that include photos or video when using iMessage to send or receive with other Apple products? Should the senders use an email address instead of my iPhone number? I have ATT with pay as you go texting. I'm only charged when there's a photo or video attached.

    Hi Garypsu,
    Thanks for using Apple Support Communities.  This article has some steps you can try if iMessages aren't sending correctly:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    If you still can't send or receive iMessages
    Ensure that iMessage is turned on in Settings > Messages.
    To send and receive iMessages, your device must have a valid cellular or Wi-Fi data connection.
    iPhone: Troubleshooting Cellular data
    iOS: Troubleshooting Wi-Fi networks and connections
    iMessage registration validates your Apple ID for use with iMessage. If you are unable to activate iMessage, follow this article.
    If an iMessage cannot be sent, it will be resent using SMS or MMS, depending on the content. You can turn this behavior on or off in Settings > Messages > Send As SMS. Carrier messaging rates may apply.
    Verify that the Apple ID or phone number is listed in Settings > Messages > Send & Receive.
    Step 4 above describes how to turn off having failed iMessages send as texts to prevent this from happening.
    Cheers,
    - Ari

Maybe you are looking for

  • Im trying to download ITunes, but it says the system does not exist.

    Please let me know if anyone else is having this problem.

  • Design mode could not load playerglobal.swc.

    I'm getting this warning Design mode could not load playerglobal.swc. It may be incompatible with this SDK, or invalid. (DesignAssetLoader.CompleteTimeout)   I installed Flash Builder 4 Beta 2 And added the Player Global SWC Create content using the

  • Ipod touch 2g doesn't remember web fields

    hi there, after upgrading my ipod touch 2g to ios 4.0, it doesn't remember my login and passwords on any pages,,,, i have to type them all the time when i come back on the page. it was working just fine before upgrade,,, i tried to disable and enable

  • Excise for STO for Storage location

    I have a requirement whre i want to create Excise invoice for STO between storage location, as i already raised this doubt in SD community, but did not got the satisfaction. As i want to use the same excise NUMBER series which is assingned to excise

  • [SOLVED] No sound from JACK

    I recently set up jack2-dbus, and I haven't been able to get any sound output. Looking at qjackctl's connection's interface sheds some light on the issue. It looks like system is not a writable client. As of now, running any program which uses jack s