i see the CheckForDuplicate Routine delete the value of blob field with sql server i add this codefor ommit the routine and work:
what is wrong?
CheckForDuplicate Routine
If loc:invalid <> '' then exit. ! no need to check, record is already invalid
If ans = 0 then exit. ! no need to check, as no action happening
! Start of "On Insert / Copy / Update : Checking for Duplicate : before disk write (start)"
! [Priority 5000]
if 0=1
! End of "On Insert / Copy / Update : Checking for Duplicate : before disk write (start)"
If p_web.GetSessionValue('UpdateDocuments:Primed') = 0 and Ans = Net:InsertRecord
Get(Documents,0)
End
! Check for duplicates
If Duplicate(Doc:PK_Documents)
loc:Invalid = 'Doc:DocId'
if not loc:alert then loc:Alert = clip(p_web.site.DuplicateText) & ' PK_Documents --> '&clip('Doc Id:')&' = ' & clip(Doc:DocId).
End
! Start of "On Insert / Copy / Update : Checking for Duplicate : before disk write (end)"
! [Priority 5000]
end