0

I was trying to use the Data Importer to import a csv of data templates. I get the following error:

New-Item : The type is not a known type for the file system. Only "file","directory" or "symboliclink" can be specified.

Any help is much appreciated.

1 Answer 1

2

This issue is a known bug and was reported with issue 1152. Scheduled to be released with SPE 6.1.

The quickest way to get a fix is to apply the following changes to the script:

/sitecore/system/Modules/PowerShell/Script Library/SPE/Tools/Data Management/Toolbox/Data Management/Data Importer

#Old Value
$itemPath = "$($destinationNode.ItemPath)/$($row.Name)"

#New Value
$itemPath = "$($destinationNode.ProviderPath)\$($row.Name)"

Alternatively, you can copy all of the script from the yml on the master branch as it addresses some other issues as well.

4
  • This worked great the only issue now is on import only the name field takes data. Am I missing anything here. Commented Jan 22, 2020 at 1:18
  • There is an issue with mapping to the template. Commented Jan 22, 2020 at 17:02
  • If possible please submit an issue here with steps to reproduce. github.com/SitecorePowerShell/Console/issues Commented Jan 22, 2020 at 17:20
  • Thank you Michael I have submitted 1165. Commented Jan 22, 2020 at 19:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.