web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How I can find root cause for this error?

(0) ShareShare
ReportReport
Posted on by 282
Dear All,
 
I got some error in my environment and when I run my code everything sound run normally. Can someone guide me how to solved?
 
 
I have the same question (0)
  • Chomchanok Profile Picture
    282 on at
     
     
     
  • Suggested answer
    RudyZhang Profile Picture
    Microsoft Employee on at
    Hi,
     
    Based on the error screenshot you gave, our team found that this may be caused by some errors generated by the ODBC Driver.
     
    Please double check if there is a HSTHPAYMENTMETHODCODE column in your Table, according to the error message it is an invalid column name

     
    In addition, could you please provide more information about the error or tell us exactly what your code does? The information you provide will help our team to locate the cause of your error faster
     
    I hope my answer is helpful to you! If you have any other questions, please feel free to contact me.
     
    Best Regards,
    Rudy Zhang
  • Chomchanok Profile Picture
    282 on at
    Dear RudyZhang
     
    Thank your for your kindly reply. I try to follow up by check my table and We found it's not a field "HSTHPAYMENTMETHODCODE" so I add field "HSTHPAYMENTMETHODCODE" in my table
     
    and I try to re-build and start with debugging again.
    and I got an error like this. 
     
    but when I check value in my variable qr is "{Query HSTHLedgerJournalTableTrans object 296ddfb0: SELECT * FROM LedgerJournalTable(LedgerJournalTable) WHERE ((JournalNum = N'JN19011145')) JOIN * FROM LedgerJournalTrans(LedgerJournalTrans) ON LedgerJournalTable.JournalNum = LedgerJournalTrans.JournalNum}"
     
    and when I check output page with JN19011145 that match my record. Everything should work but It's not.
    Can you guide me?
     
  • Chomchanok Profile Picture
    282 on at
    {Query HSTHLedgerJournalTableTrans object 296ddfb0: SELECT * FROM LedgerJournalTable(LedgerJournalTable) WHERE ((JournalNum = N'JN19011145')) JOIN * FROM LedgerJournalTrans(LedgerJournalTrans) ON LedgerJournalTable.JournalNum = LedgerJournalTrans.JournalNum}
  • Martin Dráb Profile Picture
    238,769 Most Valuable Professional on at
    The first thing to try is running DB synchronization.
  • Chomchanok Profile Picture
    282 on at
     
    For DB synchronization, i do at first time i got an error but it still happen.
     
    Do you have any suggestions please?
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Try doing model build and then do database sync. That should solve.
  • Suggested answer
    Chomchanok Profile Picture
    282 on at
    Dear All
     
    Thank you for your kindly comment for this forum. Now I got a solution already.
    I clean up solution and re-build again and now it's work.
     
    Again thank you for all your.
     
    BR
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans