โ12-19-2018 09:42 AM
I have a location on our file server: share1.berklee.edu. For illustration purposes weโll name the path as follows:
share1.berklee.edu\PR_Shared\Test eft
Iโm trying to drop a file from the local GroundPlex to the location
My understanding is that within the File Writer snap I have to use the SMB command.
So, in the File Writer snap under โFile nameโ I have the following:
โsmb:\share1.berklee.edu\PR_Shared\Test eft\DNU_test.txtโ
The pipeline validates and seems to run without error. However, the DNU_test.txt file is not showing up in the location in the shared drive.
I was getting permissions error earlier but weโve created the proper account thatโs setup in the Account tab of the File Writer.
Am I using the correct syntax for the smb command? Should it be something else, like โfile:โ? Iโve tried that, pipeline validates, but file is still not being sent over.
Any insight would be appreciated.
Thank you,
Vin
โ12-19-2018 02:04 PM
I believe you need to start it with smb:\\
[edited to make it two visible backslashes as apparently the first one is an escape]
โ12-21-2018 02:36 PM
Hi vcocco,
Your slashes are the wrong way, and you need two / after โsmb:โ, like so if the expression button (โ=โ) is pressed:
โsmb://server/share/folder/filename.extโ
Hereโs a bonus hint: if you are piping the file name in to the File Writer snap from a Directory Browserโ>File Reader combo, you can capture that name with a line like this in the expression:
โsmb://server/share/folder/โ + $[โcontent-locationโ].match(โ[^/]+$โ).toString()
This uses a regular expression to pull the name from the โhiddenโ variables that pass through some pipelines, and converts it to a string. You can look for them after any snap by adding a Mapper and then holding Shift while you click Validate (this forces a refresh of the cached validation data) - the left side of the Mapper should show you any additional values for your use.
Mark W.
โ12-22-2018 06:52 AM
Hi Mark,
Thanks for your response.
So, the syntax has been modified - the slashes are now facing the correct way. Hereโs what I have:
โsmb://share1.campus.edu/PR_Shared/2019 TEST/TESTFOLDER eftโ
Still getting this error:
Failure: Failed to write to smb://share1.campus.edu/PR_Shared/2019 TEST/TESTFOLDER eft, Reason: Possible reasons can be failure in URL connection or file access denial, detail: Access is denied., Resolution: Check for URL syntax and file access permission
We do have an account in our GroundPlex thatโs setup to access a shared SMB drive. Iโm wondering if itโs just a permissions problem at this point?
Thanks again,
Vin