Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

Posted on by 115

Hi.. First time poster.. I searched for a solution to the problem i have but couldnt find anything.

 

I have a pretty straight question

 I use eConnect (10.0.0.0)

 

to create a taIVTransactionHeaderInsert  with over 1000 lines of details.

This solution has worked well for a couple of years.

However, when  calling eConnect.eConnect_EntryPoint using a relatively large sXML file (over 500,000 characters in length)

I get the following exception

 "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

after a couple of minutes.

nothing else is called between the error and the EntryPoint call.. 

Can anyone tell me what's going on ?

 Thanks

 

 

 

 

 

 

 

*This post is locked for comments

  • RedSoxFred Profile Picture
    RedSoxFred 115 on at
    Re: Re: Re: Re: Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

     yeah when i split into more manageable groups.. lets say 250 lines of details... it works

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: Re: Re: Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

    Can you split transaction and see you can import data ?

    Thanks
    Sandip

  • RedSoxFred Profile Picture
    RedSoxFred 115 on at
    Re: Re: Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

     THanks for your help.

     

    however nothing goes in the event viewer... the error message is telling us it cant put the error in the event viewer since its too long

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

    Hello,

    Can you please check in your event Viewer any error for eConnect it will help you to understand.  In Dynamics GP webService with SQL 2005 for Sales Transaction I saw issue if line item for single Transaction is more than 2500 and Microsoft recommend us/client to go for SQL2008 , temporary client split Line Items for two Invoice.

    Let us know what you see in event Viewer I think that will help you to resolve issue.

    Thanks
    Sandip

  • RedSoxFred Profile Picture
    RedSoxFred 115 on at
    Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

     Thanks for the answer.

     

    I should have put more code in my example

      Try
                    res = _
                        eConnect.eConnect_EntryPoint(cs, EnumTypes.ConnectionStringType.SqlClient, strXML, _
                                                      EnumTypes.SchemaValidationType.None)
                Catch ex As eConnectException

    My first catch is for a eConnectException.  but the error throw is not of that type, therefore it goes to the last ExceptionHandler, which is the default Exception.

     

    Also I should point out that the source of the xml, when split in pieces, works, so all the pieces, taken in smaller lots, seem to work

     

  • Jeganeedhi Krishnan Profile Picture
    Jeganeedhi Krishnan 2,500 on at
    Re: eConnect Problem - "Log entry string is too long. A string written to the event log cannot exceed 32766 characters."

     Hi,

    Your XML file contain some error. due to big file it does not able to log in Event log.

    You can try to get the eConnect Exception using "eConnectException "(try.....Catch exp As eConnectException ) and write in txt file.

     

    Regards

    Jeganeedhi

     


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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans