Import sur instance de recette

4.0
Tags: #<Tag:0x00007f36197de3e8>
Import sur instance de recette
0.0 0

#1

Bonjour,

j’ai créé une instance de recette et j’ai voulu importer un module. l’import est ko.
je ne comprends pas pourquoi
voilà les logs :

2017-06-27 16:59:13,032 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,032 INFO [] Found field tsl_value = [Numéro]
2017-06-27 16:59:13,032 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,032 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,032 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,032 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,032 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,032 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,032 INFO [] Found internal key row_id = 56605
2017-06-27 16:59:13,033 INFO [] Action: UPDATE
2017-06-27 16:59:13,048 INFO [] Save ok.
2017-06-27 16:59:13,048 INFO [] Start import object TranslateObjectField:
2017-06-27 16:59:13,049 INFO [] Found field tsl_typeObjectField = [L]
2017-06-27 16:59:13,049 INFO [] Found field obf_object_id.obj_name = [CrbCreMarchePresta]
2017-06-27 16:59:13,049 INFO [] Found field obf_field_id.fld_name = [creRefTypePrestaNum]
2017-06-27 16:59:13,049 INFO [] Found field tsl_id.obf_order = [210]
2017-06-27 16:59:13,049 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,049 INFO [] Found field tsl_value = [cre ref type presta num]
2017-06-27 16:59:13,049 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,049 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,049 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,049 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,049 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,049 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,050 INFO [] Found internal key row_id = 56606
2017-06-27 16:59:13,051 INFO [] Action: UPDATE
2017-06-27 16:59:13,052 INFO [] Save ok.
2017-06-27 16:59:13,052 INFO [] Start import object TranslateObjectField:
2017-06-27 16:59:13,053 INFO [] Found field tsl_typeObjectField = [L]
2017-06-27 16:59:13,053 INFO [] Found field obf_object_id.obj_name = [CrbCreMarchePresta]
2017-06-27 16:59:13,053 INFO [] Found field obf_field_id.fld_name = [creRefTypePrestaCode]
2017-06-27 16:59:13,053 INFO [] Found field tsl_id.obf_order = [220]
2017-06-27 16:59:13,053 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,053 INFO [] Found field tsl_value = [Type de prestation]
2017-06-27 16:59:13,053 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,053 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,053 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,053 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,053 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,053 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,054 WARN [] Unable to find reference: tsl_id.obf_field_id of object TranslateObjectField
2017-06-27 16:59:13,054 WARN [] Unable to find reference: tsl_id of object TranslateObjectField
2017-06-27 16:59:13,054 INFO [] New record key row_id
2017-06-27 16:59:13,054 INFO [] Action: INSERT
2017-06-27 16:59:13,054 ERROR [] Validation error: [ERR_REQUIRED:Cible#ERROR#tsl_id]
2017-06-27 16:59:13,054 INFO [] Start import object TranslateObjectField:
2017-06-27 16:59:13,056 INFO [] Found field tsl_typeObjectField = [L]
2017-06-27 16:59:13,056 INFO [] Found field obf_object_id.obj_name = [CrbCreMarchePresta]
2017-06-27 16:59:13,056 INFO [] Found field obf_field_id.fld_name = [creRefTypePrestaLibelle]
2017-06-27 16:59:13,056 INFO [] Found field tsl_id.obf_order = [230]
2017-06-27 16:59:13,056 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,056 INFO [] Found field tsl_value = [Type de prestation]
2017-06-27 16:59:13,056 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,056 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,056 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,056 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,056 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,056 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,056 INFO [] Found internal key row_id = 56607
2017-06-27 16:59:13,057 INFO [] Action: UPDATE
2017-06-27 16:59:13,059 INFO [] Save ok.
2017-06-27 16:59:13,059 INFO [] Start import object TranslateObjectField:
2017-06-27 16:59:13,060 INFO [] Found field tsl_typeObjectField = [L]
2017-06-27 16:59:13,060 INFO [] Found field obf_object_id.obj_name = [CrbCreProjet]
2017-06-27 16:59:13,060 INFO [] Found field obf_field_id.fld_name = [creRefTypeProjetNum]
2017-06-27 16:59:13,060 INFO [] Found field tsl_id.obf_order = [110]
2017-06-27 16:59:13,060 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,060 INFO [] Found field tsl_value = [Numéro]
2017-06-27 16:59:13,060 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,061 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,061 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,061 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,061 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,061 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,061 INFO [] Found internal key row_id = 56608
2017-06-27 16:59:13,062 INFO [] Action: UPDATE
2017-06-27 16:59:13,063 INFO [] Save ok.
2017-06-27 16:59:13,063 INFO [] Start import object TranslateObjectField:
2017-06-27 16:59:13,064 INFO [] Found field tsl_typeObjectField = [L]
2017-06-27 16:59:13,064 INFO [] Found field obf_object_id.obj_name = [CrbCreProjet]
2017-06-27 16:59:13,064 INFO [] Found field obf_field_id.fld_name = [creRefTypeProjetLibelle]
2017-06-27 16:59:13,064 INFO [] Found field tsl_id.obf_order = [120]
2017-06-27 16:59:13,064 INFO [] Found field tsl_lang = [FRA]
2017-06-27 16:59:13,064 INFO [] Found field tsl_value = [Type de projet]
2017-06-27 16:59:13,064 INFO [] Found field tsl_simplehelp = []
2017-06-27 16:59:13,064 INFO [] Found field tsl_short_value = []
2017-06-27 16:59:13,064 INFO [] Found field row_module_id.mdl_name = [CrbCre]
2017-06-27 16:59:13,064 INFO [] Found field tsl_id = []
2017-06-27 16:59:13,064 INFO [] Found field tsl_id.obf_object_id = []
2017-06-27 16:59:13,064 INFO [] Found field tsl_id.obf_field_id = []
2017-06-27 16:59:13,065 INFO [] Found internal key row_id = 56609
2017-06-27 16:59:13,066 INFO [] Action: UPDATE
2017-06-27 16:59:13,067 INFO [] Save ok.

2017-06-27 16:59:13,099 INFO [com.simplicite.util.engine.Interface] SIMPLICITE|https://bretagne.localdomain:10073||ICOREIO001|designer|com.simplicite.util.engine.Interface|importObject||Information I/O: Import object TranslateResearch, status = OK
2017-06-27 16:59:13,115 INFO [com.simplicite.util.engine.Interface] SIMPLICITE|https://bretagne.localdomain:10073||ICOREIO001|designer|com.simplicite.util.engine.Interface|importObject||Information I/O: Import object TranslateView, status = OK
2017-06-27 16:59:13,115 INFO [com.simplicite.util.engine.Interface] SIMPLICITE|https://bretagne.localdomain:10073||INFO|designer|com.simplicite.util.engine.Interface|importXML||Evénement: Import: diff requested…
2017-06-27 16:59:13,115 ERROR [com.simplicite.util.engine.Interface] SIMPLICITE|https://bretagne.localdomain:10073||ERROR|designer|com.simplicite.util.engine.Interface|importXML||Evénement: Import contains errors: diff is aborted to preserve the previous configuration. Fix the module and re-import.
2017-06-27 16:59:13,127 ERROR [com.simplicite.util.engine.Interface] SIMPLICITE|https://bretagne.localdomain:10073||ERROR|designer|com.simplicite.util.engine.Interface|importModule||Evénement: Module: CrbCre: Error importing module (/home/passcreation_rec/tomcat/webapps/ROOT/WEB-INF/dbdoc/tmp/import_module_CrbCre_156633125554201472.zip)


#2

En regardant l’erreur on voit qu’une traduction se fait rejeter, il ne retrouve pas la cible (attribut d’objet) de la traduction

Il faut vérifier la traduction en question si elle est liée à un objet d’un autre module inexistant.


#3

[quote]2017-06-27 16:59:13,054 WARN [] Unable to find reference: tsl_id.obf_field_id of object TranslateObjectField
2017-06-27 16:59:13,054 WARN [] Unable to find reference: tsl_id of object TranslateObjectField[/quote]

Les warning montrent que le obf_field_id n’a pas pu être résolu, si on regarde dans les données il s’agit de l’attribut creRefTypePrestaCode qui ne doit pas exister dans le module.