Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

SBA - Can't Create Sales Invoice - "Unable to save. The transaction is not assigned to a batch."

Posted on by Microsoft Employee

Hello all!  So far I've found the Service Based Architecture pretty easy and straight forward.  However, creating a salesinvoice has been difficult for me.

The error i'm getting says I need to assign it to a batch.  I don't see anywhere in the helper how to create a batch.  So I retried creating the invoice and put in some random Batch ID, in hopes it would create it for me.

Unfortunately it says now that the batch id does not exist.  

How do I create a batch using SBA, so I can use that ID to create some Sales Invoices?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SBA - Can't Create Sales Invoice - "Unable to save. The transaction is not assigned to a batch."

    you can create a custom SanScript procedure to create Batch in your dictionary  and then expose the procedure as service operation. it is not difficult.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SBA - Can't Create Sales Invoice - "Unable to save. The transaction is not assigned to a batch."

    Thank you Almas.  It appears as though you are correct.   This is very disappointing because there's no way to find a batch ID either.  

  • Verified answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: SBA - Can't Create Sales Invoice - "Unable to save. The transaction is not assigned to a batch."

    I don't think you can create new batch from SBA, just an idea after reading about SBA over

    community.dynamics.com/.../service-based-architecture

    But since you are the one using it, I would like to know your finding about it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans