Can't Query Saptial Data   again

Hi, I've smoothly created a R-Tree spatial index on a Index Organized Table(IOT) named ch100_polygon_iot( about 120 thousand rows ) containing only polygon geometries. But when I run the spatial query statements, I get the following error messages:
declare
i int;
j int;
RecNum int;
GIDNUM number;
NUM INT;
dis number(10,0);
time1 date;
time2 date;
DisStr varchar2(30);
GEOID VARCHAR2(40);
GEO mdsys.sdo_geometry;
begin
dis:=power(10,i);
DisStr:='distance = '|| to_char(dis);
time1:=sysdate;
NUM:=0;
for j in 0..10 loop
GIDNUM:=(j*12200);
SELECT GEOMETRY INTO GEO FROM scott.CH100_POLYGON_iot WHERE oID=GIDNUM;
SELECT count(*) INTO RecNum FROM scott.CH100_POLYGON_realiot A
WHERE SDO_RELATE(A.Geometry,GEO,'mask=ANYINTERACT querytype=WINDOW') = 'TRUE';
NUM:=NUM+RecNum;
end loop;
time2:=sysdate;
commit;
end;
ERROR at line 1:
ORA-01410: invalid Rowid
ORA-06512: at line 22
Can anyone please tell me what's wrong .

Sorry - Oracle knew that. I had no idea.
Section 2.4.1 in the doc -
2.4.1 TABLE_NAME
The TABLE_NAME column contains the name of a feature table, such as COLA_MARKETS, that has a column of type SDO_GEOMETRY.
The table name is stored in the spatial metadata views in all uppercase characters.
The table name cannot contain spaces or mixed-case letters in a quoted string when inserted into the USER_SDO_GEOM_METADATA view, and it cannot be
in a quoted string when used in a query (unless it is in all uppercase characters).
The spatial feature table cannot be an index-organized table if you plan to create a spatial index on the spatial column.

Similar Messages

  • Can't Query Saptial Data

    Hi, I've smoothly created a R-Tree spatial index on a Index Organized Table(IOT) named ch100_polygon_iot( about 120 thousand rows ) containing only polygon geometries. But when I run the spatial query statements, I get the following error messages:
    declare
    i int;
    j int;
    RecNum int;
    GIDNUM number;
    NUM INT;
    dis number(10,0);
    time1 date;
    time2 date;
    DisStr varchar2(30);
    GEOID VARCHAR2(40);
    GEO mdsys.sdo_geometry;
    begin
    dis:=power(10,i);
    DisStr:='distance = '|| to_char(dis);
    time1:=sysdate;
    NUM:=0;
    for j in 0..10 loop
    GIDNUM:=(j*12200);
    SELECT GEOMETRY INTO GEO FROM scott.CH100_POLYGON_iot WHERE oID=GIDNUM;
    SELECT count(*) INTO RecNum FROM scott.CH100_POLYGON_realiot A
    WHERE SDO_RELATE(A.Geometry,GEO,'mask=ANYINTERACT querytype=WINDOW') = 'TRUE';
    NUM:=NUM+RecNum;
    end loop;
    time2:=sysdate;
    /*insert into zyz.TEST_RESULT_TABLE (TEST_DESC,TIME_ELIPE,TEST_TIME)
    values('查询TRY100_POLYGON_iot表中到CH100_POLYGON_SDO中gid=j*122(j从0到1000)的的polygon的距离为'||
    DisStr||'的所有多边形.共查询到'||to_char(num)||' 个多变形.共消耗时间 ',
    to_char((time2-time1)*24*3600)||' 秒',TO_CHAR(TIME2));--Seconds
    commit;
    end;
    *************Long postings are being truncated to ~1 kB at this time.

    Sorry - Oracle knew that. I had no idea.
    Section 2.4.1 in the doc -
    2.4.1 TABLE_NAME
    The TABLE_NAME column contains the name of a feature table, such as COLA_MARKETS, that has a column of type SDO_GEOMETRY.
    The table name is stored in the spatial metadata views in all uppercase characters.
    The table name cannot contain spaces or mixed-case letters in a quoted string when inserted into the USER_SDO_GEOM_METADATA view, and it cannot be
    in a quoted string when used in a query (unless it is in all uppercase characters).
    The spatial feature table cannot be an index-organized table if you plan to create a spatial index on the spatial column.

  • Can't query sql data

    I'm connecting fine to a SQL DB. Used the "help" sample in LS 8.0 help to enter an ID that should query the data for a specific data set. Using "click" and "FormCalc", I get an error. This is my code:
    //Change the commandType from TABLE to TEXT. TEXT
    //is the equivalent of SQL Property
    $sourceSet.DataConnection.#command.query.commandType = numeric
    //Set the Select Node. Select in this case will be
    //whatever SQL Property you want
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat(Select*from licenses Where userid = , ListBox1.rawValue,)
    //Reopen the Data connection
    $sourceSet.DataConnection.open()
    I've tried the Javascript version of this, and I get no error, but nothing at all happens.
    Help??

    - Help | About | Version:
    Java(TM) Platform     1.6.0_14
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    - Help | About | Properties:
    java.home     C:\Program Files\Java\jdk1.6.0_14\jre
    jdbc.driver.home     /C:/ORACLE/product/10.2.0/client_1/
    jdbc.library     /C:/ORACLE/product/10.2.0/client_1/jdbc/lib/ojdbc6.jar
    - running <sqldevelope>\sqldeveloper\bin\sqldeveloper.exe:
    popup blank console but no msg. in it.
    Thanks for the tips! Yesterday I configured apache tomcat and copied ojdbc into it's
    library, maybe copy wrong folder at that time. I just removed ojdbc6 and keep ojdbc14
    in oracle jdbc library. After it, now the sql developer can start successfully!
    Many thanks!

  • I want to format my computer can i get my Data again with Sync?

    i decided to format my PC and don't want to lose my firefox bookmarks,passwords... etc, CAN I GET THEM BACK AFTER FORMATTING USING FIREFOX SYNC?

    Profile is a folder which store all your personal data in a safe place
    * https://support.mozilla.com/en-US/kb/Profiles
    * here explain how to backup profile https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
    * here explain how to restore it
    https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile

  • My iCal is EMPTY!!! How can i find the data again?

    I tried to sync Notes (only Notes) with iCloud... and all my Calendar disapeared!!!!! Why? Where are the datas? I need to have all my Calendars events ON MY COMPUTER!!! Please help!!!

    Try this first.
    Calendar - Restore Calendar Events
    If that doesn't work.
    Quit the application.
    Hold down the option key while using the Finder “Go To Folder” command. Enter ~/Library/Calendars.  Select the Folder and enter your backup if you have one. Go to a date before  the problem started and hit restore (if you are using Time Machine).
    Open the application and test.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/

  • Query on Data loading

    Hi All,
    I am loading the data to ODS and the data loading is happening (The Status is showing in Yellow) . While loading, can i schedule the data again.Previous request is already in Yellow status. What will happen if i schedule the data load again.
    Pls suggest.
    Thanks,
    Jelina.

    Try to understand loading process to ODS -
    Extract Structure
    PSA
    Trasfer structure
    Communication Structure
    Through Update rule to New Table
    Activation Process
    Data updated in Active & Change Log table.
    In your case second load will process till Active Table & if First load is still yellow by the time of activation of second load then second load will fail as active table is locked by first load.
    If first load is completed then second will go through successfully.
    Hope this helps.
    Regards,
    Viresh

  • How can i connect iphone to itunes.. i want to restore because my finger mistakes that click Reset all content and setting.. so iphone are empty.. all foto and data lost, right.. how can i use my iphone again..

    how can i connect iphone to itunes.. i want to restore because my finger mistakes that click Reset all content and setting.. so iphone are empty.. all foto and data lost, right.. how can i use my iphone again.

    Yes, try to restore your iPhone from iTunes or iCloud backup.
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Tell us the result if you will try.
    <Link Edited By Host>

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Oracle Forms - How can I create a Data Block with query

    Dear friends I have a question, I couldn't do this..
    I have a sql query, I want to show the datas of the query.. How can I do this. ?
    Data Block Wizard wants a table, view or stored procedure, but I have a query, how can I create a data block with my query.. I m waiting your helps..? Please...
    Semih

    Hi,
    You have two options
    1. create a view and base the block on the view
    2. create a block with a query Data Source Type of 'FROM clause query'
    Hope this helps
    Neil

  • How can I query data from XML file stored as a CLOB ?

    Hi folks,
    please see below sample of XML file, which is stored in "os_import_docs", column "document" as CLOB.
    I would like to query this XML file using some SQL select.
    How can I query data form below XML?
    <?xml version="1.0" encoding="UTF-8"?>
    <etd>
      <header>
        <AR>000000000</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>H</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>21:18</CL>
        <CW>225</CW>
        <CX>0</CX>
        <CF>SS-CZL18</CF>
        <DV>2</DV>
      </header>
      <account_group id="234">
        <account id="234">
          <invoice id="000742024">
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>A</AL>
              <BZ>.</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY>602718709</AY>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>L</AL>
              <BZ>Mike Tyson</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY/>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <detaildc CH="0032" AB="234" BS="11888954" BB="32" BA="CZ" AT="" CI="7077329000002340342" AU="" DU="1Z48395" CB="CZK">
              <dc>
                <AW>0</AW>
                <CT>D</CT>
                <CU>C</CU>
                <BY>31-10-2012</BY>
                <CA>25-10-2012</CA>
                <CV>8151</CV>
                <BT>12111</BT>
                <CJ>1</CJ>
                <AM>0</AM>
                <DR>PC</DR>
                <DS/>
                <DO>25-10-2012</DO>
                <DQ>18:42</DQ>
                <CE>1</CE>
                <BH>8151</BH>
                <CY>8151 SHELL MALKOVICE P</CY>
                <DP>049336</DP>
                <DT/>
                <BQ/>
                <BR>500000</BR>
                <CN>30</CN>
                <CM>030</CM>
                <BO>160,00</BO>
                <BF>38,900</BF>
                <BC>6224,00</BC>
                <BI>32,417</BI>
                <CD>B</CD>
                <BG>0,600</BG>
                <BK>31,817</BK>
                <BJ>0,000</BJ>
                <DI>8</DI>
                <BP>20,00%</BP>
                <CC>CZK</CC>
                <BM>5090,67</BM>
                <BN>1018,13</BN>
                <BL>6108,80</BL>
                <BD>5090,67</BD>
                <BE>1018,13</BE>
                <DW>6108,80</DW>
                <CO>Nafta</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>1</DG>
              <CN>30</CN>
              <CM>030</CM>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ>20,00%</DJ>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA>P</DA>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>2</DG>
              <CN/>
              <CM/>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>19</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>8</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
          </invoice>
        </account>
      </account_group>
      <footer>
        <AR>999999999</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>T</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>23:04</CL>
        <CW>225</CW>
        <BX>1</BX>
        <CS>7</CS>
        <BW>0000000000000610880</BW>
      </footer>
    </etd>sample - not working:
        select  x.*
        from os_import_docs d
             ,XMLTABLE('/etd/header'
                        PASSING httpuritype(d.document).getXML()
                        COLUMNS
                           response_status varchar2(50) PATH 'AR'
                        )  x
       where d.object_id = 2587058
         and rownum = 1; 
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6196, maximum: 4000)Many thanks,
    Tomas

    Hello,
    many thanks for the reply. Your examples are very usefull for me.
    To answer your questions.
    An XML structure:
    /etd
        /header - repeat in each row in output
        /account_group/account
            /invoice
                /da - repeat for each details under "selected "invoice
                /detaildc/dc - the lowest level 
                /detaildn/dn - the lowest level 
                /dt - repeat for each details under "selected "invoice
        /footer - repeat in each row in outputI would like to to have a 1 row for each "record" in /detaildc section and include related nodes at higher levels.
    Please see below XML file, which is simplified file of example in first post, but includes a complete xml structure which needs to be queried in db.
    <?xml version="1.0" encoding="UTF-8"?>
    <etd>
      <header>
        <AR>000000000</AR>
        <CK>2012-10-31</CK>
        <CF>SS-CZL19</CF>
      </header>
      <account_group id="234">
        <account id="234">
          <invoice id="EI08P4000">
            <da>
              <AR>EI08P4000</AR>
              <AD>Mickey Mouse</AD>
            </da>
            <detaildc DU="1Z56655" CB="EUR">
              <dc>
                <DO>16-10-2012</DO>
                <CY>ASFINAG POST_MAUT</CY>
                <BM>1940,60</BM>
                <CO>Dalnicni znamka</CO>
              </dc>
            </detaildc>
            <detaildc DU="2Z55050" CB="EUR">
              <dc>
                <DO>17-10-2012</DO>
                <CY>ASFINAG POST_MAUT</CY>
                <BM>1328,10</BM>
                <CO>Dalnicni znamka</CO>
              </dc>
            </detaildc>
            <detaildc DU="2Z90001" CB="EUR">
              <dc>
                <DO>27-10-2012</DO>
                <CY>ASFINAG POST_MAUT</CY>
                <BM>185,10</BM>
                <CO>Poplatek</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>EI08P4000</AR>
              <DG>8</DG>
            </dt>
          </invoice>
        </account>
        <account id="234">
          <invoice id="EI13T7777">
            <da>
              <AR>EI13T7777</AR>
              <AD>Mickey Mouse</AD>
            </da>
            <detaildc DU="1Z48302" CB="EUR">
              <dc>
                <DO>26-10-2012</DO>
                <CY>SANEF 07706 A 07704</CY>
                <BM>232,10</BM>
                <CO>Dalnicni poplatek</CO>
              </dc>
            </detaildc> 
            <detaildc DU="1Z48302" CB="EUR">
              <dc>
                <DO>20-10-2012</DO>
                <CY>TEST A 07704</CY>
                <BM>30,10</BM>
                <CO>Poplatek</CO>
              </dc>
            </detaildc>       
            <dt>
              <AR>EI13T7777</AR>
              <DG>8</DG>         
            </dt>
          </invoice>
        </account>
        <account id="234">
          <invoice id="EI327744">
            <da>
              <AR>EI327744</AR>
              <AD>Mickey Mouse</AD>
            </da>
            <detaildn  CI="707732 00000234" >
              <dn>
                <BY>30-10-2012</BY>
                <BM>8,10</BM>
              </dn>
            </detaildn>
            <detaildn CI="707732 00000234" >
              <dn>
                <BY>30-10-2012</BY>
                <BM>399,50</BM>
              </dn>
            </detaildn>
            <dt>
              <AR>EI327744</AR>
            </dt>
          </invoice>
        </account>
        <account id="234">
          <invoice id="EI349515">
            <da>
              <AR>EI349515</AR>
              <AD>Mickey Mouse</AD>
            </da>
            <detaildc DU="1Z56514" CB="EUR">
              <dc>
                <DO>29-10-2012</DO>
                <CY>ALLAMI AUTOPALYAKEZE</CY>
                <BM>1240,60</BM>
                <CO>Dalnicni znamka</CO>
              </dc>
            </detaildc>
            <detaildc DU="1Z56515" CB="EUR">
              <dc>
                <DO>19-10-2012</DO>
                <CY>ASFINAG POST_MAUT</CY>
                <BM>7428,10</BM>
                <CO>Dalnicni znamka</CO>
              </dc>
            </detaildc>
            <detaildc DU="1Z56515" CB="EUR">
              <dc>
                <DO>12-10-2012</DO>
                <CY>UK</CY>
                <BM>954,10</BM>
                <CO>Poplatek</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>EI349515</AR>
              <DG>8</DG>
            </dt>
          </invoice>
        </account>
      </account_group>
      <footer>
        <CZ>SS47</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-10-31</CK>
        <CL>01:25</CL>
      </footer>
    </etd>Expected output
    AR     CK     CF             AR4             AD             DU     CB     DO             CY                     BM      CO                AR5             DG     CI             BY               BM6     CZ     BU       CH       CK7    CL
    0     41213     SS-CZL19     EI08P4000     Mickey Mouse     1Z56655     EUR     16-10-2012     ASFINAG POST_MAUT     1940,60     Dalnicni znamka        EI08P4000     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI08P4000     Mickey Mouse     2Z55050     EUR     17-10-2012     ASFINAG POST_MAUT     1328,10     Dalnicni znamka        EI08P4000     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI08P4000     Mickey Mouse     2Z90001     EUR     27-10-2012     ASFINAG POST_MAUT      185,10     Poplatek        EI08P4000     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI13T7777     Mickey Mouse     1Z48302     EUR     26-10-2012     SANEF 07706 A 07704      232,10     Dalnicni poplatek  EI13T7777     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI13T7777     Mickey Mouse     1Z48302     EUR     20-10-2012     TEST A 07704               30,10     Poplatek        EI13T7777     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI327744     Mickey Mouse                                                                      EI327744          707732 00000234     30-10-2012     8,10     SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI327744     Mickey Mouse                                                                      EI327744          707732 00000234     30-10-2012     399,50     SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI349515     Mickey Mouse     1Z56514     EUR     29-10-2012     ALLAMI AUTOPALYAKEZE     1240,60     Dalnicni znamka        EI349515     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI349515     Mickey Mouse     1Z56515     EUR     19-10-2012     ASFINAG POST_MAUT     7428,10     Dalnicni znamka        EI349515     8                                    SS47     4     32     41213     01:25
    0     41213     SS-CZL19     EI349515     Mickey Mouse     1Z56515     EUR     12-10-2012     UK                      954,10     Poplatek        EI349515     8                                    SS47     4     32     41213     01:25

  • How can I make a query by date with several TDMS files?

    Hi,
    I have a project that can write and read TDMS files everyday (a file for each day with date and time). There, I can import those files to excel (I choose a file and load it). But, I have a question: How can I make a query by date with those TDMS files? I'd like make a time stamp for start date and stop date, where I could compare the TDMS file dates and sum the values that are in the channels where these files are similar. For example, I save a file with "02/01/2013" name, in other day "03/01/2013", in other day "04/01/2013"... so, i'd like put in time stamp for start date "02/01/2013" file and to stop date "04/01/2013" file, than, sum all values that range with my TDMS files existing. How can I make that? 
    Thanks all,
    Val 

    Hello Val_Auto.
    You're Brazilian, no? Me too. = ^ - ^ =
    I converted VI to version of your LabVIEW (8.5). Is attached in this reply.
    This VI search all your TDMS in a range of dates and join them in a single TDMS. I hope this is what you wanted.
    Query TDMS is the main VI. The TDMS VI Search changes the date format that out from calendar control (which is DD / MM / YYYY) to DD-MM-YYYY. This is because you can't name files using "/". I chose "-" but, if necessary, you should change to keep the same format of your TDMS files.
    If you have any doubt as to its operation or how to make changes to adapt VI for your application, keep at your disposal.
    Thank you for your contact; I hope have helped you and succeed in your application.
    Wesley Rocha
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!
    Attachments:
    Query TDMS.vi ‏62 KB
    tdms search.vi ‏24 KB

  • HT4859 Do I need to turn backup on to allow iCloud to store data?  Can I turn it off again so iPad will sync with iTunes?

    Do I need to turn on iCloud Backup to,store data?  Can I turn it off again so it is not on automatic and will resume syncing with iTunes?

    You don't have to turn on iCloud backup to sync data with iCloud, but you do if you want to back up to iCloud.  (You sync data with iCloud by going to Settings>iCloud and turning the data you want to sync with your iCloud account to On, and choosing Merge to upload your data.)
    Also, backing up to iCloud does not prevent you from sycing with iTunes.  All it does is cause your iPad to be automatically backed up to iCloud instead of automatically backing up to your computer each time you sync.  And even if you are automatically backing up to iCloud, you can always manually back up to your computer using iTunes at any time by connecting your iPad to your computer, clicking on the name of your iPad in iTunes, going to the Summary tab of your iTunes sycn settings, and clicking on Back Up Now.
    You can, of course change back to automatically backing up to your computer using iTunes at any time as well.

  • Can we create range variable for Query Key Date

    Hello Gurus,
    Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
    so, Please let me know if we can use Range variables for Query Key Date ??
    Thanks in advance,
    Regards,
    Aarthi

    Hi Aarthi,
    This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
    The default key date value is the date on which the query is executed, that is <Today>.
    Hope this helps...

  • Can the partner master data ( name, text ) be used in a Query

    Hi,
      I have a requirement to have query against CRM cubes/ods, which can query data by Partner address   or text (Short description, Medium description or Long description).
      For example, the cube has a characteristic 0CRM_SOLDTO ( Sold to party ) and we can always write a query which will have this field as a variable in the selection field and then query the appropriate data. But can we also query the data as per the partner name or short description or address( say zip code ? ).
      If yes can you please let me know how. For example consider the following simple example cube which has a characteristics as Customers( say 1000001... and the characteristics "customer" has master and text data ( short text say "company x".
      How to write a query against the cube which will take the customer text as input field and display the relevant data.
      Thanks
    Arunava

    Hi
    I am even not aware of a standard function to do it. But one more option I can think of. But this only applicable with simple reports & with restricted kef figures.
    1. You create a dummy sold-to-party (S2)
    2. Add it to the same or different dimension as that of origional sold-to-party (S1) in the cube.
    3. Create a structe in the report for your KFs or RKFs.
    4. Create one RKF with S2 and with some key figure like "no of records". Create a variable V2 on S2 (user entry) and include this in the RKF. Hide this RKF. (So, basically you use this RKF to invoke the variable V2 to accept the Text of sold to party when the report is executed).
    5. Include the required KFs (or RKFs with S1) in the structure. Create a customer exit varaible V1 (Not ready for input) on S1. In this exit, determine the Sold to Party ID from the Text entered in V1 & the text table of sold to party.
    Basically, what ever we do in update rules (as suggested earlier), now we do it in a customer exit. hope this helps.
    regards,
    atlaj

  • Can't query date AND time

    Hi,
    has someone an idea why I can't query time in SharePoint 2013?
    Let's say I have a document that has been edited today (1/30/2013 3:46 AM) and I have the following query:
    'write>"2013-01-30T00:00:00Z" AND write<"2013-02-01T00:00:00Z"',
    I excpect my document to show up in the result list but I can't find it.
    By moving the start date one second into the past I am able to get my document.
    'write>"2013-01-29T23:59:59Z" AND write<"2013-02-01T00:00:00Z"'
    It looks like SharePoint is completely ignoring the time part in the query and is only checking the date.
    The time shown in the result list and the time I get when searching via REST API both match my editing time.
    Is there a restriction when querying DateTime values? Am I missing some some config parts or is my syntax wrong?
    I would be grateful for any hints.

    Hi,
    sorry for the confusion but what I meant in my post was "Query via search".
    KQL seems to ignore the time component almost completely. It doesn't have an impact on search results, but providing an invalid timestamp leads to an error - so it is "almost" ignored. ;)
    Michael Svenson proposed a workaround that I'd like to share here as it can be helpful in some scenarios:
    "Use use the RefinementFilters property instead!"
    How to and where can be found in this article in his blog:
    http://techmikael.blogspot.de/2013/07/limiting-search-results-by-exact-time.html
    Kind regards
    Sebastian

Maybe you are looking for

  • Unable to clear debtors recon account

    Hi experts, My client uses a debtors reconciliation A/c without any sub-ledgers by entering site-wise sales. Now they want to do clearing using f-03 since negligible balances are showing in debtors ageing report.. However, they are getting error: The

  • Claims report, rpclmsu0, doesn't work correctly in ECC 6.

    Claims report is used to view the details of the components of the claims but all it is showing is the values /561 and /5py wage types. Since it isn't known what wage type generated the claim and what tax class it is under, claims can't be cleared. O

  • How to release user status for sales documents automatically

    Hi All, We have configured status profile for third party sales document type. This will stop creating PR from sales order. After chaning the status from STP to GO, system will create PR. But the problem here is user is going and changing the object

  • Making a color pallete/swatch in Photoshop Elements 8 for Mac

    Hello, I don't know much about the color pallete in PE 8 for Mac except to type in the RGB numbers to get a certain color.  I work with materials from the Stampin' Up Co.making greeting cards for friends.  Stampin' Up have their own colors that they

  • Applicant Number Ranges are getting skipped

    Hi, In my client's production server while entering initial applicant data the internal number ranges are getting skipped. For Example someone has done Initial Data Entry for the Applicant, the Applicant number generated is 40. Then in the next entry