umbraco - Update Contour form(records) using the record ID -


i can create entries in contour programmatically(c#) not able update created record using record id. after digging head around can’t find reason why following code doesn’t work. it’s basic , trying record exist in contour.

 recordstorage recordstorage = new recordstorage();  record r = recordstorage.getrecord(new guid("15d654cb-a7c6-4f1f-8b55-0ecd7d19b0e3"));  recordstorage.dispose(); 

just start update process, trying record object using it’s id can’t proceed further throws weird error “an item same key has been added.” can’t understand while it’s trying set value when call “storage.getrecord()”. following stack trace

**an item same key has been added.**    @ system.collections.generic.dictionary`2.insert(tkey key, tvalue value, boolean add)    @ umbraco.forms.data.storage.recordfieldstorage.getallrecordfields(record record)    @ umbraco.forms.data.storage.recordstorage.getrecord(object id)    @ mauriceblackburn.service.contourformservice.insertrecord(contourformfields unioncontourform) 

any thoughts, have missed something, have been digging day around , still not able figure out. in advance.

much appreciated.

first off, try deleting workflow , re-adding it.

you create 2 simple workflows, 1 write record , second manipulate (using id when written).


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -