cancel
Showing results for 
Search instead for 
Did you mean: 

Error DTW al subir depreciaciones y diferidos

Former Member
0 Kudos

Buenos dias, solicito su colaboración con un error que estoy presentando a la hora de subir un DTW de depreciaciones y diferidos. El template que tengo es el siguiente:

CodeNameU_TipoU_NombreU_InicialU_MesesU_TerceroU_RestanteU_CtaSeg1U_CtaSeg2U_RegDistrU_Proyecto
CodeNameU_TipoU_NombreU_InicialU_MesesU_TerceroU_RestanteU_CtaSeg1U_CtaSeg2U_RegDistrU_Proyecto
111PRUEBAS 110230059POTR-1016031608171004015165150114
221PRUEBAS 21666919.8559POTR-1119887106171004015165150114

El error que arroja es el siguiente:

Cannot add rows to a Document type User Table65171

Al parecer el error lo arroja con la columna Code sin embargo cuando se va a agregar informacion esta deberia ser 1,2,3,4

Realice la prueba actualizando y el template funciona bien, el problema es a la hora de crearlos.

Agradezco si me pueden colaborar con este error, quedo atento.

Accepted Solutions (0)

Answers (1)

Answers (1)

gerardo_mendez
Active Contributor
0 Kudos

Hola compañero.

Nunca he cargado datos a un tabla de definida por el usuario pero consideraría que tu columna CODE y NAME deben llevar los códigos consecutivos de tu tabla, recuerda que estos campos no pueden tener duplicados.

Si el CODE 1 y 2 ya existen en tu tabla, el sistema no te permitira crearlos de nuevo, solo actualizarlos.

Saludos.

Former Member
0 Kudos

Hola compañero gracias por su respuesta, tambien pense que estuviera dando error por esto y coloque el numero que seguia de recordkey correspondiente a la tabla @OK1_DIFDEPR_HEADER pero aún así arrojaba error en el code.

gerardo_mendez
Active Contributor
0 Kudos

Hola compañero.

No olvides que una manera de agradecer las aportaciones es marcando las respuestas que te han sido de ayuda.

Voy haciendo la prueba y me crea registros nuevos sin problemas, te comparto mi plantilla:

CodenameU_RutaU_RFC
CodeNameCarpeta DestinoRFC
4Carta Porte\\Ruta\XAXX010101000

Igual checa la siguiente discusión:

DTW user objects Document

Igual veré si encuentro algo más de información.

gerardo_mendez
Active Contributor
0 Kudos

Igual la siguiente nota está muy buena:

2212871 - How to update UDO data using DTW
Version 8 Validity: 18.05.2016 - active
Language English

Content:    Summary   |   Header Data   |   Validity   |   References

Symptom

How to update UDO data using DTW

(or)

When updating UDO from DTW/DIAPI/B1i ,you receive Unknown error -1005 !65171,


Solution

How to create UDO:

1. You are using SAP Business One 8.82 PL13 or higher; SAP Business One 9.0 PL06 (Version for MS SQL) or higher; 9.0 PL03 (Version for HANA) or higher; or SAP Business One 9.1.

2. You have created user-defined tables and user-defined fields, and have registered the user-defined object as follows:

  • Under Tools->Customization Tools->User-Defined Tables - Setup, add two user-defined tables, for example:
          UDT.JPG
  • Under Tools->Customization Tools->User-Defined Fields - Management, add several user-defined fields for the two tables, for example:
          TableStructure.jpg
  • Under Tools->Customization Tools->Objects Registration Wizard, add a new object by following these steps:
    • In step Modifying Basic Settings, enter a Unique ID ("MyTable" for example), Name(should not be empty), Type and choose Table Name "MYTABLE_HEADER". Choose Next.
    • In Step Modifying Services, choose any service you like, and then choose Next.
    • In Step UI Settings, select the Default Form checkbox and select Header Line Style. You can check in Menu Item and put it in any Menu ID, for example Sales - A/R.
    • Configure the next steps.
    • In step Linking Additional child user tables, select the object "MYTABLE_ROW", and then choose Next.
    • In step Modifying fields for a child table default form, select the form "MYTABLE_ROW" and select several fields. Choose Next, then Finish.
    • Now you can open the user-defined object "MyTable" in the Sales - A/R menu.

         UDO Data.jpg

