BizTalk and SMB FileShare

%3CLINGO-SUB%20id%3D%22lingo-sub-2249230%22%20slang%3D%22en-US%22%3EBizTalk%20and%20SMB%20FileShare%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249230%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3CBR%20%2F%3ECan%20you%20please%20point%20me%20to%20some%20documentation%20which%20lists%20the%20compatibility%20of%20different%20BizTalk%20version%20and%20SMB%20Protocol.%20I%20am%20aware%20that%20Windows%202012%20%2B%20does%20supports%20this%20%2C%20but%20does%20BizTalk%20File%20Adapter%20supports%20%3F%3F%3C%2FP%3E%3CP%3EWe%20recently%20ran%20into%20an%20issue%20with%20NAS%20Drive%20which%20is%20using%20SMB%20V2%20and%20BizTalk%202013%20R2%20.%20File%20adapter%20was%20not%20reading%20the%20entire%20stream%20and%20was%20dropping%20the%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBizTalk%202013%20R2%20--%26gt%3B%20SMB%20V%3F%3CBR%20%2F%3EBizTalk%202016%20--%26gt%3BSMB%20V%3F%3CBR%20%2F%3EBizTalk%202020%20--%26gt%3B%20SMB%20V%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2756082%22%20slang%3D%22en-US%22%3ERe%3A%20BizTalk%20and%20SMB%20FileShare%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2756082%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20seen%20issues%20with%20different%20NAS%20devices%20not%20fully%20supporting%20SMB%202%2F3%20protocols%20where%20files%20were%20locked%20incorrectly.%20When%20locking%20is%20not%20working%20correctly%20or%20if%20there%20is%20a%20network%20issue%20the%20file%20can%20incorrectly%20become%20unlocked%2C%20which%20is%20then%20picked%20up%20by%20BizTalk.%20BizTalk%20has%20been%20tested%20with%20Windows%20NTFS%20file%20system%20as%20mentioned%20also%20in%20documentation%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbiztalk%2Fcore%2Ffile-adapter%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbiztalk%2Fcore%2Ffile-adapter%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbiztalk%2Fcore%2Fconfigure-the-file-adapter%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbiztalk%2Fcore%2Fconfigure-the-file-adapter%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20are%20some%20tips%20which%20may%20avoid%20the%20issue%3A%20%3CBR%20%2F%3E-%20use%20temp%20file%20options%20in%20file%20adapter%20send%20port%20options%20so%20files%20are%20not%20available%20to%20others%20while%20in%20transit%3CBR%20%2F%3E-%20disable%20antivirus%20for%20the%20BizTalk%20process%20(BTSNTSvc*.exe%2C%20msdtc.exe%2C%20entsso.exe)%20and%20file%20locations%20used%20by%20BizTalk%3CBR%20%2F%3E-%20cluster%20receive%20and%20send%20file%20hosts%20so%20only%20one%20host%20instance%20is%20operating%20on%20the%20file%20at%20the%20same%20time%3CBR%20%2F%3E-%20ask%20producer%20of%20files%20(if%20other%20applications%20outside%20of%20BizTalk%20is%20producing%20the%20files)%20to%20use%20temp%20files%20and%20moving%2Frenaming%20files%20when%20they%20are%20fully%20available%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20can%20also%20be%20related%20to%20network%20issues.%20%3CBR%20%2F%3E%3CBR%20%2F%3ESimilar%20to%20SMB%20server%2C%20some%20NAS%20devices%20may%20also%20have%20tuning%2Fconfiguration%20which%20can%20be%20optimised.%20%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20those%20using%20Windows%20SMB%20server%2C%20this%20guide%20can%20be%20useful%3A%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fadministration%2Fperformance-tuning%2Frole%2Ffile-server%2Fsmb-file-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fadministration%2Fperformance-tuning%2Frole%2Ffile-server%2Fsmb-file-server%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ETroubleshooting%20tips%2Fknown%20issues%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Fsmb-known-issues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Fsmb-known-issues%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Ftroubleshooting-smb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Ftroubleshooting-smb%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EDisabling%20SMB%202%2F3%20may%20work%20if%20the%20NAS%20i%20successfully%20using%20SMB%201%2C%20but%20this%20is%20not%20recommended%20as%20it%20will%20cause%20the%20whole%20BizTalk%20server%20to%20use%20SMB%201%2C%20and%20it%20is%20strongly%20recommended%20to%20not%20use%20SMB%201%20anymore%3A%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Fdetect-enable-and-disable-smbv1-v2-v3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Ffile-server%2Ftroubleshoot%2Fdetect-enable-and-disable-smbv1-v2-v3%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fstorage-at-microsoft%2Fstop-using-smb1%2Fba-p%2F425858%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fstorage-at-microsoft%2Fstop-using-smb1%2Fba-p%2F425858%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi All,
Can you please point me to some documentation which lists the compatibility of different BizTalk versions and SMB Protocol Version. I am aware that Windows 2012 + does supports SBM V1 , 2 & 3, but does BizTalk File Adapter supports SMB V2 & V3??

 

We recently ran into an issue with NAS Drive which is using SMB V2 and BizTalk 2013 R2 . File adapter was not reading the entire stream and was dropping the data.

 

BizTalk 2013 R2 --> SMB V?
BizTalk 2016 -->SMB V?
BizTalk 2020 --> SMB V?

Thanks

1 Reply

I have seen issues with different NAS devices not fully supporting SMB 2/3 protocols where files were locked incorrectly. When locking is not working correctly or if there is a network issue the file can incorrectly become unlocked, which is then picked up by BizTalk. BizTalk has been tested with Windows NTFS file system as mentioned also in documentation:
https://docs.microsoft.com/en-us/biztalk/core/file-adapter
https://docs.microsoft.com/en-us/biztalk/core/configure-the-file-adapter

Here are some tips which may avoid the issue:
- use temp file options in file adapter send port options so files are not available to others while in transit
- disable antivirus for the BizTalk process (BTSNTSvc*.exe, msdtc.exe, entsso.exe) and file locations used by BizTalk
- cluster receive and send file hosts so only one host instance is operating on the file at the same time
- ask producer of files (if other applications outside of BizTalk is producing the files) to use temp files and moving/renaming files when they are fully available

It can also be related to network issues.

Similar to SMB server, some NAS devices may also have tuning/configuration which can be optimised.

For those using Windows SMB server, this guide can be useful:
https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/file-server/s...

Troubleshooting tips/known issues:
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/smb-known-issues
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/troubleshooting-smb

Disabling SMB 2/3 may work if the NAS i successfully using SMB 1, but this is not recommended as it will cause the whole BizTalk server to use SMB 1, and it is strongly recommended to not use SMB 1 anymore: 
https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-d...
https://techcommunity.microsoft.com/t5/storage-at-microsoft/stop-using-smb1/ba-p/425858