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.

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.