Note:

If you are using 9.1 PL10 or below,UDO Code and the UDO Name of the UDO should be same.

UDO names including spaces and brackets cannot be handled by DTW. You will receive an error "Unknown error -1005 !65171".

Pre-requiste before data prepration:

Create the template choose "Templates -> Generate UDO Templates" and select the relevant objects beginning with UDO_.

Note:The UDO_ templates are based on UDTs. You create separate templates for the parent and the child UDTs each time selecting the parent/child UDO_ object.

1. If you want to update UDO data by adding a new row, fill the template with the new row details that you want to add as shown in the image and perofrm the following:

AddNewRow.jpg

A. Open DTW, log in to the company.

B. In Step 1 choose Master Data; in Step 2 choose Update Existing Data; in Step 3 select User Define Data -> Objects(UDO) -> UDO_MyTable; in Step 4 select the import file.


C. In Step 5, choose the "Source Data" tab, there you can see that there is a ComboBox as shown below: (Select the option as 'Keep Existing Lines and Add Source Lines')

ComboBox.jpg

D. Perform the update operation by following next steps. After that you will find that a new row is added for the record with the existing data as well.

2. If you want to update the data by updating an existing row, fill the template with all the rows that exist for that record in the template. Also fill the data on the rows that you want to update as shown in the image and do the following:

UpdateExistingRow.jpg

A. In Step 5, choose the "Source Data" tab, there you can see that there is a ComboBox as shown in the image above: (Select the option as 'Delete Existing Lines and Add Source Lines')

B. Perform the update operation by following next steps. After that you will find that the row data is updated for the record and the remaining data is same.

Note:

The same applies to the Document Type UDO also.


Other terms

Update,UDO,DTW, Data Transfer Workbench, B1, SAP Business One, UDO, 2005.0.27, user defined object, Intrastat, import, update, B1, -1005, Cannot add rows to a MasterData type, User Table,,U_BNITMDV, UDO_ BNITMDV, B1i, B1if,Unknown error -1005,65171



Header Data

Released On18.05.2016 11:59:58
Release StatusReleased for Customer
ComponentSBO-DTW Data Transfer Workbench
PriorityRecommendations/additional info
CategoryFAQ

Validity

Software Component

Version

SAP B1 VERSION FOR SAP HANA

All versions

SAP BUSINESS ONE

All versions


References

This document refers to:

SAP Business One Notes
878906 How to import User Defined Tables (No Objects) via the DTW

This document is referenced by:

SAP Business One Notes (1)
878906 How to import User Defined Tables (No Objects) via the DTW

Former Member
0 Kudos

Compañero realice la prueba pero no me funciono, usted realizo la prueba directamente sobre la tabla @OK1_DIFDEPR_HEADER ? adicional esta tabla solo tiene opcion para un template de cabecera y ya la de lineas viene en otra tabla. No se si se trate por que es una tabla del sistema OK1, aunque si me permite actualizarla.

Former Member
0 Kudos

En base a la nota que me compartiste pude evidenciar que esta tabla corresponde al UDT

https://websmp230.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F6465...

Sin embargo arroja el mismo error aun con registros diferentes.

gerardo_mendez
Active Contributor
0 Kudos

Hola compañero, si eres nuevo en la comunidad te invito a que pases al siguiente documento:

Imagino que la tabla definida por el usuario no la creaste tu, por lo tanto quiero pensar que es creada y utilizada por algún AddOn que tengas activado en la sociedad.

Si es así,te invito a que contactes a tu partner para que valides la adición de nuevos registros.

Saludos.

gerardo_mendez
Active Contributor
0 Kudos

Hola compañero.

No olvides cerrar tu discusión mencionando cómo fue que solucionaste tu problema, marcando respuestas de ayuda y la respectiva respuesta correcta.

Esto es importante para orientar a quienes pudieran llegar a tener el mismo detalle.

Saludos.