Trex: Preparation failed: index operation

Hi gurus,
We have a Trex 7.0 server working on a seperate server. When I look at Index Administration, the statuses of the indexes are all green. But when i look at the indexing monitor, one of our indexes is in red status, It says Indexed:13342, Errors: 15610.
When I click on the Errors link, It says: "Trex: Preparation failed: index operation".
I searched the trace files but couldn't find sthg useful.
Any suggesstions?
Tolga

Hi Tolga,
please check your installation with the information mentioned by Jochen Goeeninger (long post) in the following thread Trex HTTP Server not seen in Portal
Furthermore try to open one of the documents you are trying to index via HTTP from the TREX Server.
With the result of that, I would suggest to open support message under http://service.sap.com/message
Hope this helps,
Robert

Similar Messages

  • TREX: Preparation Failed in document index

    Hi,
    I have defined an index with one datasource and I get an error in 317 documents, while 204 documents are OK.
    Error are due to 6401 code error (HTTP Status Code 401 : Unauthorized) but I don't know how to solve it. Everyone has full control to datasource (is a development environment).
    Any suggestion?
    Thanks and best regards!
    Damian

    Hi All,
    When go this patha <b>SysAdmin>Monitoring>IndexingMonitor</b> iam getting the error.
    Trex: Preparation failed: index operation.
    Could anybody tell me what could be the reason...i had give host name in URL generator also. 
    <b>SysAdmin>SysConfig>KM--> Index administrator</b> i can able to see all Acive and Gree tick mark for all categeory..but indexing was not working for me...

  • TREX Preparation Failed exception

    Hello All,
    I am facing an issue with TREX wherein the documents not being indexed properly.
    The TREX monitor shows all status as green but when I check the 'Display Queue Entries' from
    System Admin -> Monitoring -> Knowledge Management -> TREX Monitor, I see a message as:
    Return Code = 6500
    Return Message = HTTP Status Code 500: Internal Server Error
    Document status = Preparation failed.
    Please guide me to resolve this.
    Awaiting Reply.
    Regards,
    Ritu

    Hello Martin,
    Please excuse me for my late reply.
    I created a test repository, created an index for it called Test_Index, attached it with a KM Data Source, uploaded 3 .txt files. All these txt files have size within 10 KB.
    1. When I search using this Test_Index, it does not return any txt file. There are few indexes, so I selected my index to search.
    I could successfully open the text file on the browser.
    2. Checked DefaultTrace logs and found exception related to another index. Details are:
    TaxonomyNamespaceManager.getChildren: Error because the index with name Rama_test1 is not available. Probably you have to delete old taxonomy data in the taxdata repository - com.sapportals.wcm.WcmException: index with index id Rama_test1 doesn't exist!
    But 'Rama_test1' index does exist. It is available when I click on 'Show Options -> Search Scope'
    on Search page.
    3. We also have an index which is connected to 'Livelink' system.
    I get an exception for this, saying - the repository returned no root collection (null): livelink
    4. com.sapportals.wcm.repository.IOErrorException: sending PROPFIND to remote server
         at com.sapportals.wcm.repository.ResourceException.fillInStackTrace(ResourceException.java:399)
    5. Lastly, I see an exception with severity=fatal saying:
    exc: /SalesManual - com.sapportals.wcm.repository.InvalidUriException: Invalid RID: No repository manager found for prefix: /SalesManual
    *     at com.sapportals.wcm.repository.ResourceException.fillInStackTrace(ResourceException.java:399)*
    Location:  com.sapportals.wcm.service.reporting.walker.HierarchyWalker
    Any ideas on these?
    Awaiting Reply.
    Regards,
    Ritu

  • Preparation failed: Indexing error

    Dear All
    We have one file system repository on which an index has been created and data sources and Taxonomy created. When we search for the documents in the repository , it says "No documents found" .
    If i check the "Indexing Monitor" ,there is a "Preparation failed error" for the Index with return code "Preprocessor: failed".
    Another index created is working fine.
    Can you please let me know if i am missing on something and how to go about solving this error.
    Regards
    Jayesh

    Hi Jayesh,
    please check if you comply with all in the following thread:
    Trex HTTP Server not seen in Portal
    (the long post by Jochen Goeeninger)
    And please try to open one of the documents you are trying to index via HTTP from the TREX Server.
    With the result of that, please log a support message under http://service.sap.com/message
    Regards,
    Karsten

  • TREX: Preparation Failed with return code  14047

    Dear all,
    For files bigger than 15 MB Indexing is not happening. Document status is "Preparation Failed".
    We are on EP 7.0 SP 16, TREX 7.0.
    How can we solve this problem?
    Best Regards,
    Aparnna Prasad

    Dear Aparnna,
    please check the version of the TREX you use (file TREXVersion.html). If the TREX is older than Rev 30 update to the newest one because of the new filters version.
    Correct the following:
    go to the /usr/sap/<SID>/TRX<Nr>/exe (you need to set the TREX environment with TREXSettings.sh first) and execute :
    filter.x <file name> <otuputfilename.htm> for example:
    filter.x /path/to/file.xls /path/to/file.xls.htm
    What's the size of the output file? If it's more than 20 MB
    please increase parameter maxfiltersize (TREXFilter.ini) and index document again.
    Regards,
    Tushar

  • TREX preprocessing failed, HTTP Status Code 401

    Hello everybody!
    I'm using SAP NetWeaver 7.0 (2004s), TREX 7.0 on Win2003 Server.
    I'm trying to index files, but it doesn't work for files bigger than 10KB. I know that for these documents > 10KB only the URI is transmitted to TREX. So it seems the problem is based on the communication between TREX and portal.
    Error messages:
    TREX monitor: preprocessing failed, error number: 6401, error message: HTTP Status Code 401: Unauthorized
    Indexmonitor: Trex: Preparation failed: index operation
    - all TREX server status icons are green.
    - I'm not using any SSL communication.
    - indexing doesn't work for any data sources, neither web repositories nor KM content.
    - I've checked the host and alternative host parameter in the URL generator service (both http://<myservername>:50100).
    - I am able to access the URL of the resource directly.
    - I've added the "unescape_url=no" entry in the TREXPreprocessor.ini like SAP Note 650521 says.
    - my system ID is properly set.
    - the password of user index_service does not expire.
    Does anybody have any further ideas?
    Many thanks in advance
    Steffi, working on it for days...

    Hello Robert and Steffi,
    With the help of SAP support, I could solve the problem !
    Certificate for SAPLogonTickets had expired, so authentication was no longer possible. Solution : recreated the certificates with Visual Admin.
    In Visual Admin, go to "Key Storage" service, then choose "TicketKeystore" view.
    Delete SAPLogonTicketKeypair and SAPLogonTicketKeypair-cert certificates (or rename them in a first time).
    Then recreate "SAPLogonTicketKeypair" :
    - fill the Entry Name with "SAPLogonTicketKeypair",
    - fill "Common Name" with the value from the previous ticket
    - check "Store Certificate" (this will automatically create SAPLogonTicketKeypair-cert)
    - choose "DSA" as Algorithm
    and click on "Generate"
    That worked fine for us on two platforms.
    Hope that gonna help...
    Nicolas

  • TREX is not indexing certain excel files

    Hi Experts,
    TREX is not indexing certain excel-files correctly. I get a "no message found error" (14047) Trex: Preparation failed: index operation by certain excel files - but not by all. I found out what they have in common: some have filters activated and some have a lot of columns or rows.
    Is there any way to avoid these errors and index them correctly?
    TREX: 7.0.47
    Portal: 7.01 SP7
    Thank you in advance
    Best Regards
    Norman

    Hi Norman,
    Did you review note 1528705?  It has a fix for this issue.
    Best regards,
    Duncan

  • Trex Monitor - Preparation Failed

    Hi,
      I have configured a file system repository that I'm trying to index. I have installed KM Pack 3, and the crawler is working fine. But in indexing all the documents fail. Here are the queue details, same for all documents.
    Return Code:     13502
    Return Message:  HTTP-Proxy: BadGateway
    Document Status: Preparation Failed
    Action:          Index
    Retry Count:     3
    The repository seems to be working, as in I can access the files of the repository from the KM Content Tab.
    Any ideas as to what am i doing wrong?
    Regards,
    Harsh

    Hi Nick,
                I have also came across a similar type of problem.
    In my case some of the documents are getting Indexed,
    while few has status as "preparation failed."
    Here are the exact error details:
    <b>Return Code </b>     <u>Return Message </u>                 <b> Document Status </b>     <u>Action</u> <b>Retry Count</b>
    <b>16057</b>              <u>SSL: rc=-57 ssl_connect </u>     <b>Prep. Failed      </b>             <u>Index  </u>       <b> 3</b>
    Return Code      Return Message                   Document Status             Action Retry Count
    8002               Unknown Hostname               Preparation Failed         Index      3
    Do you have any idea what could be the reason?
    Regards
    Sunil Kulkarni

  • Preparation failed in trex when using standard Who's who iview

    Hi,
    I have encountered a problem with the standard Who's who iview, which makes a simple search in the ume impossible.
    All users "preparation fails" with the following error from Trex monitor > Display queue entries:
    Document ID: /ume/users/USER.PRIVATE_DATASOURCE.un%3Ar5mas.usr, Return Code: 16040, Return Message: SSL: rc=-40 pse_error, Document Status: Prepration failed, Action: Index, Retry Count: 3.
    I'm working on Netweaver '04, stack 9, installed from rapid installer.
    Any help is greatly appreciated.
    Regards,
    Martin
    Message was edited by: Martin Søgaard

    Just in case anyone happens to stumble across this thread via search, the error 16040 means that your user doesn't have permission to read the PSE it's trying to open. You'll get errors like this in one of your trace files:
    [Thr 1224] =================================================
    [Thr 1224] = SSL Initialization  on  PC with Windows NT
    [Thr 1224] =   (710_REL,Jul 15 2010,mt,ascii,SAP_UC/size_t/void* = 8/64/64)
    [Thr 1224] =   found SAPCRYPTOLIB  5.5.5C pl36  (Jul  3 2013) MT,[aesni],NB
    [Thr 1224] =   current UserID: SAPDOMAIN\SAPServiceSID
    [Thr 1224] =   found SECUDIR environment variable
    [Thr 1224] =   using SECUDIR=E:\usr\sap\SID\TRX00\sec
    [Thr 1224] *** ERROR =>   secudessl_Create_SSL_CTX():  PSE "SAPSSLS.pse" not found! [ssslsecu.c   1354]
    [Thr 1224] secudessl_Create_SSL_CTX: SSL_CTX_set_default_pse_by_name() failed --
    [Thr 1224]   secude_error 1281 (0x00000501) = "open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned"
    [Thr 1224] >> ---------- Begin of Secude-SSL Errorstack ---------- >>
    [Thr 1224] ERROR in SSL_CTX_set_default_pse_by_name: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in ssl_set_pse: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in af_open: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in secsw_open: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in secsw_open_pse_or_extension: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in sec_get_PSEtype: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in aux_read_PSEFile: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] ERROR in aux_file2OctetString: (1281/0x0501) open("E:\usr\sap\SID\TRX00\sec\SAPSSLS.pse") returned : "Permission denied"
    [Thr 1224] << ---------- End of Secude-SSL Errorstack ----------
    [Thr 1224] *** ERROR => SapISSLAddCredential(): Error SSSLERR_PSE_ERROR trying to create SERVER Credential
            for "SAPSSLS.pse" [ssslxxi.c    2278]
    [Thr 1224] *** ERROR => Initialization of SSL library failed -- NO SSL available!
    [Thr 1224] =================================================

  • Can't rebuid index for failed index

    Hi,
    I got a kind of indexing failure for certain reason, for example, using too long name of dot-notation to specifying a object attribute for indexing. Then I drop the failed index by the following statement:
    drop index myIdx force;
    Then try to re-create the index:
    CREATE INDEX myIdx on test(Descp.FUNC_SUM.FNAME)
    indextype is ctxsys.context
    parameters ('datastore ExpSeq_Summary_Dir
    filter ctxsys.null_filter');
    At this time, the following error happened:
    CREATE INDEX ESIdx on test(DESCP.FUNC_SUM.FNAME)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-10516: failed to perform DDL operation due to an Oracle error
    DRG-50857: oracle error in driddl.PolicyCreate
    ORA-00001: unique constraint (CTXSYS.DRC$IDX_COLSPEC) violated
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 78
    ORA-06512: at line 1
    It seems always that way if an indexing failed, the index name can't be used any more, even if you do force to drop it.
    Do anybody ever got and know the answer?
    Thanks.

    You need to delete the entry in dr$index table owned by ctxsys for the index you are trying to rebuild. Under certain circumstances this gets left behind and the force option also fails to remove it. Just delete it and you should be able to rebuild the index ok.

  • How can I configure ReFS to NOT fail read operations when a checksum error is detected (on non-Storage-Spaces volumes where data integrity streams are enabled)?

    According to William Stanek, in his Windows Server 2012 R2 Inside Out: Configuration, Storage & Essentials book, this is apparently possible: (pg. 615 - here it is on Google Books: https://books.google.ca/books?id=0IyfBAAAQBAJ&pg=PT819&lpg=PT819&dq=read+operation )
        Integrity can be enabled when the system is not running on Storage Spaces. When
        integrity is enabled and ReFS detects a checksum mismatch, ReFS logs an event and
        fails the read operation by default. If you don’t want the read operation to fail, you
        can configure ReFS to continue with the read operation. A related event will be logged
        regardless.
    So then how do I configure it to do that???
    (And just to make it super-clear, I'm NOT using Storage Spaces, so there is no redundancy via mirroring/parity, and I'm not expecting any file repair - just detection of corruption. It's just a basic volume formatted with ReFS and
    with integrity streams enabled, via format E: /fs:ReFS /i:enabled
    For those who want more details, here's the situation: 
    I try to perform a read operation on a file with corrupted data (purposely done for testing using a low-level disk editor), I get a the following error message:
    And an event ID 133 from ReFSv1 gets logged in the System log:
    Clicking "Try Again" just brings up the same message, and clicking "Skip" skips the operation entirely.
    This is indeed the correct default behaviour.
    What I want instead is for the read operation to be allowed to complete, with corrupt data and all, and ONLY for the event to be logged. And according to William Stanek, this is supposed to be configurable somewhere - and after hours of searching, I haven't
    been able to find anything.

    Hi Tommy,
    >>How can I configure ReFS to NOT fail read operations when a checksum error is detected
    We can use PowerShell command Set-FileIntegrity to configure this. The specific parameter for controlling this behavior is
    -Enforce <Boolean>which indicates whether to enable blocking access to a file if integrity streams do not match the data.  
    Regarding this point, the following article can be referred to as reference.
    Set-FileIntegrity
    https://technet.microsoft.com/en-us/library/jj218351.aspx
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • The share operation "master file" has failed. the operation could not be completed because an error occurred creating Frame 93164 (error-1). how can i find the frame?

    The share operation "master file" has failed. the operation could not be completed because an error occurred creating Frame 93164 (error-1). how can i find the frame?

    https://discussions.apple.com/thread/6219522

  • Please help i can't share my project I did try in all of them and it doesnt work it apears like that........ The share operation Master File has failed The operation could not be completed because an error occurred when creating frame 608 (error -1). and

    I did try in all of them and it doesnt work it apears like that........
    The share operation Master File has failed
    The operation could not be completed because an error occurred when creating frame 608 (error -1).
    and i dont know what to do plese hlp me....
    Re: when i try to share my project to quicktime aroun 50% appears error -1 and i can't share it what to do please help 

    Double post…

  • Web Service execution failed for operation: ReadLogFile

    Hello,
    im getting the following error message in almost all of my Diagnostic Agent log files:
    [MAIJobObserver] ERROR occurred for metric collection
    00000000000000000019[com.sap.smd.mai.model.collector.SAPControlWSCollector].
    [EXCEPTION]
    com.sap.smd.mai.model.collector.CollectorException:
    [SAPControlWSCollector.collect] Web Service execution failed for operation:
    ReadLogFile. Collector : [SAPControlWSCollector]
    Id: 00000000000000000019,
    SID: EPX, instance number:00
    at
    com.sap.smd.mai.model.collector.SAPControlWSCollector.collect(SAPControlWSCollector.java:200)
    at
    com.sap.smd.mai.job.MetricJobRunner.run(MetricJobRunner.java:25)
    at
    com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
    at
    com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:785)
    at
    java.lang.Thread.run(Thread.java:722)
    Caused by: java.rmi.RemoteException:
    Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:http://<hostname>:50013/SAPControl.cgi
    I checked on SAP note 1563660 - sapcontrol, <sid>adm authorization issues (SUM) and confirmed, that ALL installations of the "sapuxuserchk" program are set with "chown root.sapsys" and "chmod u+s,o-rwx". I restarted the diagnostic Agent aftwards.
    I also checked on host_profile an made sure, that the parameter "service/admin_users = daaadm" is set.
    Still I get the above error messages, so I am at a loss what else to do...
    A lot of thanks for your Support !
    Best regards,
    Thorsten

    Hi Thorsten,
    Please check the user used for registration of Diagnostic agent to Solution Manager has appropriate roles assigned (e.g. user SMD_ADMIN)
    Also please update to latest patch of SAP Host agent and then try again.
    Hope this helps
    Thanks & Regards,
    Nisha

  • [Solved] Pacman preparation failed

    I'm trying a new installation from a USB key and it fails on the Package Selection phase. The error message I get on tty7 is:
        Execute(): worker_package_list exit state was 1
    More info:
    - arch is x86_64
    - I'm installing from a USB stick on a laptop that has been running x32 arch for at least a year (it's a core2 cpu)
    - I've checked and double-checked the md5sum of the iso and the image on the stick
    - I'm using a core iso - no network access
    - I select the local core repo when running aif
    - I can see all the packages in /repo/core/x86_64/{core,any}
    - I've read the aif bash scripts but so far I've been unable to see what the problem might be
    I've read all I've found about the subject (there are many threads on this problem), but nothing that describes my exact situation; nothing has helped me. If somebody has any pointers, I'll be grateful!
    -- buo
    P.S: I've solved this problem; here's the solution in case anyone else encounters something similar. My drive was already partitioned and formatted, so I was telling aif to leave it alone. After I allowed it to reformat the root partition, the problem went away.
    Last edited by buo (2012-05-25 15:50:26)

    I get an error, "pacman preparation failed. check /dev/tty7 for errors"
    did you?

Maybe you are looking for