EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Macro naming for Receive Location directory

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#19653
Posted: 04/02/2012 15:09:59
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

I don't see that this issue has been addressed in these forums, but here's the problem:

1) SFTP receive location with "daily folders" like this:
/home/username/outgoing/MM-dd-yyyy/Other_Folders/

2) I understand how to set these on the send port, but the same macros do not appear to be available to the receive location, or am I missing something?

There's a bit of discussion about Safe-Download names and the like, but this does not seem to apply to the source folder path, so far as I can determine.

Is there a possibility to calculate these values outside of BizCrypto and then call them from the receive location somehow?

Appreciate your product.
#19671
Posted: 04/05/2012 08:50:25
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us. We apologise for the delayed reply.

I am afraid, there is no possibility to use macros in the Remote Path property of the receive adapter at the moment. I have submitted a corresponding task to the To Do list, and I hope we will add this functionality in one of the forthcoming product updates.

Quote
Is there a possibility to calculate these values outside of BizCrypto and then call them from the receive location somehow?

Well, you can create receive locations dynamically from within the orchestration (an excellent article on this topic is available here), still, I believe this complex approach is too unjustified for your goal. So, it would be ideal for you to wait for the upgrade and have the functionality available right out of the box. I would give an estimation of one month for this feature.
#19702
Posted: 04/06/2012 17:58:04
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

OK, thanks for the update.
#21296
Posted: 08/31/2012 13:21:02
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

Any progress on this?

I didn't see anything in the release notes for the new version that touches on macro substitution for receive folders.
#21297
Posted: 08/31/2012 14:08:14
by Ken Ivanov (EldoS Corp.)

Mark,

Sorry for not notifying you about this. Support for macros in receive adapters has been added in BizCrypto 9.1.216.
#21298
Posted: 08/31/2012 14:55:17
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

will the documentation be updated to show how to use this?
I had my developer download and install the latest version available from your site and tried a location like this:

/home/username/Test/outgoing/%date.mm%-%date.dd%-%date.yyyy%/edi_5010/

but I still get file not found, though when I use the explicit path

/home/username/Test/outgoing/08-31-2012/edi_5010/

files are found.

Again, the problem I have is that I need to be able to specify the remote location by macro substitution, not the file name.
#21299
Posted: 09/01/2012 00:39:54
by Ken Ivanov (EldoS Corp.)

Mark,

Could you please send us the configuration of the adapter together with the corresponding debug log? The log file can be created by running the adapter with the below settings:

Trace to Event Log = No,
Trace to File = Yes,
Trace Level = Debug,
Trace Filename = <path to log file>.

You might wish to use Helpdesk for sending the files to keep them confidential.
#21683
Posted: 09/24/2012 13:31:55
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

Set the adapter in the receive location to debug mode and recycled both the host instance and the location, but the debug output doesn't appear to differ significantly from the ERROR output. -- for what it's worth, here's the debug file:

[9/24/2012 11:21 AM] EldoS SFTP Adapter (receive): ControlledEndpointTask()
[9/24/2012 11:21 AM] EldoS SFTP Adapter (receive): EndpointTask()
[9/24/2012 11:21 AM] Searching for installed BizCrypto addons.
[9/24/2012 11:21 AM] BizCrypto.BizTalk.Addons library successfully loaded.
[9/24/2012 11:21 AM] EldoS SFTP Adapter: Loading private key
[9/24/2012 11:21 AM] EldoS SFTP Adapter: 1 keys have been loaded
[9/24/2012 11:21 AM] EldoS SFTP Adapter: Loading trusted keys
[9/24/2012 11:21 AM] EldoS SFTP Adapter: Opening connection to SFTP server
[9/24/2012 11:21 AM] EldoS SFTP Adapter: Running key validation handler
[9/24/2012 11:21 AM] EldoS SFTP Adapter: All keys are trusted, exiting
[9/24/2012 11:22 AM] EldoS SFTP Adapter: Authentication succeeded
[9/24/2012 11:22 AM] EldoS SFTP Adapter: Server introduced himself as OpenSSH_4.7
[9/24/2012 11:22 AM] EldoS SFTP Adapter: SFTP connection started
[9/24/2012 11:22 AM] EldoS SFTP Adapter: Downloading files...
[9/24/2012 11:22 AM] EldoS SFTP Adapter: Failed to transfer file(s): No such file

Stack:
at SBSftp.TElSftpClient.OpenDirectorySync(String Path)
at SBSimpleSftp.TElSimpleSFTPClient.OpenDirectory(String Path)
at SBSimpleSftp.TElSimpleSFTPClient.ListDirectory(String Path, ArrayList Listing, String Mask, Boolean CaseSensitive, Boolean IncludeFiles, Boolean IncludeDirectories)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.ListRemoteDirectory(IBaseMessage message, String remotePath, String fileMask)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.RecursiveDownloadFiles(IBaseMessage message, ArrayList fileList, String remotePath, String localPath, String fileMask)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.DownloadFiles(IBaseMessage message, ArrayList fileList)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.TransferData(IBaseMessage message, Boolean upload, ArrayList fileList)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.DoWork(Trace trace, IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList, ImpersonateUser& impersonateUser)
[9/24/2012 11:22 AM] EldoS SFTP Adapter: Closing the connection
[9/24/2012 11:22 AM] EldoS SFTP Adapter (receive): Failed to pickup files: No such file
[9/24/2012 11:22 AM] EldoS SFTP Adapter (receive): Removing receiver endpoint.
[9/24/2012 11:22 AM] EldoS SFTP Adapter (receive): Stop()

The configuration of the receive location is pretty standard, the point is that I'm still trying to satisfy the requirement for dynamically constructed receive locations:

/home/username/outgoing/MM-dd-yyyy/dir1
/home/username/outgoing/MM-dd-yyyy/dir2
/home/username/outgoing/MM-dd-yyyy/dir3

etc.

The date macros do not appear to expand in the receive location, however.

Per the older documentation, which states that these macros are applicable to the send port or temporary file names utilized for safe download, I used the following macro strings:

<root path>/outgoing/%date.MM%-%date.dd%-%date.yyyy%/dir1
perhaps I should look to see whether we indeed have the correct dll gac'd ?
#21684
Posted: 09/24/2012 15:15:01
by mark fenton (Basic support level)
Joined: 04/02/2012
Posts: 15

sorry I didn't get back to you sooner on this, I had failed to subscribe to this thread and didn't see your reply until today (vacations and the like....)
#21701
Posted: 09/25/2012 09:05:01
by Ken Ivanov (EldoS Corp.)

Mark,

I am sorry for the late reply.

According to the trace, you are still using an outdated version of BizCrypto (I guess it's 9.1.214 or even an earlier one, as versions 9.1.215 and over include milliseconds to date/time marks reported in the trace). Please try to uninstall all existing BizCrypto installations and install the latest (9.1.216) version from scratch. Please remember to switch the 'purge old modules' check box when installing version 9.1.216, so that the installer removed assemblies belonging to the older BizCrypto version from the system.

To be absolutely sure, we have just re-checked the adapters and confirmed that they are able to process macros in the way you are trying to use them (i.e. macro %date.MM%-%date.dd%-%date.yyyy% is expanded to 09-25-2012). This way, there is a really good incentive for upgrading.
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 8565 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!