Automation registration error.

mickbarrsmickbarrs Member Posts: 17
Hello All

I am trying to register an automation object and i get the follwing message when try and drill down on the Automation Server:

"The length of the text string exceeds the size of the string buffer".

Ive tried deleting the zup file, deleting temporary files but to no avail. help would be greatly appreciated.

Cheers

Mike

Comments

  • mickbarrsmickbarrs Member Posts: 17
    Has anyone any idea of how i can get rid of this message? I must have asked 30 people and no one has been able to resolve it ;-)

    Any help would be greatly appreciated!
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    What automation object are you trying to register?
    When do you get the error message?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • mickbarrsmickbarrs Member Posts: 17
    I get the error when trying to lookup the Automation Server list. I design a codeunit, create or select an existing automation type object and then when i lookup on the list i get the buffer string size has been exceeded.

    So now i cant lookup or create an automation object from the variable list.

    I have tried deleting the zup file, deleting temp files, running a registry cleanup tool and still the error remains.

    Any ideas?
  • ara3nara3n Member Posts: 9,257
    There is a limit on how long the automation variable class name suppose to be.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • mickbarrsmickbarrs Member Posts: 17
    I think the limit is 1000 and i must have a string somewhere (Maybe in the registry) that is exceeding the size. Any ideas on how to locate and delete this string? Ive also tried re-running service pack 2 and this has not resolved the issue.
  • ta5ta5 Member Posts: 1,164
    Hi
    I think it's in the COM Interface Navision uses. Try to import the DLL in a VB or Excel-Project and use its class viewer. There you should see the class names and all the properties and methods.
    BTW: Imho the max length is 254 Characters.

    When you have found the class/method/property which leads to the error you maybe can talk to the manufacturer of this class. If this is not possible, you easy can programm a kind of wrapper DLL.

    Hope this helps
    Thomas
Sign In or Register to comment.