Task 1: Testing .xml Files on a TEST Instance Without Creating Time Sheets
Test some .xml files on a TEST instance, as follows:
-
For testing purposes, create a project with tasks and integrate the project with Time Management such that actuals entered for tasks on time sheets are reflected in the project. See the Project Management User Guide.
-
For testing purposes, create one or more
.xmlfiles, each with one or two time sheets, for one or two resources. For at least one time sheet line, include data for time logged against a task in the project that is integrated with Time Management.Make sure the time sheet data in each file conforms to the formats specified in the
timeConversion.xsdfile. Make sure all the.xmlfiles containing the time sheets are in the same directory, and note the path to that directory. -
Run the script in test mode to verify the test
.xmlfiles on the TEST instance. In test mode, no time sheets are created, but logs describing errors that can be detected in the.xmlfiles are created. See Run the Time Sheet Data Importer Script.You can abort the script at any time by pressing
Q+EnterorE+Enter.The file the script is operating on will be left in its current location and indicated as aborted in the main progress log and in theitg_tm_data_loader_progressdatabase table. -
When the script completes, review the logs to identify specific or systematic errors that should be corrected in the
.xmlfiles.The
.xmlfiles, unchanged, are moved to subdirectories namedSUCCESS, PARTIAL,andFAILURE,and copies that include only the time sheet data that caused failures are added to the resubmissions subdirectory. For more information, see Files Generated While Running the Time Sheet Data Importer. -
To correct the original
.xmlfiles that were moved to thePARTIALandFAILUREsubdirectories:-
Use the error logs and the data in the
resubmissionssubdirectory to understand what to correct. -
Correct the original
.xmlfiles in thePARTIALandFAILUREsubdirectories. -
Move those corrected
.xmlfiles back to the original directory you used when you ran the script (see step 2). -
Delete the files in the
resubmissionssubdirectory.
-
-
Starting at step 2, repeatedly run the script in test mode against corrected source
.xmlfiles until all errors in the files are corrected, that is, until the script moves all of the.xmlfiles to theSUCCESSsubdirectory. -
Repeat this procedure with increasingly complex
.xmldata representing time sheets, until the script options and the variety of time sheet data applicable to your business have been tested and corrected. -
When all the
.xmlfiles are in theSUCCESSsubdirectory, move them back to the original directory you used in step 2 to prepare to create test time sheets from them.

