Examining the log file
When importing or exporting, Content Porter produces a log file (or appends to an existing one) which you can analyze for failed items in an export or import.
The log file is created in the location specified in the general settings. Log file names have the format CP_<process>_<datetime>.log, where <process> is either import, export or undo, and <datetime> is the date and time at which the log was created (if separate log files are being made).
The log file contains:
- a sequence of log messages, each starting with a date/time tag and an indication of the log level (Warning, Information, etc) of the message. A log message may spread across multiple lines.
- a line of equal signs ('=') followed by lines indicating the start and end times of the process that was executed
- a line 'Summary' followed by a line of equal signs
- a summary of the operations performed during this import or export
- a final log message
Here is a sample of a log file, with the log level set to log status, error, and information messages (lines wrapped for readability).
3/19/2009 8:57:46 AM [Information] Starting new Import process with
ID b759d983e79348e6bbc369775525f86b
3/19/2009 8:57:47 AM [Information] Resolving item mappings
3/19/2009 8:57:47 AM [Information] Mappings resolving started
3/19/2009 8:57:48 AM [Information] Mappings resolving finished
3/19/2009 8:57:48 AM [Information] Discovering potential problems
3/19/2009 8:57:48 AM [Information] Problems discovery started
3/19/2009 8:57:48 AM [Information] Checking existence of items that
are absent in the package.
3/19/2009 8:57:48 AM [Information] Checking if all items can be
imported.
3/19/2009 8:57:51 AM [Warning] The
"/webdav/Test/Building Blocks/simple1.xml" item is checked out and could
not be updated.
3/19/2009 8:57:51 AM [Information] Problems discovery finished
3/19/2009 8:57:51 AM [Information] Synchronizing content against
Schemas
3/19/2009 8:57:51 AM [Information] Start synchronizing content
3/19/2009 8:57:51 AM [Warning] The element 'Content' in
namespace 'uuid:A40A863C-6BCD-45FC-A5B7-A23397EF9817' has invalid child
element 'ID' in namespace 'uuid:A40A863C-6BCD-45FC-A5B7-A23397EF9817'.
List of possible elements expected: 'Title' in namespace
'uuid:A40A863C-6BCD-45FC-A5B7-A23397EF9817'.
3/19/2009 8:57:51 AM [Information] Unable to validate content of
item "/webdav/Test/Building Blocks/Component.xml" against Schema
"/webdav/Test/Building Blocks/Schema.xsd". Trying to synchronize the two.
3/19/2009 8:57:51 AM [Warning] Field "Title" of item
"/webdav/Test/Building Blocks/Component.xml" has been reordered to match
the Schema.
3/19/2009 8:57:51 AM [Warning] Field "Position" of item
"/webdav/Test/Building Blocks/Component.xml" has been added with default
content to match Schema.
3/19/2009 8:57:51 AM [Warning] Item
"/webdav/Test/Building Blocks/Component.xml" contains a field "ID" that
is not expected by the Schema. The field has been removed.
3/19/2009 8:57:52 AM [Information] Content of item
"/webdav/Test/Building Blocks/Component.xml" has been successfully
synchronized according to Schema
"/webdav/Test/Building Blocks/Schema.xsd".
3/19/2009 8:57:52 AM [Information] Finish synchronizing content
3/19/2009 8:58:01 AM [Information] Import from intermediate format
package: 'C:\Program Files\Tridion\Content Porter\Temp\
import_b759d983e79348e6bbc369775525f86b.zip'
3/19/2009 8:58:02 AM [Information] Import started
3/19/2009 8:58:02 AM [Information] Importing items into 'Test'
Publication
3/19/2009 8:58:02 AM [Information] Going to import (with
dependencies) item '/webdav/Test/Building Blocks/Schema.xsd'
3/19/2009 8:58:02 AM [Information] Processing dependencies for item
'/webdav/Test/Building Blocks/Schema.xsd'
3/19/2009 8:58:02 AM [Information] Starting full import of item
'/webdav/Test/Building Blocks/Schema.xsd'
3/19/2009 8:58:06 AM [Information] Updated item
'/webdav/Test/Building Blocks/Schema.xsd'
3/19/2009 8:58:06 AM [Information] Going to import (with
dependencies) item '/webdav/Test/Building Blocks/Component.xml'
3/19/2009 8:58:06 AM [Information] Processing dependencies for item
'/webdav/Test/Building Blocks/Component.xml'
3/19/2009 8:58:06 AM [Information] Starting full import of item
'/webdav/Test/Building Blocks/Component.xml'
3/19/2009 8:58:10 AM [Information] Updated item
'/webdav/Test/Building Blocks/Component.xml'
3/19/2009 8:58:10 AM [Information] Going to import (with
dependencies) item '/webdav/Test/Building Blocks/simple1.xml'
3/19/2009 8:58:10 AM [Information] Process successfully completed
=======
Start time: 2009-03-19 10:58:01
End time: 2009-03-19 10:58:10
Summary
=======
Number of new items created: 0
Number of existing items updated: 2
Number of items imported partially: 0
Number of items failed: 0
3/19/2009 8:58:11 AM [Information] Import completed