Marty Zigman

Conversations with Marty Zigman

Certified Administrator • ERP • SuiteCloud

Marty Zigman LinkedIn

Marty Zigman

Holding all three official certifications, Marty is regarded as the top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc.. He is a former Deloitte & Touche CPA and has held CTO roles. For over 30 years, Marty has produced leadership in ERP, CRM, and eCommerce business systems. Contact Marty to set up a conversation.

BiographyYouTubeLinkedInX (Twitter)

6 thoughts on “NetSuite Mass Update with SuiteScript to Write Off Invoices

  1. Hi,
    I am trying to update the journal entry line list using suite talk api using line id, but API throw an error regarding to permission.

    You do not have permissions to set a value for element line.line due to one of the following reasons:
    1) The field is read-only;
    2) An associated feature is disabled;
    3) The field is available either when a record is created or updated, but not in both cases.
    Using admin role to access the api.

  2. I am able to add and update line item records using GUI, but trying to update using SuiteTalk API(C#) it shows me this error.
    You do not have permissions to set a value for element line.line due to one of the following reasons:
    1) The field is read-only;
    2) An associated feature is disabled;
    3) The field is available either when a record is created or updated, but not in both cases.

    But I can add new line item using API, and transaction which I am trying to update is not in a closed period. Here is my sample code which is being used to update the existing line item records.

    JournalEntry journalEntry = new JournalEntry();
    journalEntry.internalId = "353";
    JournalEntryLine journalEntryLine = new JournalEntryLine();
    journalEntryLine.line = 95;
    journalEntryLine.memo = "testUpdate";
    journalEntryLine.lineSpecified = true;
    JournalEntryLineList objJournalEntryLineList = new JournalEntryLineList();
    objJournalEntryLineList.line = new JournalEntryLine []{ journalEntryLine };
    objJournalEntryLineList.Replaceall ="false";
    journalEntry.lineList = objJournalEntryLineList;

    WriteResponse saveResponse = new WriteResponse();
    saveResponse = nsServiceBridge.UpdateRecords(journalEntry);

Leave a Reply

Your email address will not be published. Required fields are marked *