OK - I have junked my existing tables and started again (not something I relish doing if this was on a live system !)
I have created a new table with 4 fields - one of them the primary key (ApplicationId)..... and I can get it to shred - Yippeee.
I have created a second table with 2 fields one is a foreign key (ApplicationId) and one is the variable
These need to be fed from a repeating field on the Infopath form.
I need the ApplicationId and Alias to be a combinded key for the table - there should be no duplicates.
I have mapped the table, and ApplicationId as a foreign key (identity), and Alias as a key.
If I try to reshred all I get the No transaction is active message.
If I try to reshred any single document I get the message - Cannot insert the value NULL into column ApplicationID, table 'Application Index.dbo.QdApAlias'; column does not allow nulls - INSERT fails.
- Ok so - I need to have a primary key on my second table - and a primary key cannot be null - my primary key is ApplicationID/Alias combo..... How do I get this to work ?
I have mapped the table, and ApplicationId as a foreign key (column), and Alias as a key.
I get no error messages on shredding - but I only get one Alias per form - Alias is a repeating field and I need a one to many relationship. I am really tearing my hair out here....
Grateful for any help.
Catharine