Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

WINDEV (1 reply)

$
0
0
Hi,
We have WINDEV application. In that we are having one button.
But when we click on the button we are getting following error:

Le champ 'Table_sousComposantsPossibles' n'a pas pu s'initialiser, car il a rencontré l'erreur Hyper File suivante :
=============================
Erreur dans le code SQL de la requête <Requête_union_sousComposantsPossible_liste>. Initialisation de la requête impossible.
Mot %% inattendu
=============================

Informations techniques

Projet : Adage

Dump de l'erreur du module <WD120OBJ.DLL> <12.00Pyn>.

- Niveau : erreur fatale (EL_FATAL)

SQL code is:
SELECT C1.Code_Composant AS Code_Composant,
C1.Nom_Site AS Nom_Site,
C1.Base AS Base,
C1.description AS description,
C1.Reference_Plan AS Reference_Plan,
C1.Indice_Plan AS Indice_Plan,
C1.Id_Contrainte AS Id_Contrainte,
C1.Cfig AS Cfig,
C1.Unite_Quantite AS Unite_Quantite,
C1.type AS type,
C1.ApS AS ApS
FROM
ADAGE_S_Composants C1
WHERE
C1.Nom_Site = {p_Site}

AND C1.Code_Composant <> {p_CodeComposantPere}
AND C1.Code_Composant LIKE %{pComposant}%
AND C1.description LIKE %{pDescription}%

-- on n'autorise pas l'insertion d'un frère
AND C1.Code_Composant NOT IN
(SELECT COR.Nom_Composant_Fils
FROM ADAGE_S_Correspondance_Operations_CompFils COR
WHERE COR.Nom_Composant_Operation_Mere={p_CodeComposantPere}
AND COR.Nom_Site_Operation_Mere = {p_Site}
AND COR.Nom_Site_Composant_Fils = {p_Site}
AND COR.Numero_Ordre_Operation_Mere = {p_OrdreOperation})
AND

-- on n'autorise pas l'insertion d'un ancêtre (vérif sur 1 génération, on ne vérifie pas plus loin)
C1.Code_Composant NOT IN
(SELECT COR2.Nom_Composant_Operation_Mere
FROM ADAGE_S_Correspondance_Operations_CompFils COR2
WHERE COR2.Nom_Composant_Fils={p_CodeComposantPere}
AND COR2.Nom_Site_Operation_Mere = {p_Site}
AND COR2.Nom_Site_Composant_Fils = {p_Site})

UNION ALL


According to the error, % is unexpected.
I removed % but still code is not working.
Does anyone have any idea about this?
How to fix this issue?
Thanks in advance

Viewing all articles
Browse latest Browse all 1914

Trending Articles