Hi,
I have a problem with application deployed through PowerServer.
Following SQL statement works fine when used in IDE enterface :
INSERT INTO rule_history Select *, :Allocation_id from rules
WHERE ( rules.rule_number = :saanto ) AND ( rules.dataareaid = :dataarea ) AND (rules.customer = :customernr) ;
vastaus2 = SQLCA.SQLErrText
if vastaus2 > "" then gnv_powermessage.Messagebox('SQL Database Error',vastaus2)
commit;
Buty when run on a client on workstation, it produces error:
I have scanned previous problems of this type and they suggest : do a full rebuild and deploy after that. It does not solve my problem.
BR, Hannu
INSERT INTO rule_history SELECT rules.account_a, rules.account_b, rules.dim1_a, rules.dim1_b,rules.dim2_a, rules.dim2_b, rules.dim3_a, rules.dim3_b,rules.dim4_a, rules.dim4_b, rules.dim5_a, rules.dim5_b, rules.dim6_a, rules.dim6_b, rules.dim7_a, rules.dim7_b, rules.dim8_a, rules.dim8_b, rules.percent_dest, rules.account_dest, rules.dim1_dest, rules.dim2_dest, rules.dim3_dest, rules.dim4_dest,rules.dim5_dest, rules.dim6_dest, rules.dim7_dest, rules.dim8_dest, rules.dataareaid, rules.recordid, rules.rule_number, rules.customer, rules.userid, rules.timestamp, :Allocation_id FROM rules
WHERE ( rules.rule_number = :saanto ) AND ( rules.dataareaid = :dataarea ) AND (rules.customer = :customernr) ;
vastaus2 = SQLCA.SQLErrText
if vastaus2 > "" then gnv_powermessage.Messagebox('SQL Database Error',vastaus2)
commit;
yes, the webapi must be deployed. your ps app talks to the webapi which talks to the database.