Re: SFTP w/ Microsoft Dynamics Nav (Navision) - WeOnlyDo Discussion board

Re: SFTP w/ Microsoft Dynamics Nav (Navision) (General questions)

by wodDamir, Monday, November 05, 2007, 15:49 (6228 days ago) @ Josh

Hi Josh,

Please try setting Blocking mode to true. You can do that by setting the Blocking Property.

The reason why you receive this error, is because the MakeDir and ListDir are being executed before you really connected to server. When using the component this way (scripting) and you wish to execute your code line-by-line, Blocking mode is required. It will ensure that each method is executed before proceeding to the next line in your code.

However, if you don't want to use Blocking mode, you need to use the Event system (and Done Event) in order to issue multiple commands.

Hope I helped.

Regards,
Damba


Complete thread: