Have a situation where some diffgram records are applied
and some not. Are there any known issues with
ApplyDiffgram that would prevent records from updating?
Thanks

- Base table seems OK
- All diffgram records seem OK
- No database validation rules violated
- So far, records not updating don't show any pattern or
deviation from the records that do update

Here's the code:

FUNCTION LoadDiffGram() && XML Parsing (Diffgrams)

LOCAL oMyAdapter,lToAFile,lElementBased, ;
lIncludeBefore,lChangesOnly

SET MULTILOCKS ON
lcFileName = <name of the diff gram file>
lcViewName = <view to apply the diffgram to>

SELECT 0
OPEN DATABASE cw2k
USE &lcViewName
CURSORSETPROP("Buffering",5,lcViewName)
oXMLAdapter=CREATEOBJECT("xmladapter")
oXMLAdapter.LoadXML(lcFileName,.t.)
oXMLAdapter.Tables(1).ApplyDiffgram(lcViewName,,.T.,0)

*-- Force any changes to the table to be applied
lnReturnValue = TABLEUPDATE(1,.t.,lcViewName)

USE IN (lcViewName)

RETURN