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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AXUTIL importstore /apply command error "An error occurred in writing to the event log. -- Log Entry String is too long

(0) ShareShare
ReportReport
Posted on by 1,227

This is the second time I have tried the MS minimal downtime code migration and I successfully import the new model store into a temporary schema.  When I run "axutil importstore /apply:tempschema /verbose" (with or without the /verbose flag), I get "WARNING: An error occurred in writing to the event log on machine FADEV2: Log entry string is too long. A string written to the event log cannot exceed 32766 characters." This appears right after "DROP VIEW [tempschema].[SYSMODELELEMENTLABELOLD]"

It did not drop the temporary schema, as I thought it was supposed to do automatically.  When I log into AX and go to help, I do not see the hotfixes that should have come over during the import.

Any help would be FANTASTIC!!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at
    RE: AXUTIL importstore /apply command error "An error occurred in writing to the event log. -- Log Entry String is too long

    Hi,

    Free up some good amount of disk space where your SQL logs are stored. I faced similar issue and having enough disk space for SQL logs during model store import helped. 

    Hope this helps.

  • Verified answer
    ford_sopris Profile Picture
    1,227 on at
    RE: AXUTIL importstore /apply command error "An error occurred in writing to the event log. -- Log Entry String is too long

    Thank you Rachit, but I found the fix...  I was good until I followed the MS instructions to use the command (Import-AXModelStore -Apply schemaname-database AXmodelname –detail).  One undocumented step (at least in my case) that should be done BEFORE the APPLY step,  I had to run (a. Initialize-AXModelStore -server servername -database AXmodelname_model). It gave me a bunch of strange errors.  

  • Martin Winkler Profile Picture
    119 on at
    RE: AXUTIL importstore /apply command error "An error occurred in writing to the event log. -- Log Entry String is too long

    Thanks, your hint was very helpful. I was experiencing exactly your situation, and the reinitialize of the modelstore allowed me to successfully apply the schema (after 2 failed attempts).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans