Forum Discussion
Aleksandar_A there is a possibility that IcustomerIFANumber might not be present . is there a way to skip the mapping when its not present?
$dataList.map(x => x.customerIFANumber != null ? x.customerIFANumber : null).filter((x,ind,arr) => arr.indexOf(x) == ind).toString()
Hello akarsh,
Could you please share an example of your input and the expected output?
- Surendar7 years agoContributor
Mostly it will be a SMB protocol version issue. Please check the protocol version for your SnapLogic server.
I hope as of SnapLogic support SMB 1.0 protocol version. Also the SMB 2.0 and SMB 3.0 will be coming in further SnapLogic release.for any queries please reach out to SnapLogic support.
Thanks
Suren- ctlarson7 years agoNew Contributor II
Thank you for your reply. Am I able to check the protocol version on the dashboard tab?
Yesterday I was able to get past this error, or so I think, and have no encountered a new error where the SMB protocol is able to find the server share but not the drive or any of the sub folders. My new error is
The path /E/TestFolder/SubFolder/FileName.xml was not found. The server name is not part of the error which makes me think that it is able to reach it but I can reach any file location on that server. Do you think this is still a protocol version issue with SMB?
- Surendar7 years agoContributor
No you can’t able to see the SMB protocol version in Dashboard.
Alternatively you just can try to list the objects from server using in directory browser snap by providing SMB server address and * as all filter.
- smb://(Server host address)
- smb://(Server host address)/E$/TestFolder/SubFolder/FileName.xml
- ctlarson7 years agoNew Contributor II
I have validated that I am able to write a file to the file share but I am encountering an issue with using a general expression while naming the file.
I am trying to timestamp the file with the following expression; + Date.now()+“.xml”. The pipe completes but there is no file in the location. When i change the syntax to:
+“Date.now()”+“.xml” the pipe completes with a file in the directory named:
Date.now().xml.
Any idea why it is having a problem with creating a file with the expression Date.now()?
The output preview even processes the expression correctly but still no file.
- dmiller7 years agoFormer Employee
I’m wondering if it doesn’t like the colons in the time of the date format and an error is not being displayed. What if you replaced Date.now() with Date.now().toLocaleDateString({“timeZone”:“PST”, “format”:“yyyy-MM-dd”}) ?
- AE042826 years agoNew Contributor
Good day,
I’m having a similar issue, I’m trying to write pdf files using a File Writer snap to a shared location, should I be using the file or the smb protocols? I tried both but unable to get it to work.
However the file gives a message saying it’s overwritten but the files are not in the folder, see below:
Thanks much.
- AE042826 years agoNew Contributor
Hi all, I got this to work. Thanks.
- ctlarson7 years agoNew Contributor II
That was the issue!
I actually had to remove “timeZone”:“PST”, from the expression to get it to work but that allowed me to create the file. Thank you very much! - diptipatel_fm3 years agoNew Contributor
Hi, what was the final path looked like to make this work for shared windows location? can you please share info