I get a strange error, a journal is being created ...
# suitescript
m
I get a strange error, a journal is being created and a link will be written through submitFields (This field is a link)
INVALID_NUMBER: Invalid number 1.1146888E7
Copy code
record.submitFields({
      type: record.Type.JOURNAL_ENTRY,
      id: String(id),
      values: {
        custbody_link_je: String(JEId)
      },
      options: {
        enableSourcing: true,
        ignoreMandatoryFields: true
      }
    })
I used to have a number in the id, I changed it to a string
Copy code
seems to have helped
record.save() - return number )))
const id = String(record.save()) record.submitFields({... id: id })
a
I’m intermittently experiencing this issue as well. Have you noticed any issues casting the number as a string? Is
1.1146888E7
the
id
value or the
JEId
value?
m
just stop writing a number in the id field
convert to String