Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Microsoft Dynamics GP doesn't return GLTransactionByKey and GLPostedTransactionByKey

Posted on by 443

Hello Team,

I use the following method to receive the GL Transactions: GLTransactionList

Microsoft Dynamics GP
returns the Transaction list.

For example:

<GLTransactionSummary>
<Key>
 <JournalId>1543</JournalId>
<Date>2027-05-08T00:00:00</Date>
</Key>

Then, I use methods GLTransactionByKey and GLPostedTransactionByKey to receive details by transactions.
But, Microsoft Dynamics GP always returns the following error message:

<faultstring>Business object not found.</faultstring>

For the request, I use an ID that I received from Transaction List.

Could you clarify what is the reason that Microsoft Dynamics GP doesn't return the transaction?
Categories:
  • Microsoft Dynamics GP doesn't return GLTransactionByKey and GLPostedTransactionByKey
    Just to add my case here.
     
    When I had to use GetGLTransactionByKey I used the following key, any other resulted in BusinessObjectNotFound error
                    GLTransactionKey key = new GLTransactionKey();
      key.JournalId = journalId;                 key.Date = transactionDate;
     
     

    When I had to use GetGLPostedTransactionByKey, I used the following key, any other resulted in BusinessObjectNotFound error:
                    GLTransactionPostedKey postedKey = new GLTransactionPostedKey();
      postedKey.JournalId = journalId; postedKey.RecurringTransactionSequence = 0; postedKey.FiscalYear = transactionDate.Year; postedKey.Date = transactionDate;
    Hope this helps!
  • Suggested answer
    RE: Microsoft Dynamics GP doesn't return GLTransactionByKey and GLPostedTransactionByKey

    My GetGLTransactionList, by default, returns a list of about 13 journal entries, all with a reference of 'Computer Checks', such as journal ID 3327 through 3339.

    Using the GetGLTransactionByKey method, it returns "Source Document: PMCHK" which is the source document value in the Financial > Transaction Entry window for this journal entry.

    Then, after I posted 3327, using the GetGLPostedTransactionByKey, I was able to get the return of "Reference: Computer Checks, posted by: sa.

    **NOTE: In this last method, I had to set the transactionPostedKey.RecurringTransactionSequence = value to 0, because this wasn't a recurring journal entry, otherwise I get the Business Object Not Found message.

    What you need to look at with these Web Services methods, is start with the sample code......in the case of the GetGLPostedTransactionByKey method, the sample code is only returning this:

    MessageBox.Show("Reference: " + transaction.Reference + "  Posted by: " + transaction.PostedBy);

    When you pull up the method, you'll see something like this under 'Return Value':

    Value                                                              Type                                  Description

    GetGLPostedTransactionByKeyResult         GLTransaction                    A GL transaction object.

    If you click on GLTransaction, you'll see a list of all the properties that can be returned by this method, to include the 'Referenced' and 'PostedBy' values that it shows by default.

    This is all that the method is able to return/display. There isn't any way to change that or modify it.

    You would have to create your own customization or call the SQL data directly through your code to get information other than what the Web Services methods are able to return. This seems to be true for a majority of the questions you're asking in regards to the Web Services methods.

    Thanks

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans