DOCUMENT:Q194503 01-MAY-2001 [ssafe] TITLE :PRB: VFP6/VSS6 File Could Not Be Mapped to SourceSafe Project PRODUCT :Microsoft SourceSafe PROD/VER: OPER/SYS: KEYWORDS:kbinterop kbSSafe600 kbvfp600 ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual SourceSafe for Windows, version 6.0 - Microsoft Visual FoxPro for Windows, version 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When adding a project to SourceSafe in the Visual FoxPro (VFP) integrated development environment (IDE) you receive the message: File could not be mapped to the SourceSafe project . NOTE: This article uses the term "pjx" to refer to the VFP project, and "project" to refer to a SourceSafe project. CAUSE ===== The project (.pjx) contains a file that is not in the home directory (the one that contains the .pjx file) or a subdirectory underneath it. The relative path from the .pjx file is stored in the Name field of the PJX. (You need to USE the .pjx as a table in order to see this.) The SourceSafe integration returns the error when it cannot resolve this relative path to the .vbp file in its database. For additional information, please see the following article in the Microsoft Knowledge Base: Q164684 "File or Project not Found" Adding Files via Integration RESOLUTION ========== It is recommended that all files in the pjx be either in the home directory or in a subdirectory underneath it. Alternatively, you can create a project structure in SourceSafe that mirrors the directory structure on your hard drive before adding the pjx to SourceSafe. STATUS ====== This behavior is by design. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a directory structure similar to: C:\ projects\ pjxhome\ pjxother\ 2. In VFP create a project ("proj1.pjx") and save it in the pjxhome subdirectory. 3. With Proj1 project open, from the VFP project manager, select the Code Tab and then the New button to create a new program that will be added to the project. Save the program as program1.prg in the pjxother subdirectory. 4. Add the pjx to SourceSafe, creating a new project to store the pjx. Make sure program1.prg is selected in the "Add Files to Source Control" dialog box. RESULTS: You will receive the message. Additional query words: ====================================================================== Keywords : kbinterop kbSSafe600 kbvfp600 Technology : kbVFPsearch kbSSafeSearch kbAudDeveloper kbVFP600 kbSSafe600 Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.