Date Searching query

Hi experts ,
I have need Date rang searching option (IN_Dt) for this Query . please help  
SELECT distinct 'SO',R.DocNum,
'IN', I0.DocNum , I0.DocDate as IN_Dt,  I0.DocTotal, I1.ItemCode,I1.Quantity as 'Nwt',I1.[U_ORDQTY] as  'PCS' ,I1.PriceBefDi ,
I1.U_ALLOY,I1.U_TEMPER ,I1.U_CUTLENT,
I0.PayToCode,I0.ShipToCode,I0.Address2  as 'delivery at',D0.U_LRRRNO,I0.U_DATE as Lr_Dt,
I0.U_TRNSNAME,I0.U_VEHCLNO,J.PrjName AS 'BRANCH' ,K.PkgType ,S.SlpName 
FROM ((ODLN D0 inner Join DLN1 D1 on D0.DocEntry = D1.DocEntry)
full outer join (OINV I0
inner join INV1 I1 on I0.DocEntry = I1.DocEntry) on (I1.BaseType=15
AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine )
left outer join (ORDR R inner join RDR1 R1 on R.DocEntry = R1.DocEntry)
      on (R1.DocEntry=D1.BaseEntry and D1.BaseLine=R1.LineNum )
      LEFT OUTER JOIN ([@SSPL_DD_PACK] P INNER JOIN [@SSPL_DR_PACKDT] P1 ON P.DocEntry=P1.DocEntry  )
      ON (R.DocNum=P1.U_PPDA_NO AND R1.ItemCode=P1.U_ITEMCODE )
      LEFT OUTER JOIN OPKG K ON (I1.U_MODPACK=K.PkgCode )
      LEFT OUTER JOIN OSLP S ON (I0.SlpCode=S.SlpCode)
      LEFT OUTER JOIN (OPRJ J INNER JOIN OCRD C ON J.PrjCode=C.ProjectCod) ON (I0.CardCode=C.CardCode )
WHERE
(D1.BaseType=17 )
OR (I1.BaseType=17   )
OR (I1.BaseType=15 AND I1.BaseEntry
IN (SELECT Distinct DocEntry FROM DLN1
WHERE BaseType=17)
thanks
arabinda
Edited by: Deepa Nambiar on Jun 11, 2010 7:39 AM

Declare @FromDate Datetime
Declare @ToDate Datetime
Set @FromDate = (Select min(II0.Docdate) from dbo.OINV II0 where II0.Docdate >='[%0]')
Set @ToDate = (Select max(II1.Docdate) from dbo.OINV II1 where II1.Docdate <='[%1]')
SELECT distinct 'SO',R.DocNum,
'IN', I0.DocNum , I0.DocDate as IN_Dt,  I0.DocTotal, I1.ItemCode,I1.Quantity as 'Nwt',I1.[U_ORDQTY] as  'PCS' ,
I1.PriceBefDi ,
I1.U_ALLOY,I1.U_TEMPER ,I1.U_CUTLENT,
I0.PayToCode,I0.ShipToCode,I0.Address2  as 'delivery at',D0.U_LRRRNO,I0.U_DATE as Lr_Dt,
I0.U_TRNSNAME,I0.U_VEHCLNO,J.PrjName AS 'BRANCH' ,K.PkgType ,S.SlpName 
FROM ((ODLN D0 inner Join DLN1 D1 on D0.DocEntry = D1.DocEntry)
full outer join (OINV I0
inner join INV1 I1 on I0.DocEntry = I1.DocEntry) on (I1.BaseType=15
AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine )
left outer join (ORDR R inner join RDR1 R1 on R.DocEntry = R1.DocEntry)
      on (R1.DocEntry=D1.BaseEntry and D1.BaseLine=R1.LineNum )
      LEFT OUTER JOIN ([@SSPL_DD_PACK] P INNER JOIN [@SSPL_DR_PACKDT] P1 ON P.DocEntry=P1.DocEntry  )
      ON (R.DocNum=P1.U_PPDA_NO AND R1.ItemCode=P1.U_ITEMCODE )
      LEFT OUTER JOIN OPKG K ON (I1.U_MODPACK=K.PkgCode )
      LEFT OUTER JOIN OSLP S ON (I0.SlpCode=S.SlpCode)
      LEFT OUTER JOIN (OPRJ J INNER JOIN OCRD C ON J.PrjCode=C.ProjectCod) ON (I0.CardCode=C.CardCode )
WHERE
(D1.BaseType=17) AND 
(I0.DocDate>= @FromDate and I0.DocDate<=@ToDate) AND
(D0.DocDate>= @FromDate and D0.DocDate<=@ToDate)
OR (I1.BaseType=17   )
OR (I1.BaseType=15 AND I1.BaseEntry
IN (SELECT Distinct DocEntry FROM DLN1
WHERE BaseType=17)
and I0.DocDate>= @FromDate and I0.DocDate<=@ToDate

Similar Messages

  • Need help in building search query

    Guys ..
    Problem Description:
    I have a huge table that is indexed using CONTEXT.
    I want to write a search query that considers the following:
    1. number of keywords match
    2. takes care of spelling mistakes, synonyms and acronyms
    3. proximity - the keywords should not be too far of each other.
    e.g. I have this phrase: "Horizontal Stabilizer Trim Brake"
    I was thinking of writing a query like:
    SELECT SCORE(1) SCORE,
    TEXT text
    FROM MY_TABLE
    WHERE CONTAINS(TEXT, '(Horz | Horizontal) ACCUM (Stab | Stabilier) ACCUM Trim ACCUM (Brk | Break)', 1) >= 0
    ORDER BY SCORE DESC
    The results doesnt look satisfactory. I have not used "near" operator as i dont know how to use it.
    Please help me as I am very much new to Oracle Text.
    -G

    Well, I'm not going to write the function for you, but we can at least talk through a general strategy.
    A lot depends on how you help your users on the front end -- for example, if they're searching a technical document, you may want to return results that aren't perfect matches but you do want to make sure the user picks 'mandatory' and 'useful' keywords in a way that lets you figure out which ones are really important. On the other hand, if you're google and have to handle queries like 'horizontal stabilizer trim brake' and 'were Pete and Jenny in the break room' then you run the risk of spending too much time looking for interesting words, almost doing a full-text search on the query trying to derive meaning.
    So I'm going to presume that you have some control over what/how the users generate their searches so that finding keywords isn't the issue.
    The plan will be to parse the query a bit to find the interesting words, clean them up, and weigh their importance, then use transformed data to build the query template to score various combinations.
    So here's some pseudocode for the function:
    function parse_query(pQueryWords in clob) returns clob as
    begin
        generate_token_list (); -- split the query into a set of individual tokens/words
        for each token in token_list
            if it's a mandatory word then accumtokenlist := accumtokenlist || ' ' || token ||'*10' -- weigh the presence of the token strongly
            if it's a useful word then accumtokenlist := accumtokenlist || ' ' || token ||'*5' -- domain-specific words are also important
            if it's a stopword or reserved word, then do not add it to the list
            if it's not on my lists, then accumtokenlist := accumtokenlist || ' ' || token
                                         and normaltokenlist := normaltokenlist ||' ' || token
        end;
        --so now, we have two lists, one for NEAR and one for ACCUM
        now build the guts of the template
            querytemplate := querytemplate || '<seq> || normaltokenlist || '</seq>';
            querytemplate := querytemplate || '<seq> || replace (accumtokenlist, ' ',' ACCUM ') || '</seq>';
            querytemplate := querytemplate || '<seq>$' || replace(normaltokenlist,' ','$') || '</seq>';
            querytemplate := querytemplate || '<seq>? || replace(replace(accumtokenlist,' ',' ?'),' ', ' accum ') || </seq>';  -- first fuzzy the words, then accum
            querytemplate := querytemplate || '<seq>? || replace(replace(normaltokenlist,' ',' ?'),' ', ' near ') || </seq>';  -- first fuzzy the words, then near
        return querytemplate
    end;So, with a 'cooked' query text that is template-friendly, all we need to do is apply a template that is aware of your inputs:
    query_Template_string := '
    <query>
       <textquery lang="ENGLISH" grammar="CONTEXT"> horizontal stabilizer*5 trim brake*10
         <progression> '
    || parse_query('horizontal stabilizer trim brake')  ||
    '     </progression>
       </textquery>
      <score datatype="INTEGER" algorithm="COUNT"/>'
    </query>So that's an example of one approach.

  • Pass dynamic values to search-query in wlp-syndication-config for RSS

    Hi All,
    I want to pass dynamic values to the <search-query> element for the <syndication-feed> node in the wlp-syndication-config.xml file for implementing RSS feeds.
    Here's a sample
    <syndication-feed>
              <name>RSSFeed</name>
              <search-query>cm_objectClassInstance=='Node' &amp;&amp; date == 'x'_</search-query>
              <search-type>pubmeta</search-type>
         </syndication-feed>
    I tried passing the parameter in the url but the feed doesn't read it. The only option i have is to manually put the value to get the content from the repository, which sucks...because the values can change any time. is there any way that I can avoid it
    Any help on this would be appreciated.
    Thanks,
    K

    James:
    Passing filters to an IR within the URL is described here
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref989
    Varad

  • Transformation in combination with a search query

    Using DPS 6.3 I have merged an Active Directory and Domino Directory. This all seems to work fine. The only issue I still have is that for some reason the transformations are not applied when performing a search query. An example: In AD groups can be found by performing a search for the objectclass "group". In Domino the objectclass is called "dominoGroup". To make the objectclasses match I made a transformation that removes "domino" from the Domino objectclass. I expected that searching for the objectclass "group" would now result in both groups from AD and Domino. But this is not the case.
    Is there a solution for this?

    Sorry for the late response, but I have not been able to work on this issue for the last few weeks. But I appreciate when you can have a look. It's the first time I have ever worked with DPS. The space was insufficient to post the complete conf.ldif file. I have now taken out my configuration. When you need something else just let me know.
    dn: cn=DSP_DOMINO,cn=datasource pools
    cn: DSP_DOMINO
    dn: cn=DS_DOMINO,cn=DSP_DOMINO,cn=datasource pools
    ldapServer: cn=DS_DOMINO,cn=data sources
    cn: DS_DOMINO
    dn: cn=DSP_AD,cn=datasource pools
    cn: DSP_AD
    dn: cn=DS_AD,cn=DSP_AD,cn=datasource pools
    ldapServer: cn=DS_AD,cn=data sources
    cn: DS_AD
    dn: cn=DS_AD,cn=data sources
    clientCredentialsForwarding: noForwarding
    cn: DS_AD
    useTCPNoDelay: true
    enabled: true
    useV1ProxiedAuthControl: false
    readOnly: true
    dn: cn=DS_DOMINO,cn=data sources
    clientCredentialsForwarding: noForwarding
    cn: DS_DOMINO
    useTCPNoDelay: true
    enabled: true
    useV1ProxiedAuthControl: false
    readOnly: false
    dn: cn=root data view, cn=Data Views
    cn: root data view
    viewBase: ""
    dataSourcePool: defaultDataSourcePool
    viewExclusionBase: cn=proxy manager
    viewExclusionBase: dc=interaccess,dc=nl
    viewExclusionBase: ""
    enabled: true
    dn: cn=DV_INTERACCESS,cn=data views
    readOnly: true
    dataSourcePool: DSP_AD
    viewBase: dc=interaccess,dc=nl
    description: Inter Access - AD
    cn: DV_INTERACCESS
    viewExclusionBase: ou=domino,ou=inter access,dc=interaccess,dc=nl
    viewAlternateSearchBase: ""
    viewAlternateSearchBase: dc=nl
    dn: cn=DV_DOMINO,cn=data views
    readOnly: false
    dataSourcePool: DSP_DOMINO
    viewBase: ou=domino,ou=inter access,dc=interaccess,dc=nl
    cn: DV_DOMINO
    attributeMapping: streetaddress#officestreetaddress
    attributeMapping: assistant#secretary
    attributeMapping: company#companyname
    DNSyntaxAttribute: distinguishedname
    DNSyntaxAttribute: dominoaccessgroups
    DNSyntaxAttribute: creatorsname
    DNSyntaxAttribute: member
    DNSyntaxAttribute: modifiersname
    DNSyntaxAttribute: secretary
    dataSourceBase: o=hpwibm
    attributeRule: DV_DOMINO_mapping_add-attr_otherMobile
    attributeRule: DV_DOMINO_mapping_add-attr_distinguishedName
    attributeRule: DV_DOMINO_read_add-attr_displayName
    attributeRule: DV_DOMINO_read_attr-value-mapping_displayname
    attributeRule: DV_DOMINO_read_remove-attr-value_objectclass
    attributeRule: DV_DOMINO_mapping_attr-value-mapping_objectclass
    attributeRule: DV_DOMINO_read_attr-value-mapping_objectclass
    attributeRule: DV_DOMINO_mapping_remove-attr-value_objectclass
    viewAlternateSearchBase: dc=interaccess,dc=nl
    viewAlternateSearchBase: ou=inter access,dc=interaccess,dc=nl
    viewAlternateSearchBase: ""
    viewAlternateSearchBase: dc=nl
    dn: cn=DV_DOMINO_mapping_add-attr_otherMobile,cn=attribute rules
    model: mapping
    viewAttributeValue: ${mobile}
    attributeName: otherMobile
    transformation: add
    cn: DV_DOMINO_mapping_add-attr_otherMobile
    dn: cn=DV_DOMINO_mapping_add-attr_distinguishedName,cn=attribute rules
    model: mapping
    viewAttributeValue: ${dn}
    attributeName: distinguishedName
    transformation: add
    cn: DV_DOMINO_mapping_add-attr_distinguishedName
    dn: cn=DV_DOMINO_read_add-attr_displayName,cn=attribute rules
    model: virtual
    viewAttributeValue: \${cn}
    attributeName: displayName
    transformation: add
    cn: DV_DOMINO_read_add-attr_displayName
    dn: cn=DV_DOMINO_read_attr-value-mapping_displayname,cn=attribute rules
    model: virtual
    viewAttributeValue: ${cn}
    attributeName: displayname
    transformation: replace value
    internalAttributeValue: ${displayName}
    cn: DV_DOMINO_read_attr-value-mapping_displayname
    dn: cn=DV_DOMINO_read_remove-attr-value_objectclass,cn=attribute rules
    model: virtual
    attributeName: objectclass
    transformation: delete value
    internalAttributeValue: inetOrgPerson
    cn: DV_DOMINO_read_remove-attr-value_objectclass
    dn: cn=DV_DOMINO_mapping_attr-value-mapping_objectclass,cn=attribute rules
    model: mapping
    viewAttributeValue: user
    attributeName: objectclass
    transformation: replace value
    internalAttributeValue: dominoPerson
    cn: DV_DOMINO_mapping_attr-value-mapping_objectclass
    dn: cn=DV_DOMINO_read_attr-value-mapping_objectclass,cn=attribute rules
    model: mapping
    viewAttributeValue: group
    attributeName: objectclass
    transformation: replace value
    internalAttributeValue: dominoGroup
    cn: DV_DOMINO_read_attr-value-mapping_objectclass
    dn: cn=DV_DOMINO_mapping_remove-attr-value_objectclass,cn=attribute rules
    model: virtual
    attributeName: objectclass
    transformation: delete value
    internalAttributeValue: groupofnames
    cn: DV_DOMINO_mapping_remove-attr-value_objectclass
    dn: cn=CHND_INTERACCESS,cn=connection handlers
    dataViewPolicy: DATA_VIEW_LIST
    useDataViewAffinity: false
    enabled: true
    cn: CHND_INTERACCESS
    sslCriteria: false
    dataViewList: DV_INTERACCESS
    dataViewList: DV_DOMINO
    dn: cn=PL_REFERRALS,cn=policies
    searchMaxSizeLimit: -1
    searchFilterMinSubstring: -1
    cn: PL_REFERRALS
    referralPolicy: forward

  • Error during search !!! Associate Search Query with Indexes !!!

    We are trying to implement a simple index with Trex Search .
    We have done the following tasks :
    1. Created my index
    2. Assigned data to the the indexes
    3. Created taxonomies for classification indexes
    4. Created my search query  asociated to the index
    When we  try to search with the iview search , we got this error  :  <i><b>"Error during search occurred - com.sapportals.wcm.WcmException: A received argument has an invalid value (Errorcode 18)"</b></i> .
    We think that something is missing and for that we need to know how can we
    associate the search query with the index ?
    After the step 4), what we have to do in order to get this implementation (search working)
    Please send us  any ideas ..
    THANKS !!!

    Dear Ato
    Check in IMG Path - Enterprise Structure --> Assignment --> Logistis Execution --> Assign warehouse number to plant/storage location.
    Here check whether the warehouse number is assigned to your plant and storage location.
    thanks
    G. Lakshmipathi

  • Fromatted search Query

    Hi All,
               I need a formatted search query for the following requirement.
    My Requirement is I have a Userdefined Field "U_frdrp" and I have a dropdown for this field with the following values 
    ksr----
    1.3
    Gir----
    1.35
    Dpalli----
    1.3
    When I select Item which is related to Ksr Location, Then I want 1.3 value to be updated in my user defined field. Similarly when I select Item Related to GIr Location I wanted 1.35 value to be updated in my userdefined field. Similarly for all.
    Thankyou,
    Sree.

    Hi,
    Create New UDF, assign data type....
    now check mark"Set Valid Value for Field"
    ->check on new button
    -> add yr RATE on (1.3)  value side and Ksr on description side
    -> click again on new to add more value.
    I hope u gt
    Thanks
    Kevin
    Edited by: Kevin Shah on Sep 16, 2009 4:42 PM

  • Search query not able to find node under a specific site structure (eg. 2013/05)?

    Hi,
        We are saving our data on a node under year/month site structure, eg. (2013/05/node1) but when we search for the data using a query in a custom workflow., it does not fetch any results.The query being fired is something like :
       SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/content/hm/NewsroomSection/en/NewsRoom/NewsroomDetails/2013/05/node1]) .
       On trying to run this query directly in crxde, it shows no result. But when we change the site structure to 2013/5/node1, it is able to fetch results.
       I am not sure if the problem is because of the '0' digit in the month in site structure (2013/05).
       Please provide your input if any of you have come across something like this before ..
    Thanks
    Abhishek

    Hi Abhishek,
    In case of nodes with numbers, any node starting with 0, this 0 gets omitted in the search query.
    So, if your node name is like 02013 for year, when it searches it omits 0 and searches for 2013.
    In case you want to search for your node, your SQL2 query should be like below:
    SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(['/content/mysite/en/products/2013/05'])
    See screenshot for reference. This should return you the results.
    Hope this helps.
    I guess for more reference on SQL2 queries, you can refer to JCR 2.0 spec.
    http://www.day.com/specs/jcr/2.0/6_Query.html
    Also, you might want to look at the railroad diagrams and some examples from Jackrabbit's test cases:
    http://www.h2database.com/jcr/grammar.html
    http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/test/resources/or g/apache/jackrabbit/spi/commons/query/sql2/test.sql2.txt?view=markup
    Hope this helps.

  • Data validation query change

    hi experts
    I got request to change one data validation query.
    In the existing query,I see three parts...in top(first part) part,we have one query view from One cube.....when we come to middle part(second)..it has one query view from second cube.....finally,the third and bottom part contains some excel formulas which substract middle part(second) total from top part(first) total and shows the result....
    so when I run the query it automatically populates top part(first) from one cube and second part(middle) from other cube and shows result in third and bottom part...
    my change request is:
    I donot need to change the top part(first)...I need to change middle part(second view from top)....but I donot know how to change this one....if I search on technical name of this whole Datavalidation query ...it just shows query corresponding the top part of this data validation query....
    Please advise how to do this  if any of you have idea
    Regards,
    SChand
    Edited by: SChandx200 on Aug 10, 2010 8:10 AM

    Hi,
    There can be one of the two erason,
    Either source data got corrupt. In your case the data in fltfile was not appropriate yesterday,, May be..
    Or someone has change the Info package/Process chain for load the data and change that again today. (Check if is there any Info Package routine is written and got changed recently.
    I hope it will help.
    Thanks,
    S

  • Search query TREX

    Hi,
    I try to configure the KM iview search query to return only result by the name of documents(or part of name) and not as full text.
    For example, if i make a search on "TEST" i can see in the result page:
    - document.doc <i>(name of file)</i>
    this a <b>test</b> document <i>(full text search)</i>
    - test.doc <i>(name of file)</i>
    this is a new doc to..... <i>(full text search)</i>
    - example.doc <i>(name of file)</i>
    a sample for a <b>test</b> has been ....<i>(full text search)</i>
    and i need to see only:
    - test.doc <i>(name of file)</i>
    this is a new doc to..... <i>(full text search)</i>
    How configure the search to have this result?
    For your information i'm in EP7 SP10, TREX 7.0.06
    Thanks in advance,
    Xavier.

    Hi ,
    The custom QueryExtender works for custom property of type String and not for Timestamp property.
    If add Attribute query for Timestamp property with operator as less or equal to current date value, it doesn't work as below.
    returnList.addAttributeQuery(lPublishDateProp,currentDate,IQueryEntry.PROPERTY_OPERATOR_LESS_OR_EQUAL);
    lPublishDateProp - Customer property name of type Timestamp
    currentDate - String value of java.util.Date current date
    Any clue?
    Thanks,
    Siva

  • String Search Query in any columns in any table in a database

    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    Any help is much appreciated
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM
    Edited by: CrackerJack on Sep 3, 2012 5:55 PM

    Hi,
    CrackerJack wrote:
    Hi All,
    I am trying to search a word which starts with 'FRA' in any columns and any tables.
    I am unable tofind what is generating a join datasets in the webservice from teh database as it is not apparent within teh 100 tables.
    I ahve looked into
    Re: How to search in all rows and all columns?
    Re: SQL Search Query - HELP!
    but none of these queries is working out for me as I am a user with no tables on its own but rather a user quering other tables.I think its a tweak on which dat adisctionary I can view In all_<b>cons</b>_columns, "cons" stands for "constraints". That view only includes columns that have a constraint on them. 
    Use all_<b>tab</b>_columns if you're interested in all columns in all tables.
    select distinct substr (table_name, 1, 14) "Table",
    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
    from all_cons_columns,
    table
    (xmlsequence
    (dbms_xmlgen.getxmltype ('select ' || column_name
    || ' from ' || table_name
    || ' where upper('
    || column_name
    || ') like upper(''%' || 'fra'
    || '%'')'
    ).extract ('ROWSET/ROW/*')
    ) t
    order by "Table";You may have noticed that this site noramlly compresses whitespace.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    When referencing a table in a differenct schema, you must qualify the table name with the owner (unless there happens to be a synonym).  For example, if you are connected as some user other than scott, and you want to use the emp table that is in the scott schema; then you can't just say "SELECT ... FROM emp;", because that would look for the emp table in yur own schema.  You have to say "SELECT ... FROM <b>scott.</b>emp;" instead.  If the table is in your own schema, then the scema name is optional.  The OWNER column in all_tab_columns gives the schema name.
    running teh above query got me thsi error:
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 - "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problemSorry, I don't know what causes that error.
    If I use the data dictionary view cols (as in {message:id=3325696} which you cited), it runs correctly.
    If use what I though was the equivalent data dictionary view, user_tab_columns, or if I use all_tab_columns or other data dictionary views, then I get those errors.  I'm using Oracle 10.2.0.1.0.
    Edited by: Frank Kulash on Sep 3, 2012 10:45 PM
    John Spencer noticed the same problem 5 years ago.  See {message:id=1969268}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Search Query Web Part thumbnail image link broken

    Hello,
    I have 4 farms spread across the world and I want to pull news from Farm 1 (headquarters) into farm 2, 3, and 4. In SharePoint 2007 I did this with content deployment by pushing only the news site out to the other 3 farms.  However, from
    reading content deployment guidelines in SP13 I feel this is no longer a supported configuration.
    I am trying to use the search query web part to accomplish this now.  I have a search query web part that I am using to roll up articles from SharePoint at farm 1.  So far it is mostly working, the articles are pulled in and I can see
    them.  When I click the link it takes me from the current farm (farm 2) to farm 1 to read the article.  The only problem I am having is that the rollup image does not display at farm 2, 3, or 4.  I believe this is happening because the image
    URL at the source is getting saved as a relative URL.  Even if I try to override the relative URL to the image with an absolute URL then it just forces the URL back to a relative URL because clearly SharePoint is smarter than I am and there is no reason
    I should ever want an absolute URL.
    I should add that to get this working, in my search settings, I had to configure an extra content source (to farm 1).
    So my question is what is the best way to handle this?  Is there an option in my search configurations on farm 2 to override URL's for a particular content source?  Am I even headed down the right path trying to do this with the content search
    web part?
    Thanks,

    Hi Tom,
    I have been trying to figure out what you mean when you say I am using 'Page item' instead of 'Picture'.  I don't understand what you mean.
    When I set up a page that will be published I have actually been using an 'Article Page' content type for the news item I want to share on all of the farms.  After creating the page there is a section at the bottom for a 'Rollup Image'  I specify
    the URL in this rollup image but the actual image is stored in an 'Assets' Library.  I have no problem with the article page itself showing up on Farm 2, just not the image.  The "Rollup Image" data type is Publishing Image - "Rollup
    Image is a site column created by the Publishing feature. It is used on the Page Content Type as the image for the page shown in content roll-ups such as the Content By Search web part." 
    Question 1: Are you saying that I need to somehow replace that rollup image field with a custom site column field?
    Question 2: If I set up a new column then do I need to worry about connecting catalogs?
    In your post from December 9th it sounded like you had this working in your test environment. 
    Question 3: Did you have it working using a different configuration there? 
    Question 4: If so, did it require having a separate web application just for Assets, or were you using a custom site column there?
    In Farm 2, after I connected my catalog from Farm 1, I found that a Pages library at the top level of my site collection contained some strange entries. I have files in that library called
    CatalogItem--1684387697
    CatalogItem-364050575
    Category-
    Category-1211-4576
    The first CatalogItem gives me an error "Sorry, something went wrong".  The rest seem to contain images from Farm 1.  However, news articles still are not finding those images.  I suppose that is because the 'Rollup image' link is
    still pointing to a different path than that connected catalog.  Anyway, those items were checked out to me and were not published.  I checked them in and published those Category/CatalogItem connections hoping that would work, but
    that didn't help either.  
    When I set up my catalog in farm 1 I only checked 'Enable this library as a catalog'.  None of the other fields seemed to apply since I am not publishing to a public site (Anonymous access) and also since I am not trying to tie identifiers to catalog
    items (Catalog Item URL fields).  Additionally when I connected to my catalog I tried "<label for="ctl00_PlaceHolderMain_connectionTypeSection_fullConnection">Integrate the catalog into my site" with the setting "</label><label
    for="ctl00_PlaceHolderMain_rewriteDecisionSection_noURLRewriteRadioButton">Make URLs point to source catalog".  I also tried "</label><label for="ctl00_PlaceHolderMain_connectionTypeSection_manualConnection">Connect,
    but do not integrate the catalog".  Both of those settings sounded like they might force catalog items to look to the source (Farm 1).  Neither worked.  There are a lot of other settings but none of them seem to apply to my situation. 
    I'm not trying to configure Navigation Hierarchy, Category Pages, or Item Pages.  Maybe I need to do something with "Catalog Item URL Format", but I'm not sure what settings I should try.</label>
    Questions 5,6: Do you have recommendations for my catalog/catalog connections to get this working?  Obviously my current configuration is not right or else it would work, but am I even close?

  • Unable to perform search query against custom property

    Hi,
    I'm trying to perform search against specific property yet I'm getting empty result set.
    I have list with some data on it and the field in question has it's value filled. I done full crawl on the site and the crawled property is present under search administration. Property has "Enable full-text search" checked and I'm able to
    find these list items when I simply type something like 123 in the search box. Yet I'm unable to perform search against that property using syntax like
    DocumentNumber:123.
    According to this
    http://msdn.microsoft.com/en-us/library/office/ee558911.aspx I need to setup managed properties first so I did. I created required managed property called
    DocumentNumber I checked Searchable and Queryable boxes on and mapped it to crawled property. After that I performed full crawl again as it is required (http://technet.microsoft.com/en-us/library/jj219667.aspx)
    but still unable to retrieve result when performing search against specific property. I does however return results when I perform search against default columns like
    Created or Author.
    Some guy had similar issue
    http://social.msdn.microsoft.com/Forums/en-US/1f9782ca-5105-4802-b477-ccdee392c6eb/keyword-query-search-on-custom-managed-property yet that solution does not work for me. I tried it with SharePoint 2013 Search Query Tool and it returns nothing.
    Queries I performed:
    123 - returns required results.
    DocumentNumber:123 - no results.
    ows_DocumentNumber:123 - no results.
    Any ideas what I'm missing?

    According to this
    http://msdn.microsoft.com/en-us/library/office/ee558911.aspx I need to setup managed properties first so I did. I created required managed property called
    DocumentNumber I checked Searchable and Queryable boxes on and mapped it to crawled property. After that
    I performed full crawl again as it is required (http://technet.microsoft.com/en-us/library/jj219667.aspx) but still unable to retrieve result when performing search
    against specific property.

  • Modify a Existing Search Query

    Is there a way to modify a query executed in a Look up screen to include Extended fields.
    For Example if I add some extension fields to a material can I modify the Lookup (Search) query on a Sales order to use these new fields when searching for a Product... (Or best situation can i search for relivant data in a Associated BO my Add-on has created)
    I am guessing NO but just wanted to verify.

    If you define a process integration for the extension field of the material and transfer it from the material to the sales order, you will be able to also use it in the query of the sales order.
    This will only work for newly created sales orders of course, but not for sales orders that existed before you extended the material.
    For your own created objects, this might work if you create the extension fields of the material via the SDK, but I am not sure about this. I have never seen extension fields to be available in an associated BO.

  • Search Query component not responding and corrupted index error

    I am getting follwing errors in eventviewer -
    1.
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Server Search
    Date:          17.12.2014 14:17:38
    Event ID:      74
    Task Category: Content Index Server
    Level:         Error
    Keywords:     
    User:          xxxxxxxx
    Computer:  xxxxxxxx    
    Description:
    Component: 7f5d330e-b891-4fc0-af0b-60519d60251f-query-1
     An index corruption of type pcomp14 was detected in catalog Portal_Content. Stack trace is
         tquery offset=0x0000000000034FAC (0x000007FEE2E84FAC)
         tquery offset=0x000000000001E2B1 (0x000007FEE2E6E2B1)
         tquery offset=0x0000000000131362 (0x000007FEE2F81362)
         tquery offset=0x000000000010AE9F (0x000007FEE2F5AE9F)
         tquery offset=0x000000000010D356 (0x000007FEE2F5D356)
         tquery offset=0x0000000000139598 (0x000007FEE2F89598)
         tquery offset=0x0000000000143689 (0x000007FEE2F93689)
         ntdll offset=0x00000000000215DB (0x00000000775E15DB)
    2.
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Server Search
    Date:          17.12.2014 13:07:47
    Event ID:      60
    Task Category: Query Processor
    Level:         Error
    Keywords:     
    User:          xxxxxxxxxx
    Computer:      xxxxxxxxxx
    Description:
    The last query component (7f5d330e-b891-4fc0-af0b-60519d60251f-query-1) of a partition failed. It will not be taken out of rotation but queries are likely to fail. Check previous event logs to determine cause. Reinitialization may be necessary.
    Please give some solution to resolve the issue.
    NOTE: Please give solution other than rebuilding the whole search service application. We don't want to rebuild as it is shared with other farms and downtime will be more. 

    Hi Gaurav,
    Please go to Central Administration->Manage services on server, stop and re-start SharePoint Server Search service and Search Query and Site Settings Service. Then open a Command Prompt window and type net stop osearch14 to stop the search service. Type
    net start osearch14 to restart the search service.
    If failure persists, add a new query component as a mirror in the same query group as the failed query component.
    More information, please refer to the link:
    http://technet.microsoft.com/en-us/library/ee513123(v=office.14).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • COPA extraction: RD155 No source could be found to answer the search query

    Hi Everyone,
    I'm trying to schedule an init. load for the new fiscal year from an Account-based 1_CO_PA** extractor. I've entered restrictions for Controlling Area (single entry) and Fiscal Period (PERIO) 001.2011 - 001.2025.
    When I try to schedule the init. load or even test the extraction in RSA3, I get the error message 'No source could be found to answer the search query'. I've checked my summarization levels and and they have the value '*' for all characteristics.
    If someone can provide an explanation for the error message, it would be most helpful.
    Thanks,
    Ram

    Hi Ram,
    This error is almost always caused by incomplete or incorrect customizing:
    In addition, the summarization level must have status 'ACTIVE' (this applies also to the search function in the maintenance transaction for CO-PA data sources,KEB0).                                                                               
    Please also review the SAP note 392635 which is release independent and has further information on the customizing and CO-PA extraction:                                                                               
    392635 - Information: Sources with BW extraction for account-based    
               CO-PA                                                        
    So please check your customizing and the note 392635 carefully in particular please pay attention to the following:                                                                               
    There has to be one (single)  summarization level that contains all characteristics (except for  the controlling area) with '*' in the   
    characteristics view in  transaction KEDV and has status 'active'.   
    After checking the above you need to replicate the datasource in the connected BW system and reactivate the transfer rules.               
    Best Regards,
    Des

Maybe you are looking for

  • Can i hook up a macbook pro to 2 HDMI monitors in the following way?

    Macbook pro 13 2011 thunderbolt okay so can i use: Mini Displayport  HDMI + HDMI to Dual DVI To 2 DVI monitors will this allow me to use them as one extended desktop? or will it mirror those two monitors together? id like to be able to use my macbook

  • How do I create high resolution graphics?

    Hello I'm working on a graphic image, but I'm using a bit of photography in it. My problem is that the .jpg I get from the Save as, is not large enough. If I had to start all over, should I create a larger document or is it alright to enlarge the ima

  • MBP very slow to pick up signal after waking from sleep

    my MBP 2.33 takes about a minute after wake-up is complete to pick up a signal from the extreme N station (sits right next to it).....my old G3 ibook takes about 5sec....does anyone have a fix? the same problem? it is really annoying....it takes almo

  • Asm storage doubts

    hi all, In our test env we have two database in a node with only one disk group which stores around 1.5 TB of data files. * Is that a good practice to store two DB data files in the same disk group. * If it is in same disk group what happens when we

  • Ccmuser phone guides

    Hi i have a cucm ver 8.6.20000 . when i goes to ccmuser page  in the user option >   device >   i see my phone (7961) and ander that we have "user guide" : download user guide. when i click on it  i get the pdf for this model this is fine . but when