Rec.MODIFY Error

infonoteinfonote Member Posts: 233
Hi,

I have a table, where U am calling Rec.MODIFY
I am getting an error.

I am assigning a value to a field and using rec.modify to insert data into table.

Has anyone encountered a similar problem?
If yes, what may be the cause?


Thanks in advance.

Comments

  • krzychub83krzychub83 Member Posts: 120
    What does this error tell You? Could You rewrite this error?
  • fverkelfverkel Member Posts: 66
    If this is a new record, then you must use INSERT.
    If this is an existing record and you are changing a field from the primairy key, then you must use RENAME.
    Keep It Simple and Stupid (KISS), but never oversimplify.
  • infonoteinfonote Member Posts: 233
    Thanks for the fast replies.

    Unfortunately I am using a web-interface that does not return an exact error.
    It is not a new record. I am modifying an existing record. I have created a new field which gets data from another field and I am trying to insert it in the record.
  • garakgarak Member Posts: 3,263
    Please precc CTRL+C (please ENGL Language) an let us show the error message.
    Do you make it right, it works too!
  • infonoteinfonote Member Posts: 233
    I have solved the problem by calling rec.modify in codeunit.
    Not sure why but it worked.
Sign In or Register to comment.