An exclude filter may not work as expected when you try to create a CSS project in Commerce Server 2007 (918851)



The information in this article applies to:

  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Standard Edition

SYMPTOMS

Consider the following scenario:
  • You try to create a Commerce Server Staging (CSS) project in Microsoft Commerce Server 2007.
  • You add an exclude filter at the command prompt.
  • Either the source path or the destination path contains a hyphen (-).
In this scenario, the exclude filter may not work as expected.

CAUSE

This problem is caused by the hyphen in the source path or in the destination path.

This problem occurs only when you add an exclude filter at the command prompt in Microsoft Commerce Server 2007.

WORKAROUND

To work around this problem, use one of the following methods.

Method 1

Use a backslash (\) to escape any quotation marks ("). If you use a backslash-and-quotation-mark sequence, you must replace this sequence with three backslashes and a quotation mark (\\\").

For example, the following command does not work as expected:

css addproj MSTest01 C:\Temp\CSS-Test01\Source C:\Temp\CSS-Test01\Target /Filter "-ExcludeMe\ "

Instead of using "-ExcludeMe\ " to exclude this folder, you must use "-\"ExcludeMe\\\" " to create the CSS publishing project. Therefore, use the following command:

css addproj MSTest01 C:\Temp\CSS-Test01\Source C:\Temp\CSS-Test01\Target /Filter "-\"ExcludeMe\\\" "

Method 2

Rename the source folder or the destination folder so that the name does not contain a hyphen.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about this problem, click the following article number to view the article in the Microsoft Knowledge Base:

320105 Cannot filter a folder by using a command prompt if the source path contains a hyphen (-)


Modification Type:MajorLast Reviewed:7/31/2006
Keywords:kbtshoot kbBug kbcode kbprb KB918851 kbAudDeveloper kbAudITPRO