I have a form that links to a SQL2005 DB that I was hoping to use a field defined as a uniqueidentifier and auto populate with the newid() function. This works fine when i am adding fields via the SQL management studio but when I try and submit a form to the table, i recieve the following error:
"Infopath cannot submit the form because it contains validation erros that are not in the current view. Errors ......."
Field or group: pkey (defined as a uniqueidentifier and default value of (newid()))
Error: Only specific pattern allowed
I guess I could generate the newid() value in VB code and somehow push this out when the form is published but it would make things easier if the DB could just handle creating the primary key.
Thanks for your help