Sdo_util.simplify - Error? Bug? Totally stumped !

Hi folks,
I have a confusing problem/error with using sdo_util.simplify. I am using Oracle 11G R2 with Spatial Option.
I have loaded just over 2000 UK postown polygons - based on an OS source. These loaded fine and have been working perfectly well with spatial sql.
The source data specifies the projection as British National Grid GCS_OSGB_1936 and the SRID within the Oracle metadata was correctly (i believe) determined (by calculate mbr) and set to 7405 - OSGB36 / British National Grid
I can view the polygons perfectly fine in SqlDeveloper/GeoRaptor and if export them to KML and view them in Google Earth they position and display exactly as I would expect.
All other spatial functions I have tried on the polygons work fine.
The problem comes when I try and use sdo_util.simplify to reduce the number of co-ordinates used on the polygons :
select sdo_util.simplify(poly_hi,100,0.005)
from posttown_boundaries;
ORA-13199: the given geometry cannot be rectified
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.SDO_UTIL", line 716
ORA-06512: at "MDSYS.SDO_UTIL", line 770
ORA-06512: at line 1
13199. 00000 - "%s"
*Cause:    This is an internal error.
*Action:   Contact Oracle Support Services.
I've tried various threshold and tolerance values ( the only threshold value that works is 0 which returns the same geometry.
I have successfully used the sdo_util.simpify functions on the other spatial objects in the database so I don't believe it to be a database setup issue.
When I run a validate geometry on the table for the geometry column I get the ORA-13029: Invalid SRID in the SDO_GEOMETRY object.
However, as explained above the SRID was selected and checked using calculate MBR and it matches exactly what I would have expected given the source data and i have not found any other issues with the SRID.
The error can be reproduced without any of the source tables by just taking one small polygon definition as follows:
select sdo_util.simplify(
MDSYS.SDO_GEOMETRY(
2003,7405,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
MDSYS.SDO_ORDINATE_ARRAY(407207.997315803,287087.001455892,
406802.999914517,286916.000404434,
406677.996543163,286831.004734191,
406518.001132497,286741.000497636,
406863.996876543,286566.000590838,
407284.000289033,286672.000248752,
407207.997315803,287087.001455892))
,5,0.005)
FROM dual;
ORA-13199: the given geometry cannot be rectified
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.SDO_UTIL", line 716
ORA-06512: at "MDSYS.SDO_UTIL", line 770
ORA-06512: at line 1
13199. 00000 - "%s"
*Cause:    This is an internal error.
*Action:   Contact Oracle Support Services.
Am totally stumped with this!
Can anyone offer any thoughts or guidance?
Many thanks in advance.
Mike.

Hi Mike,
Usually someone jumps in early with the "geometry ain't valid" answer so I am late to the party. When I attempt to validate your 7405 geometry using 11gR2, I receive back error 13029.
SELECT
SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(
   MDSYS.SDO_GEOMETRY(
      2003,
      7405,
      NULL,
      MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
      MDSYS.SDO_ORDINATE_ARRAY(
         407207.997315803,287087.001455892,
         406802.999914517,286916.000404434,
         406677.996543163,286831.004734191,
         406518.001132497,286741.000497636,
         406863.996876543,286566.000590838,
         407284.000289033,286672.000248752,
         407207.997315803,287087.001455892
   0.005
FROM
dualThe error indicates that SRID 7405 "is invalid" which is not really all that informative. As you note above 7405 exists in MDSYS but its marked as a COMPOUND CRS which to keep it simple is a 3D CRS.
(see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_cs_concepts.htm#autoId18)
Thus "invalid" in this context means the SRID is invalid for the geometry you are putting it upon.
So if we just add a Z to your geometry everything works hunky-dory
SELECT
SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(
   MDSYS.SDO_GEOMETRY(
      3003,
      7405,
      NULL,
      MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
      MDSYS.SDO_ORDINATE_ARRAY(
         407207.997315803,287087.001455892,0,
         406802.999914517,286916.000404434,0,
         406677.996543163,286831.004734191,0,
         406518.001132497,286741.000497636,0,
         406863.996876543,286566.000590838,0,
         407284.000289033,286672.000248752,0,
         407207.997315803,287087.001455892,0
   0.005
FROM
dualAnd your SIMPLIFY task also then works fine
SELECT
SDO_UTIL.SIMPLIFY(
   MDSYS.SDO_GEOMETRY(
      3003,
      7405,
      NULL,
      MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
      MDSYS.SDO_ORDINATE_ARRAY(
         407207.997315803,287087.001455892,0,
         406802.999914517,286916.000404434,0,
         406677.996543163,286831.004734191,0,
         406518.001132497,286741.000497636,0,
         406863.996876543,286566.000590838,0,
         407284.000289033,286672.000248752,0,
         407207.997315803,287087.001455892,0
   5,
   0.005
FROM
dualSo long-winded way to reiterate what Ivan said - you are using the wrong SRID. 10g was more forgiving than 11g when mixing and matching 3D and 2D SRIDs with data. 11g is more picky but not always that great at explaining the pickiness. I would bet if you had got back an error such as "2D coordinates not valid with 3D SRID" you would never have needed to post the question. I would suggest putting in an enhancement request to Support for some better error messages.
Cheers,
Paul
Edited by: Paul Dziemiela on Nov 6, 2011 10:58 AM

Similar Messages

  • SDO_UTIL.SIMPLIFY seems to be rather unhappy with my polygon

    Hi folks,
    Not sure if this is a bug or just how things are. I have a polygon that is valid, looking like an upside Q - i.e. a ring-like polygon with a big hole in the middle. On 10.2.0.4, when I run SDO_UTIL.SIMPLIFY with a 20 meter threshold, it returns NULL. A threshold of 80 returns a line whilst a threshold of 10 returns a reasonable result. But NULL? I don't see anything in the documentation about this.
    Next I tried the exact same thing on 11.1.0.7 and rather than NULL, I get ORA-13199 instead. This seems like an improvement. So I assume what produces NULL on 10g throws an error on 11g. I guess we call that progress and move on - any plans to backport this behavior to 10g?
    But back to the results. Looking through
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_util.htm#sthref2702
    I don't see any mention that a legal function result can be ORA-13199. So is this a bug? Or are some threshold values "just not gonna" work and always return an error by design?
    Thanks!
    Paul
    SELECT
    SDO_UTIL.SIMPLIFY(
    SDO_GEOMETRY(
    2003,
    8265,
    NULL,
    SDO_ELEM_INFO_ARRAY(
    1,
    1003,
    1,
    63,
    2003,
    1
    SDO_ORDINATE_ARRAY(
    -80.6678363850029,
    27.1544468240932,
    -80.6676581190441,
    27.1544578908543,
    -80.6673811848868,
    27.1545404243406,
    -80.6669873181666,
    27.1546888239902,
    -80.6669011856599,
    27.154727424447,
    -80.6667227848805,
    27.1548484903997,
    -80.6666243193133,
    27.1549804918455,
    -80.6665567184542,
    27.1551016239273,
    -80.6665443185942,
    27.1552556914498,
    -80.6666181177095,
    27.1555144243224,
    -80.6667779183997,
    27.1559106917256,
    -80.6668025185416,
    27.1560536914105,
    -80.6668271189153,
    27.1560868245381,
    -80.6668579182135,
    27.1560866907775,
    -80.6669009855045,
    27.1560592917636,
    -80.6669071190522,
    27.1559382250141,
    -80.6669871190558,
    27.1559106906018,
    -80.6673439852962,
    27.1559052909276,
    -80.6673931847717,
    27.1558888246279,
    -80.6674363186955,
    27.1558722246153,
    -80.6675469848459,
    27.1557622244607,
    -80.6678731857396,
    27.155575091261,
    -80.6679839844916,
    27.1554870246634,
    -80.6680947191472,
    27.1553660239724,
    -80.668279384442,
    27.1550798248074,
    -80.66834698489,
    27.1549642916886,
    -80.6683593847143,
    27.1548432242984,
    -80.6683101849162,
    27.1547276237897,
    -80.6681687190595,
    27.1545734909874,
    -80.6679841179111,
    27.1544468907341,
    -80.6678363850029,
    27.1544468240932,
    -80.6670609857901,
    27.1558170906695,
    -80.6669317858199,
    27.1558172245472,
    -80.6668271853341,
    27.1557840250493,
    -80.6666919857747,
    27.1552446911476,
    -80.6667105183963,
    27.155134623902,
    -80.6668213180802,
    27.1549420246816,
    -80.6670549849476,
    27.154793491146,
    -80.6674795852521,
    27.1546338906477,
    -80.6678303186443,
    27.154556890968,
    -80.6679287847641,
    27.1545568916289,
    -80.6681071851569,
    27.1546450245379,
    -80.6681933180075,
    27.1547606247241,
    -80.6682117191289,
    27.1548872243023,
    -80.6681931847942,
    27.1549532242227,
    -80.6681809185176,
    27.1549918246254,
    -80.6678917187281,
    27.1553990242445,
    -80.6677069852055,
    27.155542091489,
    -80.667479384833,
    27.1556740913815,
    -80.667270184745,
    27.1558170915238,
    -80.6670609857901,
    27.1558170906695
    ),20,0.001) from dual

    Hi folks,
    Not sure if this is a bug or just how things are. I have a polygon that is valid, looking like an upside Q - i.e. a ring-like polygon with a big hole in the middle. On 10.2.0.4, when I run SDO_UTIL.SIMPLIFY with a 20 meter threshold, it returns NULL. A threshold of 80 returns a line whilst a threshold of 10 returns a reasonable result. But NULL? I don't see anything in the documentation about this.
    Next I tried the exact same thing on 11.1.0.7 and rather than NULL, I get ORA-13199 instead. This seems like an improvement. So I assume what produces NULL on 10g throws an error on 11g. I guess we call that progress and move on - any plans to backport this behavior to 10g?
    But back to the results. Looking through
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_util.htm#sthref2702
    I don't see any mention that a legal function result can be ORA-13199. So is this a bug? Or are some threshold values "just not gonna" work and always return an error by design?
    Thanks!
    Paul
    SELECT
    SDO_UTIL.SIMPLIFY(
    SDO_GEOMETRY(
    2003,
    8265,
    NULL,
    SDO_ELEM_INFO_ARRAY(
    1,
    1003,
    1,
    63,
    2003,
    1
    SDO_ORDINATE_ARRAY(
    -80.6678363850029,
    27.1544468240932,
    -80.6676581190441,
    27.1544578908543,
    -80.6673811848868,
    27.1545404243406,
    -80.6669873181666,
    27.1546888239902,
    -80.6669011856599,
    27.154727424447,
    -80.6667227848805,
    27.1548484903997,
    -80.6666243193133,
    27.1549804918455,
    -80.6665567184542,
    27.1551016239273,
    -80.6665443185942,
    27.1552556914498,
    -80.6666181177095,
    27.1555144243224,
    -80.6667779183997,
    27.1559106917256,
    -80.6668025185416,
    27.1560536914105,
    -80.6668271189153,
    27.1560868245381,
    -80.6668579182135,
    27.1560866907775,
    -80.6669009855045,
    27.1560592917636,
    -80.6669071190522,
    27.1559382250141,
    -80.6669871190558,
    27.1559106906018,
    -80.6673439852962,
    27.1559052909276,
    -80.6673931847717,
    27.1558888246279,
    -80.6674363186955,
    27.1558722246153,
    -80.6675469848459,
    27.1557622244607,
    -80.6678731857396,
    27.155575091261,
    -80.6679839844916,
    27.1554870246634,
    -80.6680947191472,
    27.1553660239724,
    -80.668279384442,
    27.1550798248074,
    -80.66834698489,
    27.1549642916886,
    -80.6683593847143,
    27.1548432242984,
    -80.6683101849162,
    27.1547276237897,
    -80.6681687190595,
    27.1545734909874,
    -80.6679841179111,
    27.1544468907341,
    -80.6678363850029,
    27.1544468240932,
    -80.6670609857901,
    27.1558170906695,
    -80.6669317858199,
    27.1558172245472,
    -80.6668271853341,
    27.1557840250493,
    -80.6666919857747,
    27.1552446911476,
    -80.6667105183963,
    27.155134623902,
    -80.6668213180802,
    27.1549420246816,
    -80.6670549849476,
    27.154793491146,
    -80.6674795852521,
    27.1546338906477,
    -80.6678303186443,
    27.154556890968,
    -80.6679287847641,
    27.1545568916289,
    -80.6681071851569,
    27.1546450245379,
    -80.6681933180075,
    27.1547606247241,
    -80.6682117191289,
    27.1548872243023,
    -80.6681931847942,
    27.1549532242227,
    -80.6681809185176,
    27.1549918246254,
    -80.6678917187281,
    27.1553990242445,
    -80.6677069852055,
    27.155542091489,
    -80.667479384833,
    27.1556740913815,
    -80.667270184745,
    27.1558170915238,
    -80.6670609857901,
    27.1558170906695
    ),20,0.001) from dual

  • SDO_UTIL.SIMPLIFY - 101 Uses (almost)

    SDO_UTIL.SIMPLIFY
    “Simplifies the input geometry, based on a threshold value, using the Douglas-Peucker algorithm.”
    This is an understated description if there is one. This function can do much more for you than just simplify the geometry, it will also convert arcs to line stings, eliminate duplicate verticies, and correct many overlapping edge polygon problems.
    I “discovered” this additional functionality while trying to get a process down to import reference ESRI shapefile data (GeoBase CIP's) stored in state-plane format into OS (Oracle Spatial) using Lat/Long. Most of the problems I encountered were due to overlapping polygon edges, duplicate verticies, and arcs in line strings. At first, I discreetly defused these issues by finding the errors (with code) and then fixing them based on the returned error codes. This was painfully slow and a real pain to code.
    Then I took a look at the incoming data, and determined that many times, the drafters (possibly from a CAD to GIS conversion) really went overboard and included many times more points than necessary for the accuracy I was interested in for the reference data. I looked at several of the simplify options and since I wanted to simplify the data in-place using an update statement, I choose this one. Then once, I ran the simplify command out of order by accident (before the arc/duplicate/overlap routine). Not only did it simply the data, it also “fixed” all the other problems as well!
    So – note to Oracle staff – great job! You might want to update the documentation to mention all the things it does while simplifying the data, as this is VERY useful for migrating troublesome data. However, I noticed that it can overtake all the memory (and take forever to run) on your database box if you make the mistake of specifying the same values for threshold and tolerance. The docs do state that the tolerance “Must not be greater than threshold.”, but I'd add that they also should not be the same.
    As always, YMMV...
    Bryan

    tdsacilowski wrote:
    All together there are about 20 machines that display a page that has one of the above 5 second refreshes. The application is also public; there is no authentication. From my understanding about how APEX handles sessions there is a max session length (8 hours in my case) even for public sessions. As a page is rendered, a hidden form variable is created called p_instance and the AJAX calls send this to the server to process the request within the active session. In theory, the application shouldn't be generating a lot of new sessions since once a page is loaded it is used simple to display an updating value. In other words, there's no user interaction. No page reloads, no new items being set in session state.
    no interaction, 24/7 uptime, refreshing every 5s, and it is all public.....
    I'd almost look at a slightly different architecture.
    option one:
    have a basic, static web page that calls an APEX REST service.
    This html file and any neccessary css, js files will reside on the same webserver as the APEX listener, but in a different WAR file.
    option two:
    make a simple java swing app using JDBC to connect directly to the database.
    use Oracle Wallet technology so you don't have to hardcode the name/password in plain text.
    have the DBA create an account with very limited access and a profile to guarantee it will never suck-up DB resources.
    *** IIRC -- the OCI version includes the capability of triggering an event (in Java) when a table gets update. ****
    APEX is a very good tool.
    But, for your case, it sounds like it is overkill for your requirements.
    MK

  • Labview Application missing SubVI's, totally stumped

    Hello. I am working on a VI that is a simple thermocouple datalogger. I have created it in Labview 2013 (latest patch) on a Windows 7 Machine. It works correctly on the development machine with Labview installed. It uses custom drivers for an Advantech USB 4718 data acqusition module. These drivers were downloaded directly from the manufacturer. 
    When I build an application and copy it over to a different machine (running windows 8) I get a laundry list of missing SubVIs when I try to run it (see image). This is despite installing all relevant data aquisition drivers (I have verified that the module works with the manufacturers own daq software) the latest version of Labview 2013 run time engine, DAQmx, etc.... I can't think of anything else that should be installed but Im totally stumped. 
    Anything else I can try? Is it because the Dev machine is windows 7 but the application machine is windows 8? I'm new to building applications from labview, so I'm not sure what I may be missing. Thank you.
    Error Message(s)

    It seems that most of these VIs are used by the DAQNaviAssistant from Advantech.
    You should ask Advantech if there are known issues when building executables in LV which contain these ExpressVIs.
    Also, you can re-build your EXE without optimizing the EXE content by de-selecting all checkmarks on the "Additional Exclusions" tab. It is possible that one of these options remove these subVIs.
    What bothers me is that it runs on the development machine... which indicates that the EXE itself should really contain everything what it needs (except driver functions, namely DLLs of course).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Microsoft Project 2010 Error/Bug Using Filters and AutoFilters

    Dear Community Members/Team,
    I came across an error/bug while using Filter and AutoFilter options in Microsoft Project 2010. The details are as under:
    I have an MS Project 2010 file which has total 3049 activities (IDs).
    The linking process (predecessors and successors) is almost complete.
    In MS Project 2010 software console, in the bottom left most corner, I have right clicked and enabled the options of "Filter" and "AutoFilter".
    In the "View" tab located at top console, I have selected "[No Filter] against the "Filter" icon. Also, from the drop down arrow against the "Filter"
    icon, I have enabled "Display AutoFilter". As a result I can see drop down arrows in front of all columns displayed in the file.
    I have displayed columns "Duration", "Start", "Finish", "Total Slack", etc.
    I used the drop down arrow appearing in front of "Total Slack" column, and I can see some options. At the bottom I can see all the "Total Slack" values with
    scroll option available and all the boxes here are checked. I remove the check box in "Select All" field and manually select any random value such as "-11.17 wks".
    To my surprise, some values when selected, they are displayed correctly with the relevant activities shown. However some of the values which I select are not appearing and the relevant
    activities are not shown and only empty rows are shown. So I use "Clear Filter" and try some other option.
    Now, to find those activities, I have to click on the drop down arrow in front of "Total Slack" column, Go to "Filters", and select the last option "Custom".
    Now I select show rows where Total Slack "equals" and I select any value from drop down arrow appearing in front of "equals", I can see all those values of "Total Slack" and I randomly select the same value for e.g. "-11.17
    wks". This time the relevant activity is displayed correctly which was not shown by using the above method of selecting a certain value by selecting a check box from drop down arrow appearing against any column.
    I hope to have a response from the community.
    Regards,
    Usman

    Hi Usman,
    Strangely we are having the exact same discussion with another member here:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/0ae3530f-6760-4ef9-afd9-6028258a490e/autofilter-feature-malfunctioning?forum=projectprofessional2010general
    Please go through this thread and tell us if it brings some light. Particularly try with a brand new file to reproduce the error. It could see the error on Ahmad's file, but couldn't reproduce it on a brand new file.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • After IOS8 upgrade IPhone5s syncs with exchange but IPad2 syncs ONLY Mail and Contacts, NOT Calendar.  Totally stumped. Ideas anyone?

    After IOS8 upgrade IPhone5s syncs with exchange but IPad2 syncs ONLY Mail and Contacts, NOT Calendar.
    Also, my other tablet - Samsung TabS - has same issue - calendar wont sync. My IPhone and my desktop (windows) synch just fine.
    Google calendar syncs on all devices. Totally stumped. Ideas anyone?
    THANKS

    1.      Log onto Outlook Web Access
    2.      Top right hand part of the screen select "Options"
    3.     Select "See All Options"
    4.      Select "Phone" menu
    Check if you have 10 Devices registered.
    If you have, you need to delete one of them to add your new Smart Phone to Exchange for synching
    Check the "Last Sync Time" to indicate if this device is still active or not.

  • ORA13226 when using view with geometry created using sdo_util.simplify

    I have a polygon table (and spatial index) using Ora11.1 that i can query such as:
    Select ID From MyTable A where (MDSYS.SDO_RELATE(A.GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    This query returns 2 rows. I have created a view:
    create or replace view v_MyTable as
    select id, sdo_util.simplify(geometry,20,2) as s_geometry
    from MyTable;
    The subsequent query returns ORA13226
    Select ID From v_MyTable A where (MDSYS.SDO_RELATE(A.S_GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    If I create a view which does not use the simplify function the query works.

    tcbalent,
    This is correct behaviour if you are trying the query the view:
    Select ID
      From V_MyTable A
    where (MDSYS.SDO_RELATE(A.GEOMETRY, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARRAY(73.091805, 18.312310, 72.250051, 19.076872)), 'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');This is because the A.GEOMETRY is not the geometry in the original table (MyTable) but a programmatically
    constructed geometry on the fly which is not indexed.
    You can fix this with a function based index as follows (NOTE: This uses my own test data that is projected and not geodetic):
    DROP  table myTable;
    create table myTable
    as
    select rownum as Id, geom as geometry
    from  projpoly2d
    where polytype NOT IN ('COMPOUNDOUTERSHELL','VERTEXWITHARCNOHOLE');
    delete from user_sdo_geom_metadata where table_name = 'MYTABLE' and column_name = 'GEOMETRY'; commit;
    insert into user_sdo_geom_metadata(table_name, column_name,diminfo,srid)
    select 'MYTABLE','GEOMETRY',diminfo,srid
      from user_sdo_geom_metadata
    where table_name = 'PROJPOLY2D'
       and column_name = 'GEOM';
    commit;
    create or replace view v_MyTable
    as
    select id, sdo_util.simplify(geometry,20,2) as S_geometry
    from MyTable;
    -- Create index metadata
    delete from user_sdo_geom_metadata where table_name = 'MYTABLE' and column_name = 'MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2)'; commit;
    insert into user_sdo_geom_metadata(table_name, column_name,diminfo,srid)
    select 'MYTABLE','MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2)',diminfo,srid
      from user_sdo_geom_metadata
    where table_name = 'MYTABLE' and column_name = 'GEOMETRY';
    commit;
    select * from user_sdo_geom_metadata;
    -- Now create index
    drop   index MyTable_sgeometry_spdx;
    create index MyTable_sgeometry_spdx on MyTable(MDSYS.SDO_UTIL.SIMPLIFY(GEOMETRY,20,2))
         indextype is mdsys.spatial_index parameters('sdo_indx_dims=2, layer_gtype=polygon');
    Select ID
      From v_MyTable A
    where (MDSYS.SDO_RELATE(A.S_GEOMETRY,
                             MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(190000.0, 5120000.0, 640000.0, 5630000.0)),
                            'mask=INSIDE+COVEREDBY+EQUAL querytype=window') = 'TRUE');
    -- Result
    ID                    
    5                     
    1                     
    4                     
    2                     
    6If this fixes your problem please mark this thread as answered.
    regards
    Simon

  • When burning a bluray I get this error message: Total bitrate is too high near time = 4.760000

    When burning a bluray I get this error message: Total bitrate is too high near time = 4.760000
    The video is encoded with sonic cinevison as avchd file and one AC3 file.

    What can I do to avoid it?
    Well, about the only thing you can do to solve "bitrate too high" errors is to lower the bitrate.

  • Upon transferring to the cloud, all my previous mail says the same date, except for today and yesterday.  The rest says it came in on the same date I had to replace the hard drive 3 years ago.  Totally stumped.  It didn't do this on my mac...

    Upon transferring to the cloud, all my previous mail says it entered my box on the same date, except for today and yesterday.  Everything else says it came in on the same date on which I had to replace the hard drive 3 years ago.  Totally stumped.  It didn't do this on my mac...only when I moved.  I have bad feelings about being to fix this...Any suggestions?

    Get the new keyboard at eBay and replace by yourself may be cheaper way, though you're required higher skill and well know about MacBook Air.
    http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0 .Xmacbook+air+2011+keyboard&_nkw=macbook+air+2011+keyboard&_sacat=0
    https://www.youtube.com/watch?v=gLbasVD69xo

  • Sales quotation without unit price & total shows a error invalid total INR

    Dear All,
    According to my clients requirement,iam creating a sales quotation without unit price and total .
    Now when iam copying it to a sales order,it is showing me a error "Invalid Total INR".
    I could not understand why and how it is happening.
    Can anyone help me out.
    Regards,
    Meghana

    sir,
    i tried removing FMS still it is coming.........
    The surprise thg is in certain sales quotation without unit price and total there is no such error and it is converted into order, but the issues is wiyth certain old sales quotations.
    Regards,
    Meghana
    Edited by: MEGHSHILPK on Nov 8, 2010 12:11 PM

  • Export simplified image bug report

    The attached XY Graph has two plots represented in semilog scale (linear X scale, logarithmic Y scale).
    The two axes are set to not autoscale and I chose Y to start a 1. There are values of Y equal to zero in the plots.
    When right-clicking the graph and selecting Export>>Export Simplified Image... and then selecting the following options:
    pasting the image into another software (e.g. Power Point) results in this:
    Notice that the zero bins are now set to infinity...
    No such problem occur when setting the Y scale to linear or exporting the image as BMP.
    But of course none of these are satisfactory solutions to this bug, which seems related to what is described in this recent thread:
    http://forums.ni.com/t5/forums/replypage/board-id/170/message-id/877895
    Tested in LV 2013 SP1
    Attachments:
    Export Simplified Image Bug Example.vi ‏9 KB

    You got 0 in the data.
    Log 0 => inf.
    a work around:
    replace 0 with NaN.
    Then you get:
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • X200 HD refuses to be partitioned -- am totally stumped!

    I just purchased an X200 whose HD I'm trying to partition, in order to separate OS and software from my data. I've successfully done this several times over the years on other IBM/Lenovo laptops (a T40, a T43, a T60 and a T61) using version 8.01 of PowerQuest Partition Magic. The T61, which was the most recent experience, was not as straightforward as the previous ones, but what I'm encountering with this X200 has me completely stumped. 
    I'm running Windows XP Professional (factory downgrade), which I've updated to SP3. All critical updates, Microsoft and Lenovo, have been installed.
     Here’s what looks normal: 
    1. Windows thinks my hard drive is fine. I performed a CHKDSK on Drive C and it encountered no errors whatsoever. According to disk properties, Drive C has 143 GB total capacity, 16.3 GB of which is used, and is an NTFS disk.
    2. Lenovo's ThinkVantage Create Recovery Media had no problem reading the drive and creating a bootable CD and backup DVDs. 
    3. Likewise, Acronis True Image Home 9.0 successfully backed up both Drive C (Pri, Acct, 143.4 GB capacity, NTFS) as well as SERVICEV001 (Pri, 5.679 GB capacity), FAT 32 Partition: 0x12 (Compaq Setup).  
    Here's what is NOT normal:  I'm unable to partition the drive with a) PowerQuest's Partition Magic 8, with b) GParted 3.9-13, with c) Easeus Partition Manager 3, or with d) Paragon Partition Manager 9 (demo version). Below are the error messages received. 
    a) Partition Info (a tool within Partition Magic) informs me that “Disk Geometry errors were found”:
    Error #105: Partition didn't begin on head boundary.  ucBeginHead expected to be 0 or 1, not 32.
    Error #106: Partition didn't begin on head boundary.  ucBeginSector expected to be 1, not 33.
    Error #109: Partition ends after end of disk.  ucEndCylinder (20673) must be less than 20673. 
    Partition Magic itself doesn't even initialize: “Error 117, Partition's Drive Letter cannot be identified.” 
    b) GParted saw ONE large unallocated and unformatted space, but refused to let me to do anything with it other than have the program reconfigure the MBR and thus delete every file on my drive. On other forum threads GParted was highly recommended because it can partition a Lenovo drive and leave the Service Partition intact, but on my HD it can't even see the Service Partition. 
    c) Easeus Partition Manager simply saw one Primary Local Disk which it labeled "BAD DISK." Its size is 149.05 GB, ALL of which is used. Status = "none" (I have no idea what that means.) 
    d) Paragon's PM refused to create a new partition because "Basic Hard Disk 0 already contains four primary partitions. Basic hard disks can contain only four primary partitions, including extended one." Other screens gave much detail about what it thought were 3 primary partitions, all of which have "Invalid" file systems and "No label." One of the start sectors was 33, the other 46. 
    So my question is, what do you suggest I do now, other than drink a lot of eggnog while I hope that Santa brings me a new HD I can partition?  ;-)
     I’m not an expert on computers, so please forgive me in advance for asking stupid questions. Here’s the first one: did ThinkVantage’s “create recovery media” backup the Windows XP files that came from the factory, or the ones I painstakingly updated after several hours of Windows Updates? (I did run it AFTER doing the updates!)
    Many thanks in advance, and happy holidays to those who are celebrating at this time.
    Lena
    Solved!
    Go to Solution.

    Bottom line for whoever else has the same problem in the future:
    Booted with a GParted CD, allowed it to rebuild the partition table, and to build the partitions I wanted. (The latter was a waste of time, because when I restored Windows using Rescue & Recovery, the partitions GParted had built were gone.) If all GParted sees is unallocated space, program it to create only a C partition and rebuild the partition table.
    I very strongly suggest redundant backups prior to this procedure. I backed up using R&R to *both* CD/DVD and USB HD. I ordered the boot sequence (press F12) as USB HD followed by USB CD. I'd tested the CD but not the HD. And yikes, the USB HD refused to boot. Fortunately I had the CD, which enabled me to boot, and the HD, which enabled me to restore the files more quickly than the DVDs would.
    Windows was restored to the way I had configured it (with other programs I'd installed, including Partition Magic). The Service Partition was there, hidden as it should be, accessible from the Blue ThinkVantage Button, but smaller than it used to be. I immediately created a new R&R backup on the local HD.
    Then I used PowerQuest's Partition Magic 8.01 to create the partitions I wanted. PM worked like it should. My guess is that any partitioning program would.
    Finito. Thanks, Soap, for confirming my impression that this would require a disk wipe. 

  • Error / BUG in BPM SAP PI7.1 "Expression must not return a multiline value"

    Hey experts,
    I try to use a MULTILINE interface in an integration process, but when I try to select the multiline interface in the sending Step (asynch), then I can´t select a INDEX variable? ...
    See here: Picture of ERROR
    I tried my steps with a XI3.0 in exactly the same way and it works. Is this a bug in the PI? We have Service Package 04 (initial Shipment).
    Does anyone has an idea?
    Thanks a lot for fast help
    Rgds,
    Steffen

    Hi,
    I tested it on a PI 7.1 SP 8 and there it works.
    What you could try is to export your Integration Process from XI 3.0 (you said it's working) and import it in your PI 7.1.
    Regards
    Patrick

  • Abap import error completed 162 error 1 total 164

    hi experts
    i am installing ecc6.0 ehp 7 ides system sybase database,linux 6.4 operating system.
    got error when installing the ides ehp7 system in baap import phase.
    total 164 completed 162 errors 1 running 1
    import_monitor.log
    (RTF) ########## WARNING ###########
            Without ORDER BY PRIMARY KEY the exported data may be unusable for some databases
    (SQL) INFO: Searching for SQL file SQLFiles.LST
    (SQL) INFO: SQLFiles.LST not found
    (SQL) INFO: Searching for SQL file /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST
    (SQL) INFO: found /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST
    (SQL) INFO: Trying to open /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST
    (SQL) INFO: /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST opened
    (SQL) INFO: Searching for SQL file APPL0.SQL
    (SQL) INFO: APPL0.SQL not found
    (SQL) INFO: Searching for SQL file /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SYB/APPL0.SQL
    (SQL) INFO: /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SYB/APPL0.SQL not found
    (DB) INFO: SKAT~001 dropped
    (DB) ERROR: DDL statement failed
    (CREATE  INDEX "SKAT~001" ON "SKAT" ( "MANDT" , "SPRAS" , "MCOD1"  ) with consumers = 3 )
    DbSlExecute: rc = 99
      (SQL error 21)
      error message returned by DbSl:
    [ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.
    [ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.
    [ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.
    (DB) INFO: disconnected from DB
    /usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load: job finished with 1 error(s)
    /usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load: END OF LOG: 20140625134632
    WARNING: 2014-06-25 12:47:26
    Cannot start import of packages with views because not all import packages with tables are loaded successfully.
    WARNING: 2014-06-25 12:47:26
    1 error(s) during processing of packages.
    INFO: 2014-06-25 12:47:26
    Import Monitor is stopped.
    INFO: 2014-06-25 13:46:00
    Import Monitor is started.
    CONFIG: 2014-06-25 13:46:00
    Application options:
    collectLogicalPackages=false
    dbCodepage=4103
    dbType=SYB
    extFiles=no
    importDirs=/home/ides7/EXPORT1/DATA_UNITS/EXPORT1:/home/ides7/EXPORT1/DATA_UNITS/EXPORT2:/home/ides7/EXPORT1/DATA_UNITS/EXPORT3:/home/ides7/EXPORT1/DATA_UNITS/EXPORT4:/home/ides7/EXPORT1/DATA_UNITS/EXPORT5:/home/ides7/EXPORT1/DATA_UNITS/EXPORT6:/home/ides7/EXPORT2/DATA_UNITS/EXPORT7:/home/ides7/EXPORT2/DATA_UNITS/EXPORT8:/home/ides7/EXPORT2/DATA_UNITS/EXPORT9:/home/ides7/EXPORT2/DATA_UNITS/EXPORT10:/home/ides7/EXPORT2/DATA_UNITS/EXPORT11
    installDir=/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP
    jobNum=3
    loadArgs=-c 99000000 -loadprocedure fast
    monitorTimeout=30
    orderBy=
    r3loadExe=/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load
    sapinst=
    trace=all
    tskFiles=yes
    CONFIG: 2014-06-25 13:46:00
    List of packages with table structure: 'SAP0000'.
    CONFIG: 2014-06-25 13:46:00
    List of packages with views: 'SAPVIEW'.
    TRACE: 2014-06-25 13:46:00 com.sap.inst.migmon.imp.ImportStandardTask preCreate
    Parse of '/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP/DDLSYB.TPL' template file is started.
    INFO: 2014-06-25 13:46:00 com.sap.inst.migmon.imp.ImportStandardTask preCreate
    Parse of '/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP/DDLSYB.TPL' template file is successfully completed.
    Primary key creation: after load.
    Index creation: after load.
    INFO: 2014-06-25 13:46:01
    Data codepage 4103 is determined using TOC file '/home/ides7/EXPORT1/DATA_UNITS/EXPORT1/DATA/SAPAPPL1_43.TOC' for package 'SAPAPPL1_43'.
    INFO: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadThreadDispatcher loadPackage_report
    Monitor jobs: running 1, waiting 1, completed 162, failed 0, total 164  Package Group  max threads: 3 current running threads : 0 processing package: SAPAPPL0_17
    TRACE: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPAPPL0_17' import package is started.
    TRACE: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadTask processPackage
    Loading of 'SAPAPPL0_17' starting import package into database:
    /usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load -i SAPAPPL0_17.cmd -dbcodepage 4103 -l SAPAPPL0_17.log -c 99000000 -loadprocedure fast
    INFO: 2014-06-25 13:46:32 com.sap.inst.migmon.LoadTask run_report
    Monitor jobs: running 0, waiting 1, completed 162, failed 1, total 164  error processing of package SAPAPPL0_17
    ERROR: 2014-06-25 13:46:32 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPAPPL0_17' import package is interrupted with R3load error.
    Process '/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load -i SAPAPPL0_17.cmd -dbcodepage 4103 -l SAPAPPL0_17.log -c 99000000 -loadprocedure fast' exited with return code 2.
    For mode details see 'SAPAPPL0_17.log' file.
    Standard error output:
    sapparam: sapargv(argc, argv) has not been called!
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    WARNING: 2014-06-25 13:47:00
    Cannot start import of packages with views because not all import packages with tables are loaded successfully.
    WARNING: 2014-06-25 13:47:00
    1 error(s) during processing of packages.
    INFO: 2014-06-25 13:47:00
    Import Monitor is stopped.
    please suggest asp
    thanks & regards
    sanath

    Hello,
    I have exactly the same issue as you have.
    as I checked in the sybase database, actually the index SKAT~001 already exists.
    if I run sql statement CREATE INDEX [SKAT~001] ON "SKAT" ("MANDT","SPRAS","MCOD1") with consumers = 3, via Toad or any other tools, it says the index already there.
    So i think this error could be ignored, just set ok instead of err in file SAPAPPL0_17.TSK
    I SKAT~001 C ok
    and then retry to continue the installation steps, it works well.
    best regards,
    Fresh

  • Signal Quality issues - totally stumped

    My first post so apologies if I step on anyones toes.
    I've had a browse through and can't find an existing post that covers my scenario.
    For a while now my box has been having issues on certain channels. The exact scenario is that the signal quality drops to below 25% which causes picture blocking / freezing.
    Before anyone says its a MUX issue, I have tried.
    1) New cables
    2) Rebooting
    3) Factory reset
    4) A known good cheapie freeview receiver from Asda shows a static 95% quality on the channels where the BT Vision box has problems. With both the old and the new cables. No signal bouncing - stays solidly at 95% (or thereabouts)
    The specific channels it has issues with are Channel 21 (VIVA),Channel 38 (quest +1). I am on Waltham transmitter and other channels on the MUXes have 85% quality and higher on the BT Vision box. On VIVA and Quest +1 the quality bounces all over the place between less than 25% upto 87%.
    If it was all channels on the MUX then I'd know it was time for aerial reposition, but with it being on only specific channels and a cheapie receiver working perfectly I'm a bit stumped??
    Additionally, since the new firmware, I use a 4:3 TV through SCART and the screen real estate now seems wrong as it chops the bottom off the screen when in the new menu system  - so things telling me what to press are lost - ie: to delete a recording from the recordings section  I can't see any advice at the bottom of the screen as was there on the old firmware, I basically found it was the red button by trial and error. I'm guessing BT think we all have HDMI TV's and maybe the menu works OK on HDMI.
    Its as though the tuner has just decided it doesn't like channels 21 and 38  - maybe its telling me to to watch some better quality programs...   Or more seriously, maybe its cooked and has a specific frequency reception issue? Unlikely but I can't think what else it could be.
    If anyone can advise I'd appreciate some guidance as I've pretty much exhausted my limited knowledge of TV transmitter behaviour.
    Pete

    Hi Pete65,
    It could be possible that if you are in the Northampton/Milton Keys/ Bedford/ etc areas, that particular mux could have some signal interference .
    There was a post earlier which I can't find right now, where the author talks about signal quality vs signal strength.
    It could also be possible that the signal is too strong which could cause a detrimental effect on the quality.

Maybe you are looking for

  • List of GR / IR Balances

    Hi expert, Is there any standard report in business content that exactly matches with R/3 sap report tcode : MB5S. ( List of GR/ IR Balances ) Regards, Bhadri M.

  • Relationship between a Spark DropDownList's dataProvider and selectedItem

    I'm working on an existing project and have come across a somewhat complicated issue regarding a Spark DropDownList's (actually, a custom component inheriting from it) displayed item not changing when its dataProvider is updated. Here's the code for

  • How to set in Windows 8.1 the Account Picture from Active Directory

    Hello All, In my company I have uploaded the photos for each employees in Active Directory using a powershell script that set the attribute thumbnailphoto. This is useful for images in Lync and Outlook, now I want to use these pictures to sync with t

  • Building tree when we know all the nodes and levels

    Hi Experts, What is the best way to implement tree in web dynpro for abap when we know all the nodes, there levels and parents. I have the structure like this: id        text             level     parent 1        root                1         1 1.1 ;

  • MS Office Report Express VI - How to programatically use multiple Path to Template

    Good Afternoon, I'm testing MS Office Report Express VI and i need to know if it's possible (and how) to programaticaly change "Path to Template" field? I need that in order to change it through front panel. Best Regards.