Forum Discussion

NicolasArgente's avatar
NicolasArgente
Valued Contributor
2 years ago
Solved

XFProj on OS 7.4..2

Hi there,

I am trying to extract a component using XFProj.  I worked with that in the past.... it seems there is a bug on 7.4.2 as the below code works in v5 but not in v7.4.

<xfProject topFolderPath="XFProjMenu" defaultZipFileName="Menu.Zip">
	<projectItems>
		<projectItem projectItemType="DashboardComponent" folderPath="" name="cpTest" includeDescendants="true"/>
	</projectItems>
</xfProject>

 

The documentation does not mention anything about the workspaces.

Can you guys test on your side on provide a feedback?

Thanks

 

  • Hi NicolasArgente , 
    Here's a working 7.4.2 xfproj:

    <xfProject topfolderPath="" defaultZipFileName="ABC123_PV7.4.2_SV100_PackageContents.zip">
    	<projectItems>
    		<!-- Dashboard items -->
    		<projectItem projectItemType="DashboardWorkspace" folderPath="" workspace="XFW_321_Myco_Manager_ABC123" name="XFW_321_Myco_Manager_ABC123" includeDescendants="false"/>    
    		<projectItem projectItemType="DashboardMaintenanceUnit" workspace="XFW_321_Myco_Manager_ABC123" folderPath="" name="321 Myco Manager (ABC123)" includeDescendants="true" />	
    		<projectItem projectItemType="DashboardProfile" folderPath="" name="Myco Manager (ABC123)" includeDescendants="true"/>		
    		<!-- Cubes -->
    		<projectItem projectItemType="Cube" folderPath="" name="MycoManager_ABC123" includeDependants="true" />
    		<!-- Business Rules -->
    		<projectItem projectItemType="BusinessRule" folderPath="" name="ABC123_HelperQueries" includeDependants="true" />
    		<projectItem projectItemType="BusinessRule" folderPath="" name="ABC123_SolutionHelper" includeDependants="true" />		
    		<!-- Dimensions -->
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Entity" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Scenario" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Account" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Flow" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD1" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD2" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD3" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD4" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD5" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD6" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD7" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD8" includeDescendants="true" />
    	</projectItems>
    </xfProject>

     

6 Replies

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    Hi NicolasArgente , 
    Here's a working 7.4.2 xfproj:

    <xfProject topfolderPath="" defaultZipFileName="ABC123_PV7.4.2_SV100_PackageContents.zip">
    	<projectItems>
    		<!-- Dashboard items -->
    		<projectItem projectItemType="DashboardWorkspace" folderPath="" workspace="XFW_321_Myco_Manager_ABC123" name="XFW_321_Myco_Manager_ABC123" includeDescendants="false"/>    
    		<projectItem projectItemType="DashboardMaintenanceUnit" workspace="XFW_321_Myco_Manager_ABC123" folderPath="" name="321 Myco Manager (ABC123)" includeDescendants="true" />	
    		<projectItem projectItemType="DashboardProfile" folderPath="" name="Myco Manager (ABC123)" includeDescendants="true"/>		
    		<!-- Cubes -->
    		<projectItem projectItemType="Cube" folderPath="" name="MycoManager_ABC123" includeDependants="true" />
    		<!-- Business Rules -->
    		<projectItem projectItemType="BusinessRule" folderPath="" name="ABC123_HelperQueries" includeDependants="true" />
    		<projectItem projectItemType="BusinessRule" folderPath="" name="ABC123_SolutionHelper" includeDependants="true" />		
    		<!-- Dimensions -->
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Entity" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Scenario" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Account" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_Flow" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD1" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD2" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD3" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD4" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD5" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD6" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD7" includeDescendants="true" />
    		<projectItem projectItemType="Dimension" folderPath="" name="321Mush_UD8" includeDescendants="true" />
    	</projectItems>
    </xfProject>

     

    • NicolasArgente's avatar
      NicolasArgente
      Valued Contributor

      Hi RobbSalzmann and thanks for find this out. I will give it a test and come back to you.

      @Onestream : Guys, can you please update the documentation.

      • MarcusH's avatar
        MarcusH
        Valued Contributor

        @OneStream : And please add TaskScheduler to the list of exportable objects

    • t_kaplanis's avatar
      t_kaplanis
      New Contributor III

      CAUTION: When using an undefined topfolderPath="" like this example, it will wipe any files not related to the ".xfproj" file you had within the same folder as the ".xfproj" file you are uploading into OneStream.

      I tried testing the example in this solution, and it caused me to lose all of the files I needed from my local machine's "downloads" folder since that is where I saved this suggestion's ".xfproj" file. 

      Thus, the perils of testing, however I would suggest anyone using this to specify a specific "topfolderPath".

      OneStream has stated they will update the documentation to mention this.

      • sameburn's avatar
        sameburn
        Icon for OneStream Employee rankOneStream Employee

        Hi t_kaplanis​

        This is expected behaviour with xfproject unless you select the zip option

        The purpose of xfproj (without zip) is to extract/ load xml structures to the same folder that you opened the xfproject schema from on your local directory. Which means anything else in that folder is overwritten by default for extracts.

        Hope this helps clarify 

        Sam