Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP2013, eConnect, and a locked form

(0) ShareShare
ReportReport
Posted on by 110

Hey there,

I'm creating a new payment entry screen (using VST) that will open off of the current GP sales order entry screen.  When on this new screen, payment details will be entered by the user and a payment record will then be created for the order using eConnect.  The problem is, when I try to update the order entity using eConnect, I get an error saying that the form is locked by another user.  Of course, that "other user" is me since the order entry form is open behind the payment entry screen.

Is there a way to override this form lock?  My dirty solution is to close the form, run the eConnect transaction, and then re-open the form.  Is that the only way to solve this issue?

Thanks!

-Nathan

*This post is locked for comments

  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: GP2013, eConnect, and a locked form

    Close the form, run the eConnect Transaction and re-open the form. This is the only solution to accomplish to your requirement. Other wise if you try to clear the locked record from the opened window, this is against the standard GP logic. I would not recommend you to break the GP logic.

    Hope this helps!!!

  • NathanE Profile Picture
    110 on at
    RE: GP2013, eConnect, and a locked form

    Thanks for the response!  In order to add the payment record to the order you have pulled up, I have to update the order using the SOPTransactionType object in eConnect.  So yes, VST is updating the order at that time.  Here's the relevant code:

    var header = new taSopHdrIvcInsert
    {
      SOPNUMBE = sopNumber,
      SOPTYPE = (short) sopType,
      BACHNUMB = order.BatchNumber,
      CUSTNMBR = customerNumber,
      DOCDATE = order.OrderDate.ToShortDateString(),
      DOCID = order.DocumentID,
      PYMTRCVD = payment.Amount,
      UpdateExisting = 1
    };
    
    taCreateSopPaymentInsertRecord_ItemsTaCreateSopPaymentInsertRecord paymentLine =
      CreateCreditCardPaymentLine(sopNumber, sopType, order, customerNumber, payment);
    
    var transactionType = new SOPTransactionType
    {
      taSopHdrIvcInsert = header,
      taCreateSopPaymentInsertRecord_Items = new[] {paymentLine}
    };
    
    var eConnect = new eConnectType {SOPTransactionType = new[] {transactionType}};
    
    return base.UpdateTransactionEntity(eConnect);
    

    And here's the error text:

    Thanks again!

  • steveendow Profile Picture
    2,281 on at
    RE: GP2013, eConnect, and a locked form

    Hi Nathan,

    Something about your description doesn't sound quite right.  To the best of my knowledge, eConnect isn't aware of forms or form locks.

    Are you sure you don't have some VST code that is trying to reference, read, or update the order form?

    Can you paste the relevant lines of your code that trigger the error, and/or the full text of any error message you are receiving?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans