Service PO problem

Hi guys,
In case of service master, we give a service group i.e. material group at the time of creation of service master.  But while creating PO we can give any other material group also at item-level data of PO.  Also material groups ia mandatory for service POs.  Can we get the value of material group directly from service master record to line-item data of PO?  If this is not possible, can we prevent users from giving different material group in line item of PO from the material group maintained in service master?
Also what is the importance of material group in service master?
Any clues?

material groups in Services can be used to trigger the condition records.
e.g say i am procuring the service having VAT as 4% and service tax 12.36%
so i can create material group as VAT4% and service Tax 12.36% services.
like wise i can maitain the group of services as i am doing for the group of material.
I think due to material code available and service(acivities u r creating can be used for anykind of service thats why material group of service master is not gettting copied in PO
because in PO ur giving service descriptrion whatever u want and then u r assgning the activities to that service.
regards,
sujit

Similar Messages

  • I updated to ios 5.1.1 and added icloud services. the problem is now whenever i connect my iphone to my PC, itunes does not recognize my phone. i need it to but it just does not connect..

    i updated to ios 5.1.1 and added icloud services. the problem is now whenever i connect my iphone to my PC, itunes does not recognize my phone. i need it to but it just does not connect..

    Try the standard fixes to rule out a software problem:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.
    If you still have the problem that points to a hardware problem. Yu can make an appointment at the the Genius Bar of an Apple store or try:
    fix for Home button

  • Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING

    hello colleagues,
    In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
    Error,
    Connect Diagnostics Agent
    The table does not contain any data
    Agent availables in all SLD
    SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
    Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
    Thanks

    OK, then pls follow below steps;
    - Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
    - Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
    - If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
    Let me know the results.
    Regards,
    Vivek

  • PeopleSoft Query Access Services security problems, in other words does QAS

    PeopleSoft Query Access Services security problems, in other words does QAS bypass PeopleSoft?

    Rod,
    Can you please post the entire contents of the dataserver summary screen...thanks.
    Typically the "No suitable driver exists" error is due to trying to connect to an unsupported DB version with the driver.  For example using the MSSQL 2000 driver to connect to MSSQL 2005, be sure that you have downloaded both the MSSQL 2000 (una2000.jar) and 2005 jars and have the proper classpaths specified.
    Sam

  • ConnectionServer cannot started - NT Service Initialization Problem

    When I startup a "Connection Server" for "Business Object Enterprise 12.0" under Windows XP Professional machine, following error raised.
    Could you tell me what is the problem. Thanks.
    Timestamp     ProcessID     ThreadID     Message
    [Wed May 20 09:30:21 2009]     6712     8100     Log: level=3 cat=1 msg=35100 p=ConnectionServer started
    [Wed May 20 09:30:21 2009]     6712     8100     trace message: Creating controller thread
    [Wed May 20 09:30:21 2009]     6712     8100     trace message: Waiting on monitor to initialize
    [Wed May 20 09:30:21 2009]     6712     2412     trace message: In service controller thread's run!
    [Wed May 20 09:30:21 2009]     6712     8100     trace message: SIServerController::waitingToInitialize
    [Wed May 20 09:30:21 2009]     6712     2412     trace message: SINTService::run enter
    [Wed May 20 09:30:36 2009]     6712     2412     trace message: SIServerController::initialize
    [Wed May 20 09:30:36 2009]     6712     2412     assert failure: (.\siservice.cpp:839). (false : StartServiceCtrlDispatcher: The operation completed successfully.
    [Wed May 20 09:30:36 2009]     6712     2412     Log: level=0 cat=14 msg=35500 p=NT Service Initialization Problem
    [Wed May 20 09:30:36 2009]     6712     2412     trace message: SINTService::run: Cannot start service control dispatcher

    Hi Thomas,
    I am having the same issue...I couldn't able to start CMS (Content Management services ) .
    Reducing the tomcat heap size doesn't help in my case....
    Regards, Anil

  • Search Service Application problems after upgrading from Foundation to Enterprise edition of SharePoint 2013

    Hi all. I have been searching for days for a solution to a problem I am having with SP2013 Enterprise edition.
    We recently upgraded from SP2013 Foundation to SP2013 Enterprise. After the upgrade, the search services are no longer working and we are receiving many application log entries indicating the following:
    Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (ea2019ef-bb9e-4efe-85ee-5d2307406f31).
    Reason: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Technical Support Details:
    System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()
       at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
    as well as:
    Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (ea2019ef-bb9e-4efe-85ee-5d2307406f31).
    Reason: The object you are trying to create already exists. Try again using a different name.  
    Technical Support Details:
    System.Runtime.InteropServices.COMException (0x80040D02): The object you are trying to create already exists. Try again using a different name.  
       at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()
       at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)
    I have tried to remove the search service application and recreate it, and even though the SharePoint Central Administration states that it was created successfully, I am still getting the same errors in the log. If I go to the Search Service Application
    Search Administration page, the "System Status" shows the following message:
    The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component '0359af35-0982-4ede-8838-b1d390e915bf' in search application 'Search Service Application' is in a good state and
    try again
    Additionally, under the "Search Application Topology" section, it states "Unable to retrieve topology component health states. This may be because the admin component is not up and running" which I assume is normal if the admin is not
    running.
    Does anyone know how I can resolve this problem? 
    Thanks!

    Hi Joaquin,
    According to your description, the error occurred when you re-created the Search Service Application.
    Based on the error message, I recommend to verify the things below:
       1. Check if the association between the Search Service Application proxy and the web application is configured.
    Please go to Central Administration > Application Management > Configured service application associations > Click Default to see if the Search Service application is checked.
       2. Change the app pool for the Search Service Application to SharePoint Web Services Default in the properties of the Search Service Application.
    Please go to Central Administration > Application Management > Manage service applications > Highlight the Search Service Application > Click Properties in the ribbon > Change
    the two app pool to SharePoint Web Services Default: App Pool For Search Admin Web Service and Application Pool for Search Query and Site Settings Web Service.
        3. Run PS command to check if the search admin timer job is enabled: Get-SPTimerJob
    job-application-server-admin-service | fl. If it is not enabled, use PS command to enabled it and then reset Internet Information Services: Enable-SPTimerJob job-application-server-admin-service.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Service entry problem when not accepted

    We have a problem when there are multiple service entries agains a PO. There are no problems when we do the first entry and accept. The problem happens when we do a second entry and the end user only saves and forgets to accept the SES. When they do an invoice against this unaccepted SES the system brings in the previous SES number, when this goes unnoticed the vendor gets paid twice for the same thing. Is there a way for SAP to look at the SES field in the invoice and determine that this SES number has already been paid? Thanks in advance.

    Hi Eric,
    please try the following: check in transaction XK02 the field "Check Flag for Double Invoices or Credit Memos" (LFB1-REPRF).
    Indicator which means that incoming invoices and credit memos are checked for double entries at the time of entry.
    In checking for duplicate invoices, the system compares the following characteristics by default:
    Vendor
    Currency
    Company code
    Gross amount of the invoice
    Reference document number
    Invoice document date
    If all of these characteristics are the same, the system issues a message that you can customize.
    The system only checks for duplicate invoices in Materials Management if you enter the reference document number upon entering the invoice.
    Of course if the invoice document date is different, there is no message M8108 issued. Please read also the notes 305201 and 308008.
    I would recommend you to use the service based invoice verification function (set the field EKPO-LEBRE to X) in the PO item.
    Regards,
    Edit

  • Service center problems

    Hello guys,
    I have a blackberry since march of this year, I bought it in a trip to LA and I have a lot of problems since the first day. Basically with the charging (only 77%) and the adjust of some basic screen issues. I have rebooted the software and I didn't have problems for the downloading and the installing. But the problem continuing, I can’t charge the battery above 77% and I can’t adjust the screen Brightness.
    Now I am living in Slovakia,where I think there is not any service center. I have spent two months with an incident open and in the US service center said me that my playbook could have a reparation in Spain, but I made a call to Spain phone number and the lady could not help me, I spent some days in phone calls. I also tried to reopen the service request but nothing happened. I received a notification saying me that the email could not be delivered, maybe the incidence was closed, but I can’t open a new one using the website.
    What can I do?
    Thanks a lot for your recommendations.
    Frank

    I would try this... While the Playbook is connected and charging via a known good wall outlet charger, I would touch the battery icon > Restart.
    You might try that a few times in succession to see if your charger will move past 77%.
    If not, then probably wiping and reloading the OS or using the debrick procedure to install the PlayBook OS fresh and new, might work. If you need help with either, please post back.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Autofs.service causing problems with gnome's save dialog boxes

    Recently I have been having a problem saving files to disk using the gnome save dialog box when autofs is running. Basically what happens is most of the folders on the right side of the save dialog disappear (see screenshot below) and remaining few become unresponsive when clicked. If I wait a few minutes the folders will eventually appear and work when clicked, but needless to say this is annoying.
    I can "fix" this  problem instantly by simply running systemctl stop autofs.service, but this is not a good solution because I like the convenience of mounting my  NFS shares on demand.

    Recently I have been having a problem saving files to disk using the gnome save dialog box when autofs is running. Basically what happens is most of the folders on the right side of the save dialog disappear (see screenshot below) and remaining few become unresponsive when clicked. If I wait a few minutes the folders will eventually appear and work when clicked, but needless to say this is annoying.
    I can "fix" this  problem instantly by simply running systemctl stop autofs.service, but this is not a good solution because I like the convenience of mounting my  NFS shares on demand.

  • Service template problem - Unable to perform the job because one or more of the selected objects are locked by another job - ID 2606

    Hello,
    I’ve finally managed to deploy my first guest cluster with a shared VHDX using a service template. 
    So, I now want to try and update my service template.  However, whenever I try to do anything with it, in the services section, I receive the error:
    Unable to perform the job because one or more of the selected objects are locked by another job.  To find out which job is locking the object, in the jobs view, group by status, and find the running or cancelling job for the object.  ID 2606
    Well I tried that and there doesn’t seem to be a job locking the object.  Both the cluster nodes appear to be up and running, and I can’t see a problem with it at all.  I tried running the following query in SQL:
    SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
    but all this gives me is an error that says - conversion failed when converting from a character string to uniqueidentifier msg 8169, level 16, State 2, Line 1
    I'm no SQL expert as you can probably tell, but I'd prefer not to deploy another service template in case this issue occurs again.
    Can anyone help?

    No one else had this?

  • Zend AMF Data Service Return Problem

    Hi Folks,
    I am working with FB4 and Zend AMF/PHP and MySQL.  I began integrating the PHP stuff using the great article by Mihai Corlan called 'Working in Flash Builder 4 with Flex and PHP.  I followed all the steps exactly, aside from creating my own app-specific PHP classes and functions, etc...  I 'hooked up' the Zend stuff just like the article, created a text datagrid, just like the article, and viola!, it worked.  I then tweaked it a bit and interwove it into my 'real' component.  So far, so good.
    Then I created a second PHP class with a different 'get data' type of function.  It queries a different table in MySQL, but is essentially the 'same' as the query/function in the initial PHP class.
    In FB, in the Data Services window, I choose the 'Connect to Data/Services' function, just like the first time.  I then find/select my PHP class file and FB 'interrogates it' enough to show me the function that exists in the class.  I 'finish' the operation and it adds a new 'service' to the list of services in that window.  Again, so far, so good.
    The problem comes when I try to 'test' the service or 'configure return types' (which basically requires a 'test' operation anyway).  I can enter the 'input' params just fine, but when I try to execute the call, I get the following error:
    InvocationTargetException:There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
    Reason: An error occured while reading response sent by server. Try encoding the response suitably before sending it. e.g. If a database column contains UTF-8 characters then use utf8_encode() to encode its value before returning it from the operation.
    I don't know where to go after this.  Again - the 2nd PHP class is essentially identical to the 1st.  The function in it is essentially identical, differing only by the input params, the name of the function and the actual SQL it sends to MySQL.  There is no special text, no special characters, no image stuff, nothing.  I do not 'encode' the results of the function in the first class - in fact the code in the second class is practically identical to the first.  I do not know what the error is talking about.  My guess is that it's more of a generic message.
    I can debug the PHP code just fine from within a seperate instance of Eclipse.  The function runs/returns just fine - an array of PHP-defined objects (simple strings).
    Any insights or advice would be welcomed.   Thank you,
    -David Baron

    Thank Jorge, but that was not the issue, though, it may be related.
    I checked the mySQL my.ini file, and there was already an entry for:
    [mysql]
    default-character-set=utf8
    I added the 'default-collation=utf8_unicode_ci', like you suggested, but that didn't do anything.
    I checked the Apache httpd.conf file, and added the following line 'under' the "DefaultType text/plain" line:
    AddDefaultCharset UTF-8    but that did not do anything.
    I checked my mySQL database, all the tables involved.  They were already at UTF-8 (default).  However, some of the 'varchar' columns were defined as 'latin 1-default collation'.   I changed them all to utf-8 (default table collation), but that did not help either.
    Finally, I found the problem, though I don't really know if it is "my" problem, or ZendAMF's problem, or Adobe's problem.
    It turned out that 'some' of my data had a 'bad' character in it.  Specifically, I had 'copied and pasted' some data from MS Word into mySQL Workbench.  Some of the data included the 'elipsis' character - you know, when you type "..." (dot dot dot) in MS Word, it replaces the three periods with a single elipsis character.  Although PHP could easily query and assemble this data into a nice object array, I noticed that that character showed up (in PHP's debugger) as a 'box' character, meaning "bad character".  Thus, I guess, Zend AMF and/or FlashBuilder could not 'bring over' and/or deal with this type of character.  As soon as I replace the few instances of that character with three periods, everything began to work perfectly.
    So... what to do about this?  I thought I was through with silly encoding/decoding of data when I left JavaScript and HTML behind in moving to FlashBuilder technology.  Am I really going to have to worry about this kind of thing?  Or might this be a bug/deficiency somewhere in the stack?
    Thanks for your help,
    -David

  • Web Service Authentication problem

    Hi
    I have created a portal service and exposed this service as a webservice. I am consuming this webservice in webdynpro.  Portal service contains 2 simple methods putdata() and getdatat().
    When i access the webservice i am getting the following error.
    "javax.xml.rpc.soap.SOAPFaultException: The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.GlobalData or the service was not found"
    My Enterprise portal server is configured for SSO to back end R/3 system. I have checked for portal service availability and it is fine.
    My Webdynpro and Portal are running on different machines. EP is running on AIX with SP11.
    Any help please
    Regards
    NagaKishore V

    Hi NagaKishore,
    There had been no activity on this thread.Did you find the solution to your problem? Even I am getting the same exception while trying to access the webservice I created.

  • OSB - Business Service Import Problem

    Hi,
    When I import my OSB project (from an Oracle Service Bus Configuration .jar) for the first time, it imports my business service perfectly. However, in the second half when the project already exists on the workspace, new tags are added to the xml even though I have not made any changes in the business service.
    Thats my problem:
    First Import:
    <ser:coreEntry isProxy="false" isEnabled="true">
    After Second Import:
    <ser:coreEntry isProxy="false" isEnabled="true" isTracingEnabled="false">
    and a few other tags are added to the file:
    <ser:throttling enabled="false">
    <ser:capacity>0</ser:capacity>
    <ser:maxQueueLength>0</ser:maxQueueLength>
    <ser:timeToLive>0</ser:timeToLive>
    </ser:throttling>
    <tran:delay-interval-configuration isEnabled="false">
    <tran:delay-interval>0</tran:delay-interval>
    </tran:delay-interval-configuration>
    Any help on how to import the project without these new tags in my business service will be very welcome.
    Regards,
    Ricardo Azevedo

    you can influence the amount of info actually imported choosing to override operational settings, environment setting etc (I can't remember by heart and I am too lazy to start my server now and verify)
    Anyway unless this impacts your operations I would not be too worried that some defaults are explicitly stated in the xml. Surely if you import in Production a BS with "message tracing" on, this can affect seriously your performance.

  • Web service call problem with complex types input

    We are trying to call a web service and pass as parameter
    some complex types. When invoking the web service everything works
    well on flex side, but on the server side the input parameters we
    get from flex are not correct - complex type is removed and the
    elements of the complex type are sent. See the example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:WebService id="ws_id" wsdl="link" useProxy="false"
    fault="wsFault(event)">
    <mx:operation id="op_id" name="op"
    result="wsResult(event)">
    <mx:request>
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    </mx:Application>
    on server side we get this:
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameters>
    Instead of :
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    Any idea how is it possible to send complex type as web
    service input from flex ?

    Hi,
    I also have similar type of problem where I need to invoke a Web service with Complex input parameters.
    I followed Susan's blog but I stuck at a point where methos getItem is created.
    Can anyone tell me how to get that method for my requirement.
    If possible can you guys share your solutions here.
    Thanks in advance.

  • Adobe document services communication problem

    Hello SDN
    a challenge:
    we have some problems with the Adobe Document Services. we have installed acording to the installationguide and checked this several times. However when we try to run the program FP_PDF_TEST_00 (which is a SAP-provided test program) it fails with the following error:
    Test Program: Version Information (for Analysis Only)
    SYSTEM ERROR
    ERROR CODE       :     100.101
    ERROR MESSAGE    :  SOAP Runtime Exception: CSoapExceptionTransport : HTTP response contains unexpected content-type
    Error in SOAP framework: SOAP Runtime Exception: CSoapExceptionTransport : HTTP response contains unexpected content-type (&ERRIDENT&, 100.101).
    No version information available
    This is ine of the symptoms -and we fell if we can solve this many of our our other problems will disaapear. (we cant preview, print and so on)
    Any ideas?

    Hey gurus.
                      i am also facing the same issue about ADS in Abap and java unable to run the interactive forms and getting this error
    Error when processing your request
    What has happened?
    The URL http://sapserver:8001/sap/bc/webdynpro/sap/zsap_example1 was not called due to an error.
    Note
    The following error text was processed in the system DM0 : Die URL enthält keine vollständige Domainangabe (sapserver statt sapserver.).
    The error occurred on the application server sapserver_DM0_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DM0 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapserver_DM0_01 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server sapserver_DM0_01 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 800 -u: SAPUSER -l: E -s: DM0 -i: sapserver_DM0_01 -w: 0 -d: 20080712 -t: 100806 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

  • "insufficient existing resources to complete requested service" IO problem?

    Hi, my application reads from a repository of 1 million documents and then do some processing (very simple and requires little memory or computation) then outputs to another repository, where output files are placed in a flat structure, i.e., 1 million files in a single folder, not organised into any subfolders. I know this is a bad design and Im about to change it, but not sure if this is the cause of my problem (see following).
    My program haulted and threw exception *"insufficent existing resources to complete requested service"* every time it reached about 800k documents. And after I got this exception, my WinXP OS starts to misbehave, like sometimes I cannot open applications properly, and sometimes memory reference address issues, and once I tried to run JAVA IDE (intellij 7.0) again and I got this message:
    "ERROR: transport error 202: recv failed during handshake: No buffer space available (maximum connections reached?)"
    Also I tried to list all open files in a console, but the command hangs and without responding, looks like there are too many things to list or too little resources available to complete the operation.
    All these problems go away if I restart system.
    I have confirmed the following possible causes and they do not apply:
    - unclosed IO's , I checked the code and all IO operations properly instantiated and closed;
    - memory leak, java profiler shows memory consumption well below allocated max, and very stable (test on 100k documents, not whole of 1million though)
    I do not have any clue now as how this problem happend and how I can solve it. I wonder if placing all 800k documetns in a single folder causes problem? I know that if I try to call File.listFiles() on a folder with too many files that will cause memory problem. But I didnt have this kind of method call at all, but simply writing a particular file to that folder. Does this cause problem too? I am about to change this and to organise the output folder to subfolders, but is this the right dirrection to take?
    I am sorry that my description may be insufficient to truely debug the problem, but that is all I can get and it does look strange to myself too. Please could you throw in your ideas - any thoughts about the exception message, even any guess on what would be causes to this etc...
    Any thoughts are very much appreciated!
    Thanks so much inadvance!

    Hi Paul, thanks. I have did as you suggested, implemented a standalone program to test the issue. What I did is, I wrote a simple program which extends Thread, and creates 1 million files and write empty content and store to disk. Then I tested with 4 instances of such class, i.e., 4 threads writing 4 milllion files in total to disk - but to different locations, so there's no writing-to-same-file issues. And the system crashes at certain point.
    I then did another test to make the problem clearer. instead of running the 4 threads in parallel, I only create a new thread after previous one has completed. and this time still it crashes for the same reason, and at about 2.5million files have been created.
    The crash looks severe, as it simply crashes the system and I cannot do anything but to force shut down my pc. Then a restart asks to check disk integrity, and reported alot messages like :
    "deleting orphaned file xyx.xml ......" from drive X where X is the drive that the files are written to.
    Here I attach my testing code:
    public class TestClass extends Thread{
    public void process (String inputPath, String outputRootPath){
    FileStoreProxy p=new FileStoreProxy(outputRootPath);   // a FileStoreProxy keeps record of a root directory where files are created and
    // written to. It also creates subfolder (File.mkdirs()) such that every 10000 files
    //are stored in a subfolder under the root directory. The class doesnt do any IO
    List<File> folders = FileLoader.getFolderRecursive(new File(inputPath)); // this method loads all folders from inputPath. InputPath is a disk
    // directory that contains more than 1million xml files
    for (File folder : folders) {
      File[] files = folder.listFiles();
        for (File f : files) {
          if (f.isFile()) {
             FileOutputStream stream = null;
             try {
                  File newFile = new File(p.nextBestLocation()+"/"+f.getName());  //basically this line creates a new file whose path is composed by
    //the directory returned by FileStoreProxy, plus the filename as the input filename.
                  stream = new FileOutputStream(newFile, false);          // create an outputstream
                  stream.write("test".getBytes());                                  //write to the file
             catch (IOException ioe) {
                e.printStackTrace()
             finally {
                if (stream != null) {
                   try {
                      stream.close();
                      stream = null;
                   } catch (IOException ioe) {
                     e.printStackTrace();
    }And here is the class which creates four threads
    TestClass tc1 = new TesetClass;
    tc1.process("input_file_repository","f:/temp/outputpath1");
    while (!tc1.isFinished()){        // isFinished() is a method in TestClass, which tells whehter the thread has finished running.
    TestClass tc2 = new TesetClass;
    tc2.process("input_file_repository","f:/temp/outputpath2");
    while (!tc2.isFinished()){        // isFinished() is a method in TestClass, which tells whehter the thread has finished running.
    TestClass tc3 = new TesetClass;
    tc3.process("input_file_repository","f:/temp/outputpath3");
    while (!tc3.isFinished()){        // isFinished() is a method in TestClass, which tells whehter the thread has finished running.
    TestClass tc4 = new TesetClass;
    tc4.process("input_file_repository","f:/temp/outputpath4");
    while (!tc4.isFinished()){        // isFinished() is a method in TestClass, which tells whehter the thread has finished running.
    }Hope this helps... I had a feeling that the cause of the problem is that File IO is doing too fast such that some resources (file handle for example?) are not released in time and are floating somewhere, as a result, after some point it crashes. And later on the OS disk check reports that there are orphan files which are created by the program.
    Any ideas much appreciated! thanks!

Maybe you are looking for