THE BELL

There are those who read this news before you.
Subscribe to get the latest articles.
Email
Name
Surname
How would you like to read The Bell
No spam

Everyone knows that any software can give various failures from time to time or, simply speaking, do not work properly. Such failures that lead to disruption of the correct functioning of the system are called in mistakes. Program 1c is a software product ( software), respectively, in this program, various errors can also occur that lead to correct work systems. can be very diverse, and if you do not have a number of special knowledge in the field of programming and the specifics of the operation of the internal mechanisms of 1c, then you will not be able to correctly understand and diagnose the error, and even more so correct it. Any of our 1c programmers is always ready to help you in solving any issues related to 1s errors!

What causes errors in the 1s database?

Now let's talk a little about why, after all, various errors in database 1s when working with the program. In fact, there can be a lot of reasons and they can all have completely different grounds. And yet, we will try to understand in general terms the cause of the occurrence of various errors in 1s.

Types of errors in the 1s database

Errors in 1s there can be a great many and they can occur for a variety of reasons. In this article, we will not consider all possible mistakes 1c, we will try to identify the so-called main "types" of errors encountered. We conditionally call them "types" since the content of the error that the program shows you is usually always different, but the essence is often the same. So let's take a look at the most common errors in database 1s:

  1. Stream format error
  2. Object field not found
  3. Object method not found
  4. Not enough memory
  5. Errors associated with SQL tables (relevant for 1c servers that run on relational databases, such as MySQL)
  6. Access error 1s

Stream format error in 1s

stream format error 1s

Object field not found

Object field not found

The index is outside the bounds of the array

Error 1s

Stream format error in 1s

This error very often manifests itself when the sequence of commands from the bytecode in the stream is read by mistake, which is why it is called stream format error 1s. Any transaction will be aborted if this error occurs as a result of its execution. Such errors require immediate correction, as they can harm the operation of the 1C Enterprise system. These errors can only be corrected by qualified 1s programmers.

Object field not found

If the 1s system gives you an error message with the text " Object field not found", then this means that the error occurs when the program tries to access the attribute (field) of an object that simply does not exist. This error is in the nature of a "runtime error" if it occurs in 1C Enterprise. Errors of this kind can also be corrected only programmers.

The index is outside the bounds of the array

An array in programming is a certain memory area in which many objects of the same type are stored (in 1s such types can be, for example, ReferenceReference, DocumentObject, etc., as well as any primitive types such as number, string, boolean, etc.). Error 1s associated with going beyond the boundaries of the array just happens when the program accesses the boundaries of the memory that is allocated for the array. Accordingly, the program in this case gives an error, notifies the user (programmer) that the array is being accessed, and this, in turn, is a program error.

Object method not found

A similar error occurs when the system tries to access a method (function) of an object whose description (which) does not exist in the code. Errors of this type can be corrected by programmers.

Not enough memory in 1s

This error occurs if the system runs out of all the RAM allocated for the needs of executing programs in the operating system, which is why the program gives an error " Not enough memory in 1s". It can occur during various events such as updating the configuration, processing a large file, generating a report, loading a large database, etc. The user can try to fix such an error himself.

Possible fix for error 1c "Not enough memory"

The error lies in the limited allocation of address memory by the operating system for software (software).
The default address memory limits are:

  • for 32 bit system - 2GB
  • for 64 bit - 4 GB

In order to increase the size of the address memory, you need to do the following:

  1. Run the command line: "Start - Run" - type CMD and press the enter key
  2. Now at the command line enter the text without quotes “bcdedit /set increaseuserva 3072″, where 3072 is the size of the desired address memory
  3. Restart your operating system (computer)
  4. Try to perform the action in 1C that did not work before and led to an error.
  5. If everything worked out and the operation is not repeated so often, it is recommended to return the size of the address memory to the default value using the command “bcdedit / deletevalue increaseuserva”

Errors related to SQL tables

Errors of this kind usually occur on the server side, when the system accesses the table and cannot read the data. This error may occur due to correct setting server, as well as due to damage to SQL tables. In special difficult situations, it may not even be possible to restore the database, and then only an archived copy of the database can save you. We strongly recommend making timely backups of the database.

Access error in 1s

This error occurs when a user tries to perform some action that is prohibited by access rights (roles). That is why the system gives an access error in 1s. Roles are configured in the configurator by the programmer.

Couldn't fix the error in 1s?

If you did not succeed in correcting any mistake in 1s, do not despair, pick up the phone and call us! Our experts are always ready to help you in solving any issues related to 1s, including errors that occur during the operation of the system.

You (or the user) work in 1C. Suddenly, a mistake. What to do?

Of course, the most correct thing is to analyze what kind of error 1C, its causes, spend an hour or two to find out what's what.

What if this is not possible? No time, no desire, not enough knowledge. Here are some very bad tips for quickly fixing errors in 1C.

Error message 1C

A typical view of a 1C error message is a window with the text of a 1C error and the OK and More buttons.

The text of the 1C error displayed here is a user message, it often does not tell the programmer anything, since the displayed 1C error may be the result of some wrong actions.

To fix 1C errors, click More in this window to see the 1C programmer error message. It states:

  • in which error 1C occurred
  • The function of this module in which the 1C error occurred
  • The line number of this module in which the 1C error occurred.

You can also click on the Configurator button, and then the configurator will be opened, this module, this function on this line, after which you can correct the 1C error.

Mistake tricks

As has just been said, in the text of the 1C error, it is very often a consequence of previously performed incorrect actions.

For example, a very common 1C error text reads:

Value is not a value object type(WhatName)

What would that mean???

And this means the following:

  • There is a variable
  • The program assumes that the value of the variable is a directory or a document or something similar - in general, it has details (fields)
  • The program attempts to access the field of this object
  • However, the 1C error is that for some reason, in the previous lines of the program, this variable received a value that does not have any details (fields), for example, the value "Undefined".

Correction of 1C errors that are more common

Of course, we cannot consider all the errors that may be in 1C.
Let's try to briefly list 1C errors that happen often, as well as bad tips for quickly fixing 1C errors.

  • If a variable is of type boolean (that is, it takes the values ​​True and False), then it can be accessed like this:

    If VariableName Then

    This spelling is similar to:
    If VariableName = True Then

    However, if for some reason this variable takes on a non-boolean value, then the first option will give a 1C error, and the second one will not.

  • "Function named Xxx not found"

    Part of the modules is executed on the server. Moreover, some functions of the same module can be performed on the server or on the client.

    In this case, a 1C error may occur that a function running on the server is accessing a function that is running on the client. In this case, there will be such an error 1C.

    It is necessary to transfer such a function to the server, if possible.

  • "Variable named xxx not found"

    Similar to the previous error 1C. If the program has a call to a function that is in a common module, then it looks like this:
    ModuleName.FunctionName();

    If at the same time in the properties of the module it is established that it is executed on the client, and we access from those lines of the program that are executed on the server, then there will be an error 1C
    "Variable not found - ModuleName"

    It is necessary to enable the execution of this module on the server in the same way.

  • "Property XXX was not found for the object"

    The word "Property" means the field of this object (props). Necessary:
    o Determine what the object is
    o If this is a directory, a document, you need to see if the prop is really called that
    o If it is or – view the details of the form with the same name.

  • "Method Xxx was not found on the object"

    The word "method" refers to a function/procedure in the module of this object.

    Necessary:
    o Determine what kind of object it is
    o Find its module (object module if it is a 1C object, form module if it is a form)
    o Check for the presence of a function with this name.

  • "Error 1C when executing a request"

    This means there is a 1C error in the request text. The request text is usually defined in the program earlier (that is, higher) than it is executed. Look for the query text in this module (with your eyes above or by searching for the word "SELECT").

    Try parsing the query text or right clicking on the query text and try to open the query builder to get a hint.

  • "Error 1C layout" - when running a report

    This 1C error means either a 1C error in the request text or a 1C error in the ACS settings (often in groupings, in selected fields, in conditional formatting).

    Try to start with the settings, greatly simplifying them. Check that in the selected fields and conditional formatting - there are no fields marked with a cross in the list.

    If that doesn't help, try going to the request text and using the request builder to get a hint.

Good day!

Many of us are faced in our activities with the software products of the 1C Company. Moreover, some of us sometimes have to even sometimes serve 1C products. Sometimes in this "wonderful" service process, various incidents arise. Today we will talk about one of them.

Namely, the topic of this material: How to fix an error that occurs in 1C - Could not connect to another program: Object method not found (Connect).

If you are lucky enough to see the same error as in this screenshot, read on how to fix it 😉

Some introductory theory:

1C:Enterprise 8.x provides various interesting opportunities for organizing data exchange with other software systems. Along with the mechanism OLE Automation the concept of a COM connection was also introduced, which allows for reliable and faster access to 1C:Enterprise 8.0 data from external applications that support this technology.

To organize access to 1C:Enterprise 8.0 data through COM connection created COM object with id V8.COMConnector, with which the connection is established. Then the Connect method of the previously created V8.COMConnector object is called. Connect method returns a link to the COM connection object with the 1C:Enterprise 8.0 infobase. And through the received COM connection object, access is made to the allowed methods, properties, and objects of the infobase with which the connection is established.

Now, knowing where the legs grow from, let's move on to practice. Suppose (during an update or some other operation) you received an error like:

To fix the error that occurs in 1C - the object method was not found (connect), you need to do the following:

AT operating systems Windows latest versions Go to Component Services. This functionality is called by the following sequence: Control Panel - Administrative Tools - Component Services.

Choose: Computers - My Computer - COM + Applications - Create an application - Create a new application - enter the name "V82COMConnector" (switch "Server application") - Specified user (Administrator)

In the emerging thread V82COMConnector- select the Components sub-tree - create a new component - Install new components - \bin\comcntr.dll

Right-click on the V82COMConnector branch - Properties - Security - uncheck "Enforce access check for applications" - check the box "Apply software restrictions policy" - Restriction level "Unlimited":

Also in user profiles C:\Users\OurUser\AppData\Roaming\1C\1CEStart.cfg change the parameter UseHWLicenses=0 to UseHWLicenses=1

After all these changes, you can (for the purity of the experiment) restart the computer and enjoy further work in 1C, but without this error (!)

P.S. Little bonus at the end: 1C update on behalf of the administrator

Quite often some of your remote client is an accountant, etc. - cannot update itself software products 1C, he needs administrator rights, and he does not want or is “afraid” to right-click on the shortcut (and select “Run as administrator”). Therefore, he constantly strains our brother ITishnik.

Let's right-click on him, but do it once and forget about this topic forever!

So, we do a one-time setup - right-click on the 1C launch shortcut, select "Properties", click "Change settings for all users" and check the "Run this program as administrator" checkbox. Then click OK a couple of times, and forget about the “fearful” client 😉

I hope you have found some usefulness here. Write in the comments about your "tricks" - we will jointly bring educational benefits.

Keep in touch and all the best! 😉

THE BELL

There are those who read this news before you.
Subscribe to get the latest articles.
Email
Name
Surname
How would you like to read The Bell
No spam