invantive documentation
Forum di supporto InvantiveAccedi / Registrati

Itgenxml091 nel campo BARCODE

Le risposte vengono pubblicate sul forum.

Vai alla fonte

Question

Tijdens de synchronisatie van Items naar Exact Online krijgen wij onderstaande fout:

itgenxml091 La colonna «BARCODE» presenta un valore «10788942212008112505» che non può essere convertito nel tipo di dati Int64. Il valore «10788942212008112505» non è un numero intero grande valido. Il valore era troppo grande o troppo piccolo per un Int64. Utilizzare la virgola «,» come separatore per le migliaia.

ID richiesta: 0HNN7G8UUIJP0:00000001

Di conseguenza, la sincronizzazione non va a buon fine.

Kan nagekeken worden waarom het BARCODE-veld als Int64 wordt behandeld in plaats van als tekst (string)?

Risposta accettata

È stato implementato un miglioramento in produzione per risolvere questo problema. Een vijftal kolommen zijn vervallen door de overgang van XML naar REST-tabellen.

Per ulteriori informazioni, consultare:

Rispondi 8

Questa domanda è stata chiusa automaticamente dopo 1 settimana di inattività. L'ultima risposta fornita è stata contrassegnata come soluzione.

Se il problema dovesse ripresentarsi, si prega di porre una nuova domanda in un thread separato. Si prega di includere nella nuova domanda un link a questa discussione incollando il relativo URL nel testo.

Rispondi 2

956b2b1d2d1bcc4efe1a7108bd7a177224ec2851

itgenxml091

La colonna BARCODE in Items ha un valore «10788942212008112505» che non può essere convertito nel tipo di dati «int64».

Il valore «10788942212008112505» non è un numero intero grande valido. Il valore era troppo grande o troppo piccolo per un Int64.

Utilizzare la virgola «,» come separatore per le migliaia.

Rispondi 3

Oorzaak is een te grote mogelijke waarde voor het gebruikte data type voor dit veld in de Invantive software. Verrà apportata una modifica per risolvere questo problema.

Rapport: gmr-eol-items

Call stack:

System.OverflowException
ValidationException
ValidationException
   at System.Number.ThrowOverflowException[TInteger]()
   at System.String.System.IConvertible.ToInt64(IFormatProvider provider)
   at Invantive.Data.DataUtility.ConvertToLong(GlobalState owner, ExecutionOptions executionOptions, Object val)

SQL Statement:

select /*+ result_set_name('Items') */
       ...
,      itm.barcode
       ...
from   ( select to_number(itm.division_code) division
         ,      to_guid(replace(itm.id_attr, '{', '', '}', '')) id
         ,      itm.*
         from   exactonlinexml..items@eol itm
       ) itm
...

Exact Online dicteert in de metadata dat het een integer-getal is:

<xsd:element name="Barcode" type="xsd:integer" minOccurs="0"/>

De grootst mogelijke invoerwaarde in Exact Online user interface zelf zijn 20 negens:

99999999999999999999

Il numero 10788942212008112505 ha 20 cifre ed è superiore al valore massimo di 19 cifre di un Int64 (9223372036854775807).

Binnen de REST API’s hanteert Exact Online een tekst in plaats van een Int64 zoals bij XML. Un valore di tipo "text" è preferibile anche a causa dei possibili zeri iniziali.

Rispondi sul forum