I've added a custom table to the Dynamics SL AR Invoice and Memo screen and it displays, updates but does not insert new records. When the screen inserts a new ARDoc row, I receive the following:
Programming Bulletproof Error 10262
Invalid cursor value passed to sinsert1(). Please make sure cursor value is greater than 0. Also verify that this cursor has been passed to sql().
I did the work around of performing a select to initialize the cursor to get a non-zero value for the cursor but then it seems the cursor becomes SqlReadOnly (per the following error) instead of the SqlList flag that it was created.
System Message 10091
Cursor specified SqlReadOnly flag.
Function: sinsert(DefaultCreated)
Level: NOLEVEL
Tables(s): xMSOTCARDoc
Sql: Select * from xMSOTCARDoc where BatNbr = '007797' and RefNbr = '001896'
Should I do a work around to do an Update statement instead of a Select or what is the real way to keep the cursor initialized to allow updates, inserts and selects?
Dynamics SL 2011 FP1
*This post is locked for comments