ms access - Invalid argument Error when attempting UPDATE query on linked SharePoint list -


i'm running update query access 2010 on linked sharepoint 2013 list, getting invalid argument error.

my access db 200 mb, have tried compacting , repairing db. query "runs" when select "view"--the error appears when click "run". query i'm running goes like:

update sp_table inner join access_table on sp_table.id1 = access_table.id1 set  sp_table.field1 = access_table.field1, sp_table.field2 = access_table.field2, --etc...  (sp_table.field1 <> access_table.field1 , sp_table.id1 = access_table.id1) or (sp_table.field2 <> access_table.field2 , sp_table.id1 = access_table.id1) or --etc... ; 

this question seems have same problem, , solution seems plausible, they're both distinctly lacking in detail. i'm not sure how view pk on sharepoint list, or how tell if it's problem.

any ideas on how resolve error?

i able resolve error, though i'm still not sure causing it. went through of fields in where clause, , narrowed issue down 2 fields cause query generate error if included. compared fields in both tables, making sure of field settings identical, wasn't able make query work them.

fortunately me, these fields not particularly vital, , can leave them out, if else has thoughts, i'd love have deeper understanding what's causing issue.

edit

the error cropped again in field did care about, had figure out causing it. looks "invalid argument" error can caused few things, including having size of either sharepoint list, sharepoint site, or access db being large. in case, appears victim of corrupt data.

after narrowing down field causing issue, went through , updated of data elements manually on sharepoint list. doing apparently overwrote corrupt data element causing error, because when ran query again, last few records updated without issue.

bottom line, if happens again, i'm going check size of sp list (no more 5,000 rows), size of sp site (ymmv), size of access db (no more 2gb) , narrow down field giving me error, , try replacing data elements 1 @ time until find corrupted data element.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -