Forum Discussion
Value cannot be null. Parameter name: stream Issue
Are you using Powershell to do this or csom? and if i remember you need to specify the whole path if you use azure.
and do you have a connector on the filessystem depending on where you put your files you have to apply the correct path says my colleague Robert Schouten
Hi Paul,
Thanks for the reply!
I have fixed the issue as below. My learnings are below:
1. If i am reading the files from directory (local folder), my file srouce path is
<pnp:File src=".\CustomFolder\css\filename.css" Folder="{site}/Style Library/css" Overwrite="true">
</pnp:File>
2. If i am reading the files from different site collection, my file path is
<pnp:File src="/CustomFolder/filename.css" Folder="{site}/Style Library/css" Overwrite="true">
</pnp:File>
- Ravi ChandraOct 28, 2018Copper Contributor
Hi, Quick question on the second point.
2. If i am reading the files from different site collection, my file path is
<pnp:File src="/CustomFolder/filename.css" Folder="{site}/Style Library/css" Overwrite="true">
How you specify the src path here? I mean how it knows, which site collection to read? I have the css in another site collection library and want to copy from there to destination site.
Any hints?
Thanks!
Ravi- mahendra2021Jan 05, 2021Copper Contributor
Ravi Chandra, did you get it working? as I am also facing the same issue but still no lead could you help me if any suggetion.